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

General GameEvents

Status
Not open for further replies.
Level 26
Joined
Aug 18, 2009
Messages
4,097
Is there any use for those game events?

JASS:
constant gameevent EVENT_GAME_VARIABLE_LIMIT=ConvertGameEvent(2)
constant gameevent EVENT_GAME_STATE_LIMIT=ConvertGameEvent(3)   

constant gameevent EVENT_GAME_TIMER_EXPIRED=ConvertGameEvent(4)

constant gameevent EVENT_GAME_ENTER_REGION=ConvertGameEvent(5)
constant gameevent EVENT_GAME_LEAVE_REGION=ConvertGameEvent(6)

constant gameevent EVENT_GAME_TRACKABLE_HIT=ConvertGameEvent(7)
constant gameevent EVENT_GAME_TRACKABLE_TRACK=ConvertGameEvent(8)

Or are they only internally inherited to the more specific events like TriggerRegisterTimerExpireEvent? It does not seem like TriggerRegisterGameEvent(trigger, EVENT_GAME_TIMER_EXPIRED) would detect the expiration of any timer for example.

The only thing that comes to mind is that you could compare the eventid you get from GetTriggerEventId in order to compare it to those constants. But registering events of different types on the same trigger makes hardly sense.
 
Status
Not open for further replies.
Top