Page 1 of 1
Forcing a party of four?
Posted: Fri Jun 24, 2011 8:07 am
by Mewmew
Hi everyone! Sorry again if this is a simple question. I was wondering if there's a way to force the player to pick 4 party members through the in game's "party order" menu?
If not, is there a simple copy/paste example that someone can kindly provide through hamster speak? I'm really bad when it comes to scripting, things beyond "walk hero to x" would fry my mind. Though I'm always open to learning... baby steps!
I basically don't want people forming parties of 3 or less... however I want to give them -some- freedom in choosing who to bring instead of throwing them a fixed locked party. XD
難しい~☆
Thank you for taking the time to read this message, and thank you in advance if you answer!
Posted: Fri Jun 24, 2011 3:29 pm
by Mogri
You could keep throwing the player back to the party menu until he finally comes up with a party of 4. That's the easiest way.
Posted: Fri Jun 24, 2011 4:22 pm
by charbile
following what Mogri said, call this in the text box conditions "always do this after":
Code: Select all
plotscript, choose_four_party, begin
variable (loop)
loop:= true
while (loop) do
(
team menu
wait(1)
if
(
hero by slot(0)<>-1
&& hero by slot(1)<>-1
&& hero by slot(2)<>-1
&& hero by slot(3)<>-1
)
then (loop:=false)
)
end
and i'm not sure if you still need the wait(1)
Posted: Fri Jun 24, 2011 4:44 pm
by JSH357
Further simplifying Charbile's script:
Code: Select all
plotscript, choose_four_party, begin
variable (loop)
loop:= true
while (loop) do
(
team menu
wait(1)
if
(
roominactiveparty<>0
)
then (loop:=false)
)
end
Posted: Sat Jun 25, 2011 6:43 am
by Mewmew
Aaaah! Thank you so much for the response and for the script as well! Sorry for the trouble. I'll definitely use this script XD Thanks again! ♥
Posted: Sat Jun 25, 2011 7:04 am
by TMC
Further simplifying Charbile's script:
Code: Select all
plotscript, choose four party, begin
team menu
while (room in active party) do (team menu)
end
Posted: Sat Jun 25, 2011 2:29 pm
by Bob the Hamster
Complexifying TMC's simplification of OF JSH's simplification of Charbile's script:
Code: Select all
plotscript, choose four party, begin
team menu
while (room in active party) do (
show text box (5) #this box should explain that you need 4 party members
wait for text box
team menu
)
end
Posted: Sun Jun 26, 2011 4:03 am
by Mewmew
Wow! Thanks for the revisions, TMC and James! I tried them all, but I think I'll use the one James provided. XD Just in case people hold onto the [esc] button during team party, which for some reason, causes an infinite loop and crashes the game.

Thanks everyone!