Post new topic    
Red Slime
Send private message
Forcing a party of four? 
 PostFri Jun 24, 2011 8:07 am
Send private message Reply with quote
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!
Arien and Fran HD Sprites
Super Slime
Send private message
 
 PostFri Jun 24, 2011 3:29 pm
Send private message Reply with quote
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.
Mega Tact v1.1
Super Penguin Chef
Wizard Blocks
Metal Slime
Send private message
 
 PostFri Jun 24, 2011 4:22 pm
Send private message Reply with quote
following what Mogri said, call this in the text box conditions "always do this after":

Code:

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)
Liquid Metal Slime
Send private message
 
 PostFri Jun 24, 2011 4:44 pm
Send private message Reply with quote
Further simplifying Charbile's script:

Code:

plotscript, choose_four_party, begin

variable (loop)
loop:= true

while (loop) do
(
team menu
wait(1)
if
(
roominactiveparty<>0
)
then (loop:=false)
)

end

My website, the home of Motrya:
http://www.jshgaming.com
Red Slime
Send private message
 
 PostSat Jun 25, 2011 6:43 am
Send private message Reply with quote
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! ♥
Arien and Fran HD Sprites
Metal King Slime
Send private message
 
 PostSat Jun 25, 2011 7:04 am
Send private message Reply with quote
Further simplifying Charbile's script:

Code:
plotscript, choose four party, begin
  team menu
  while (room in active party) do (team menu)
end
Liquid Metal King Slime
Send private message
 
 PostSat Jun 25, 2011 2:29 pm
Send private message Reply with quote
Complexifying TMC's simplification of OF JSH's simplification of Charbile's script:

Code:
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
Red Slime
Send private message
 
 PostSun Jun 26, 2011 4:03 am
Send private message Reply with quote
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. Surprised Thanks everyone!
Arien and Fran HD Sprites
Display posts from previous: