if one trigger has the same event 3 times, will it trigger 3 times?

Status
Not open for further replies.

Kuberr24

Well-Known Member
Reaction score
28
I don't have wc3 near, else I'd test it myself.

Anybody tested this already? Thx!

for example:

event
unit 5 dies
unit 5 dies
unit 5 dies
action
set gold = gold+240



Also, another smalle question: If I add to a trigger the event "unitvariable_1 dies", but unitvariable_1 isn't defined yet, will it cause crashes or something? What if during the game, with triggers, i set unitvariable_1 to different units? will the trigger know that the unit that is supposed to trigger the trigger changed, or will it always use the first unit declared in unitvariable_1 ?
 

deebee

New Member
Reaction score
15
Yes for question #1

No to trigger event crashing.

If you changed the variable, the old event still takes the first declaration, hence you need to add an another event to the trigger after your new declaration
 

Grundy

Ultra Cool Member
Reaction score
35
well in jass yea obviously you can but this isn't the jass help forum. in gui you don't even have the option to. or at least thats how it worked the last time i used gui.
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
You can use a variable in a event in Gui
 

Komaqtion

You can change this now in User CP.
Reaction score
469
There's an event (in GUI) called Unit - Specific Unit Event (As cleeezzz said) where it say:
Unit Dies

And the part part can only be changed to variables, or pre-placed units :D
 

Grundy

Ultra Cool Member
Reaction score
35
yea that's the event i'm talking about. last time i used that event in GUI it would only let me select preplaced units. obviously it has been changed over the last several years if you all say you can use variables now
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Oh, sorry I'm incorrect XD You can't use variables there :( But if you add the event by another trigger, you can :D
 

Grundy

Ultra Cool Member
Reaction score
35
Man, I knew it!

Everyone's yelling at me and telling me I'm wrong and saying I'm blind and I was right after all.
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
No your still wrong variable can be used just via another trigger.
 

N2o)

Retired.
Reaction score
51
Man, I knew it!

Everyone's yelling at me and telling me I'm wrong and saying I'm blind and I was right after all.

Trigger - Add Event

Try looking at that in your trigger editor, You can add a Specific Unit Event using this action to another trigger.
You could add a:
unitVariable dies
via this action.
 
Status
Not open for further replies.
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