U are a noob
Mega Super Ultra Cool Member
- Reaction score
- 152
i was wrong about the unlimited number since i forgot i still need to use arrays so the i was wrong there about that and i need to limit to 8191
yet here's a shorter way to do and work with:
Code:MUI GUI Init Events Map initialization Conditions Actions Custom script: set bj_wantDestroyGroup = true Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions) Loop - Actions Set Integer = (Integer + 1) Unit - Set the custom value of (Picked unit) to Integer
Code:MUI GUI Enters Events Unit - A unit enters (Entire map) Conditions Actions Set Integer = (Integer + 1) If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Integer Equal to 8192 Then - Actions For each (Integer A) from 1 to 8191, do (Actions) Loop - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Number[(Integer A)] Equal to 0 Then - Actions Unit - Set the custom value of (Triggering unit) to Number[(Integer A)] Set Number[(Integer A)] = 0 Else - Actions Else - Actions Unit - Set the custom value of (Triggering unit) to Integer
Code:MUI GUI Example Events Unit - A unit leaves (Entire map) Unit - A unit Dies Conditions Actions Set Number[(Custom value of (Triggering unit))] = (Custom value of (Triggering unit))
Nope. My system insures that each player gets the same amount of units. Your way a player could have 8191 units and others have none.
________________________
Check Out my MUI System for GUI