• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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