| View previous topic :: View next topic |
| Author |
Message |
JSH357

Joined: 02 Feb 2003 Posts: 1705
|
Posted: Wed Sep 05, 2007 1:02 pm Post subject: |
|
|
| DB, I made a small syntax error in that code earlier (but I just fixed it). It SHOULD work now, though I haven't tested it. |
|
| Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Wed Sep 05, 2007 7:46 pm Post subject: |
|
|
Say what?
The first argument to the script isn't useless, assuming that you want to disable whole formation sets at a time depending on a tag. The first argument is a random formation from that formation set, so there's no need for the script to know about which sets are in the formation set in this case.
Also, Camdog, fightformation takes a formation as argument, not a formation set.
| Code: |
script,battlescript,form,formset,begin
variable(thetag)
switch(formset)
do(
case(1,2,3) do( thetag := 18 )
case(7) do( thetag:=19 )
)
if(checktag(thetag)==off )
then(fightformation(form))
end |
_________________ "It is so great it is insanely great." |
|
| Back to top |
|
 |
JSH357

Joined: 02 Feb 2003 Posts: 1705
|
Posted: Wed Sep 05, 2007 8:04 pm Post subject: |
|
|
| hahaha, wow. I didn't notice it went so far as to pass the actual random formation in. Uh, at least give me credit for those awesome variable names? |
|
| Back to top |
|
 |
Camdog
Joined: 08 Aug 2003 Posts: 606
|
Posted: Thu Sep 06, 2007 5:49 am Post subject: |
|
|
| The Mad Cacti wrote: | | Also, Camdog, fightformation takes a formation as argument, not a formation set. |
Huh? When did I say otherwise? |
|
| Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Thu Sep 06, 2007 6:52 am Post subject: |
|
|
The code snippet you gave implied it. _________________ "It is so great it is insanely great." |
|
| Back to top |
|
 |
Camdog
Joined: 08 Aug 2003 Posts: 606
|
Posted: Thu Sep 06, 2007 7:07 am Post subject: |
|
|
| Well, that wasn't intentional. I was just giving a random example; the numbers in fight formation weren't intended to correlate with formation sets. |
|
| Back to top |
|
 |
|