• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[JASS] multiple triggers with same event

Status
Not open for further replies.
Level 3
Joined
Jan 9, 2008
Messages
24
Is it not possible to have 2 different triggers with the same event?
JASS:
call TriggerRegisterAnyUnitEventBJ( gg_trg_Trigger, EVENT_PLAYER_UNIT_RESEARCH_FINISH )
//
I tried to make another trigger with the same event but different conditions, but then the first one didnt do what it was supposed to do.
So i disabled the second one, and now the first one did what it was supposed to.
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
local trigger trig = CreateTrigger()
call TriggerAddAction(trig,function Actions1)
set trig = CreateTrigger()
call TriggerAddAction(trig,function Actions2)

there you go 2 triggers
 
Level 3
Joined
Jan 9, 2008
Messages
24
hehe, yeah got them to work now

i had registered both conditions on the same trigger :(
 
Status
Not open for further replies.
Top