help with condition hero easy

DrEvil

FCRI Associate!
Reaction score
111
Trigger:
  • Red Not Have Hero
    • Events
    • Conditions
    • Actions
      • Set g = (Units owned by Player 1 (Red) matching (((Matching unit) is A Hero) Equal to True))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of units in g) Equal to 0
        • Then - Actions
          • -------- He has no heroes .... --------
        • Else - Actions
          • -------- He has heroes!!!! --------
      • Custom script: call DestroyGroup(udg_g)
        • -------- Remove the leak -------


g = unit group var
set g = Units owned by player matching (boolean , matching unit is a hero )
if ( integer , number of units in g ) equal to 0

if you did the comparison in the real Conditions you would be leaking a group so...

( long time since I've been using GUI ^_^ )
 

windale5

New Member
Reaction score
2
question if i have the event every 1 sec. on game and set g to equal to what ever u there would i make the variable lag or go wrong by any chance
 

DrEvil

FCRI Associate!
Reaction score
111
no , it shouldn't lag at 1 second intervals ^_^
as long as you set the group , after you've finished with it , destroy it .
Then it'l be good to use the next 1 second when the trigger fires again.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top