OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: CopyrightPhilly on 13 Apr 2004, 02:28:29

Title: Plz Help Me
Post by: CopyrightPhilly 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
Title: Re:Plz Help Me
Post by: Planck 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
Title: Re:Plz Help Me
Post by: CopyrightPhilly on 13 Apr 2004, 03:01:16
Thanks A Lot M8

Just What I  Was Looking For....

Thanks Again, Philly