Home   Help Search Login Register  

Author Topic: Plz Help Me  (Read 421 times)

0 Members and 1 Guest are viewing this topic.

CopyrightPhilly

  • Guest
Plz Help Me
« on: 13 Apr 2004, 02:28:29 »
ok I'm After A Little Code That Checks How Many Soldiers A Leader Has Under Its Comannd...

And Then If It Has The Full 11 Soldiers Then To goto"ok"

Is There Any Simple Code That Will Check This?

Cheers, PHilly

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Plz Help Me
« Reply #1 on: 13 Apr 2004, 02:54:00 »
Not much to go on there, but:

_men = count units nameofyourgroup
? _men == 12 : goto "ok"
? _men <12 : hint format ["Group has %1 men", _men]
goto "notok"
#ok
...more stuff
...extra stuff
...anything else
goto "exit"
#notok
...bits
...more bits
...income tax return
#exit
exit

EDIT..........forgot the exit



Planck
« Last Edit: 13 Apr 2004, 03:01:35 by Planck »
I know a little about a lot, and a lot about a little.

CopyrightPhilly

  • Guest
Re:Plz Help Me
« Reply #2 on: 13 Apr 2004, 03:01:16 »
Thanks A Lot M8

Just What I  Was Looking For....

Thanks Again, Philly