Getting an error of a simple script

unska

New Member
Reaction score
1
Hey,

I'm getting the following error:

wc3error.png


from this script:

wc3script.png


The line with the Unit Group command is causing the error.

What I'm trying to do is to kill a unit called Builder from a player who quits the game. Another script will detect the death of the Builder and do other stuff.
 

unska

New Member
Reaction score
1
It just kills all the units of the triggering player but it's disabled at the moment. :)
 

emilemil1

New Member
Reaction score
20
I am 100% sure that it is another trigger (possible a death trigger) that this one activates that is messing things up.

Unless you accidently deleted a piece of the trigger.

EDIT: add a event that runs on command from you to all other triggers that could run from this one (or a trigger that runs from the trigger that runs ffrom this one...you get the idea)
 

wraithseeker

Tired.
Reaction score
122
Try removing Player (Purple) leaves the game with a defeat and see if it still crashes, if removing it still crash, that means that your unit type builder has some problems.
 

unska

New Member
Reaction score
1
Oh, the other death script wasn't disabled as I thought. This is what is causing the game to crash, what is wrong here:

wc3problem.png
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Well, try setting that unit group into a variable to clean up the leak, then add this custom script underneath the unit group action:
call DestroyGroup(udg_Your_Variable)
These actions has to be in the if :D
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top