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!
Forcing a party of four?
Moderators: Bob the Hamster, marionline, SDHawk
following what Mogri said, call this in the text box conditions "always do this after":
and i'm not sure if you still need the wait(1)
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
- JSH357
- Liquid Metal Slime
- Posts: 1340
- Joined: Mon Oct 15, 2007 7:38 pm
- Location: Columbia, SC
- Contact:
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 My website, the home of Motrya:
http://www.jshgaming.com
http://www.jshgaming.com
Further simplifying Charbile's script:
Code: Select all
plotscript, choose four party, begin
team menu
while (room in active party) do (team menu)
end - Bob the Hamster
- Liquid Metal King Slime
- Posts: 7460
- Joined: Tue Oct 16, 2007 2:34 pm
- Location: Hamster Republic (Ontario Enclave)
- Contact:
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
Last edited by Bob the Hamster on Sat Jun 25, 2011 2:29 pm, edited 1 time in total.

