buildings that produce gold trigger help

Arbink

New Member
Reaction score
0
i need help with my trigger its not working......

Untitled.jpg

why is my pic so tiny.....
 

Bogrim

y hello thar
Reaction score
154
Your trigger doesn't work for two reasons.

First, as vonDarkmoor said, you need a periodic time event. "Elapsed time" is for how long the game itself has run, e.g. an elapsed time event at 10.00 seconds would happen after the game has ran for 10 seconds and never again.

Second, your trigger has been disabled because of a compilation error. As you should know, the GUI (Graphical User Interface) that you use is just a template form of a code language. If the code isn't written correctly, the game won't permit you to run the trigger.

The error is that the unit group you create with a variable and the unit group you destroy in the custom script do not have the same name. You are destroying a unit group that doesn't exist, and this is what causes the compilation error. Instead, your custom script should be:

Trigger:
  • Custom script: call DestroyGroup(udg_Temp_unitgroup)

Remember that lower and higher case does affect how you type in the name of variables as well.
 

Arbink

New Member
Reaction score
0
How did i miss the name difference lol.... i dont have warcraft on this computer so ill have to test it when i get home
 
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