• 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.

'Add Event' action

Status
Not open for further replies.
Level 3
Joined
Mar 2, 2008
Messages
62
I've heard of people making abilities that require timers in one trigger using Add Event, and it could come in handy for a few maps im making...

So... can someone please explain what Add Event actually does, and how to use it correctly?
 
Level 3
Joined
Mar 2, 2008
Messages
62
is it possible to use Add Event and local variables to do something in one trigger that otherwise requires globals and 2 triggers? because thats what i had heard somewhere..

is something like 'timer expires' and 'unit starts casting an ability' in one trigger feasible/possible at all?
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
Any combination of events is possible, but arbitrary ones are silly unless you are experienced, badly need optimization, are using them for very specific circumstances, and know exactly what you're doing.

is it possible to use Add Event and local variables to do something in one trigger that otherwise requires globals and 2 triggers? because thats what i had heard somewhere..
That makes no sense (Please rephrase). How could you be only using one trigger if you were adding events to another?

Cool never noticed this action before, but is there a way to also remove an event then?
Else it seems pretty fucked up if you want a loop, but that theres still another event, maybe good for regions though
Reset the trigger. (Remake it from scratch on the fly - it can be done in Jass (how do you think triggers are made anyways?))
 
Level 3
Joined
Mar 2, 2008
Messages
62
That makes no sense (Please rephrase). How could you be only using one trigger if you were adding events to another?

After reading about some JASS, i mean a similar thing to how HandleVars work. I only really wanted to do that to avoid using too many ability-specific globals.

if that made any sense...
 
Status
Not open for further replies.
Top