Is this Leakes?

tork

New Member
Reaction score
2
plz tell me if this is leakes and if not tell me how to make it so

Code:
Exp Gain
    Events
        Unit - A unit Dies
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Triggering unit) is A Hero) Equal to True
            Then - Actions
                Hero - Add ((Level of (Triggering unit)) x 10) experience to (Killing unit), Show level-up graphics
                Unit Group - Pick every unit in (Units within 1200.00 of (Position of (Triggering unit))) and do (Actions)
                    Loop - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                ((Dying unit) belongs to an enemy of (Owner of (Killing unit))) Equal to True
                            Then - Actions
                                Hero - Add ((Level of (Triggering unit)) x 30) experience to (Picked unit), Show level-up graphics
                            Else - Actions
            Else - Actions
                Hero - Add ((Level of (Triggering unit)) x 10) experience to (Killing unit), Show level-up graphics
                Unit Group - Pick every unit in (Units within 1200.00 of (Position of (Triggering unit))) and do (Actions)
                    Loop - Actions
                        Hero - Add ((Level of (Triggering unit)) x 10) experience to (Picked unit), Show level-up graphics

Thank you for your help
 

Romek

Super Moderator
Reaction score
963
Yes, that leaks.
Click
 

DarkSonicele

New Member
Reaction score
20
Code:
Exp Gain
    Events
        Unit - A unit Dies
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Triggering unit) is A Hero) Equal to True
            Then - Actions
                Hero - Add ((Level of (Triggering unit)) x 10) experience to (Killing unit), Show level-up graphics
                Unit Group - [COLOR="Red"]Pick every unit in (Units within 1200.00 of [COLOR="Green"](Position of (Triggering unit))[/COLOR])[/COLOR] and do (Actions)
                    Loop - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                ((Dying unit) belongs to an enemy of (Owner of (Killing unit))) Equal to True
                            Then - Actions
                                Hero - Add ((Level of (Triggering unit)) x 30) experience to (Picked unit), Show level-up graphics
                            Else - Actions
            Else - Actions
                Hero - Add ((Level of (Triggering unit)) x 10) experience to (Killing unit), Show level-up graphics
                Unit Group - [COLOR="Red"]Pick every unit in (Units within 1200.00 of [COLOR="Green"](Position of (Triggering unit))[/COLOR])[/COLOR] and do (Actions)
                    Loop - Actions
                        Hero - Add ((Level of (Triggering unit)) x 10) experience to (Picked unit), Show level-up graphics

I have marked group leaks with red and point leaks with Green.

You can remove the group leaks by using the custom script "call DestroyGroup(GetLastCreatedGroup())".

And you can remove the point leaks by adding them to a variable which you then remove with the custom script "call RemoveLocation(udg_YourPoint)".
Replace YourPoint with the variable name. Both scripts are case sensitive.
 
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