- Joined
- Aug 4, 2012
- Messages
- 193
TriggerRegisterUnitEvent takes trigger whichTrigger, unit whichUnit, unitevent whichEvent returns event
// Unit Events
constant unitevent EVENT_UNIT_DAMAGED
constant unitevent EVENT_UNIT_DEATH
constant unitevent EVENT_UNIT_DECAY
constant unitevent EVENT_UNIT_DETECTED
constant unitevent EVENT_UNIT_HIDDEN
constant unitevent EVENT_UNIT_SELECTED
constant unitevent EVENT_UNIT_DESELECTED
constant unitevent EVENT_UNIT_STATE_LIMIT
// Events which may have a filter for the "other unit"
//
constant unitevent EVENT_UNIT_ACQUIRED_TARGET
constant unitevent EVENT_UNIT_TARGET_IN_RANGE
constant unitevent EVENT_UNIT_ATTACKED
constant unitevent EVENT_UNIT_RESCUED
constant unitevent EVENT_UNIT_CONSTRUCT_CANCEL
constant unitevent EVENT_UNIT_CONSTRUCT_FINISH
constant unitevent EVENT_UNIT_UPGRADE_START
constant unitevent EVENT_UNIT_UPGRADE_CANCEL
constant unitevent EVENT_UNIT_UPGRADE_FINISH
// Events which involve the specified unit performing
// training of other units
//
constant unitevent EVENT_UNIT_TRAIN_START
constant unitevent EVENT_UNIT_TRAIN_CANCEL
constant unitevent EVENT_UNIT_TRAIN_FINISH
constant unitevent EVENT_UNIT_RESEARCH_START
constant unitevent EVENT_UNIT_RESEARCH_CANCEL
constant unitevent EVENT_UNIT_RESEARCH_FINISH
constant unitevent EVENT_UNIT_ISSUED_ORDER
constant unitevent EVENT_UNIT_ISSUED_POINT_ORDER
constant unitevent EVENT_UNIT_ISSUED_TARGET_ORDER
constant unitevent EVENT_UNIT_HERO_LEVEL
constant unitevent EVENT_UNIT_HERO_SKILL
constant unitevent EVENT_UNIT_HERO_REVIVABLE
constant unitevent EVENT_UNIT_HERO_REVIVE_START
constant unitevent EVENT_UNIT_HERO_REVIVE_CANCEL
constant unitevent EVENT_UNIT_HERO_REVIVE_FINISH
constant unitevent EVENT_UNIT_SUMMON
constant unitevent EVENT_UNIT_DROP_ITEM
constant unitevent EVENT_UNIT_PICKUP_ITEM
constant unitevent EVENT_UNIT_USE_ITEM
EVENT_PLAYER_UNIT_SPELL_EFFECT
//take note that it is used with:
TriggerRegisterPlayerUnitEvent
native TriggerRegisterPlayerUnitEvent takes trigger whichTrigger, player whichPlayer, playerunitevent whichPlayerUnitEvent, boolexpr filter returns event
// EVENT_PLAYER_UNIT
constant playerunitevent EVENT_PLAYER_UNIT_ATTACKED
constant playerunitevent EVENT_PLAYER_UNIT_RESCUED
constant playerunitevent EVENT_PLAYER_UNIT_DEATH
constant playerunitevent EVENT_PLAYER_UNIT_DECAY
constant playerunitevent EVENT_PLAYER_UNIT_DETECTED
constant playerunitevent EVENT_PLAYER_UNIT_HIDDEN
constant playerunitevent EVENT_PLAYER_UNIT_SELECTED
constant playerunitevent EVENT_PLAYER_UNIT_DESELECTED
constant playerunitevent EVENT_PLAYER_UNIT_CONSTRUCT_START
constant playerunitevent EVENT_PLAYER_UNIT_CONSTRUCT_CANCEL
constant playerunitevent EVENT_PLAYER_UNIT_CONSTRUCT_FINISH
constant playerunitevent EVENT_PLAYER_UNIT_UPGRADE_START
constant playerunitevent EVENT_PLAYER_UNIT_UPGRADE_CANCEL
constant playerunitevent EVENT_PLAYER_UNIT_UPGRADE_FINISH
constant playerunitevent EVENT_PLAYER_UNIT_TRAIN_START
constant playerunitevent EVENT_PLAYER_UNIT_TRAIN_CANCEL
constant playerunitevent EVENT_PLAYER_UNIT_TRAIN_FINISH
constant playerunitevent EVENT_PLAYER_UNIT_RESEARCH_START
constant playerunitevent EVENT_PLAYER_UNIT_RESEARCH_CANCEL
constant playerunitevent EVENT_PLAYER_UNIT_RESEARCH_FINISH
constant playerunitevent EVENT_PLAYER_UNIT_ISSUED_ORDER
constant playerunitevent EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER
constant playerunitevent EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER
constant playerunitevent EVENT_PLAYER_UNIT_ISSUED_UNIT_ORDER
constant playerunitevent EVENT_PLAYER_HERO_LEVEL
constant playerunitevent EVENT_PLAYER_HERO_SKILL
constant playerunitevent EVENT_PLAYER_HERO_REVIVABLE
constant playerunitevent EVENT_PLAYER_HERO_REVIVE_START
constant playerunitevent EVENT_PLAYER_HERO_REVIVE_CANCEL
constant playerunitevent EVENT_PLAYER_HERO_REVIVE_FINISH
constant playerunitevent EVENT_PLAYER_UNIT_SUMMON
constant playerunitevent EVENT_PLAYER_UNIT_DROP_ITEM
constant playerunitevent EVENT_PLAYER_UNIT_PICKUP_ITEM
constant playerunitevent EVENT_PLAYER_UNIT_USE_ITEM
constant playerunitevent EVENT_PLAYER_UNIT_LOADED