HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

how do you do this: if [long condition] then blah else blah?

01-15-2003, 11:03 AM#1
Phil_123
how do you do this:

if:
The sum of the mana of all the units in UNIT-GROUP < 80
then:
do nothing
else:
skip remaining actions

?
01-15-2003, 03:06 PM#2
Guest
Action:
Set Variable (mana) = 0
Pick all units in (unit group) and do set variable (mana )=(mana)+(Unit property -->mana)
if(mana<80,00) then do nothing else skip rem. actions.


where mana has to be a real variable.