Code:
Kill All players mario
Events
Time - Every 0.05 seconds of game time
Conditions
Actions
-------- set bj_wantDestroyGroup = true --------
Unit Group - Pick every unit in (Units owned by Player 12 (Brown) matching ((Unit-type of (Matching unit)) Not equal to Block)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is alive) Equal to True
Then - Actions
-------- set bj_wantDestroyGroup = true --------
Unit Group - Pick every unit in (Units within 100.00 of (Position of (Picked unit)) matching ((((Owner of (Matching unit)) is an ally of (Owner of (Picked unit))) Equal to False) and (((Unit-type of (Matching unit)) Not equal to Fireball) and ((Unit-type of (Matching unit)) Not equal to Mar and do (Actions)
Loop - Actions
Unit Group - Pick every unit in (Units within 100.00 of (Position of (Picked unit)) matching (Mushroom_Mario[(Player number of (Owner of (Picked unit)))] Equal to 0)) and do (Actions)
Loop - Actions
Unit - Kill (Picked unit)
Wait 0.50 game-time seconds
Set Mushroom_Mario[(Player number of (Owner of (Picked unit)))] = 0
Else - Actions
Do nothing
When i get a mushroom powerup i dont get killed but i cant get killed for the rest of the game, the mushroom_mario isnt setting itself back to 0.


