- Joined
- Aug 7, 2013
- Messages
- 1,338
Hi,
I have learned how to register a condition and set of actions to a trigger, but how does one register an event?
e.g.
But how does one add an event that drives the trigger? My understanding is that the above trigger would just fire off every trigger cycle? Should there not be something like
For example, I want the above trigger to fire off only when a player enters a chat string.
I have learned how to register a condition and set of actions to a trigger, but how does one register an event?
e.g.
JASS:
gg_trg_myTrig = CreateTrigger()
call TriggerAddCondition(gg_trg_myTrig, function myCondition1, ...)
call TriggerAddAction(gg_trg_myTrig, function myAction1, ...)
But how does one add an event that drives the trigger? My understanding is that the above trigger would just fire off every trigger cycle? Should there not be something like
TriggerAddEvent(gg_trg_myTrig, event e1, ...)
? For example, I want the above trigger to fire off only when a player enters a chat string.