funkystar.blogg.se

Warcraft 3 world editor triggers
Warcraft 3 world editor triggers









warcraft 3 world editor triggers

Test for victory / defeat at startup, in case the user has already won / lost.

warcraft 3 world editor triggers

Set a trigger to fire whenever this player changes his/her alliances.Ĭall TriggerRegisterPlayerAllianceChange(trig, indexPlayer, ALLIANCE_PASSIVE)Ĭall TriggerRegisterPlayerStateEvent(trig, indexPlayer, PLAYER_STATE_ALLIED_VICTORY, EQUAL, 1)Ĭall TriggerAddAction(trig, function MeleeTriggerActionAllianceChange) Set a trigger to fire whenever this player leavesĬall TriggerRegisterPlayerEvent(trig, indexPlayer, EVENT_PLAYER_LEAVE)Ĭall TriggerAddAction(trig, function MeleeTriggerActionPlayerLeft) Set a trigger to fire whenever this player defeats-outĬall TriggerRegisterPlayerEvent(trig, indexPlayer, EVENT_PLAYER_DEFEAT)Ĭall TriggerAddAction(trig, function MeleeTriggerActionPlayerDefeated) Set a trigger to fire whenever a unit begins construction for this playerĬall TriggerRegisterPlayerUnitEvent(trig, indexPlayer, EVENT_PLAYER_UNIT_CONSTRUCT_START, null)Ĭall TriggerAddAction(trig, function MeleeTriggerActionUnitConstructionStart) Set a trigger to fire whenever a unit dies for this player.Ĭall TriggerRegisterPlayerUnitEvent(trig, indexPlayer, EVENT_PLAYER_UNIT_DEATH, null)Ĭall TriggerAddAction(trig, function MeleeTriggerActionUnitDeath) This is an editor for the SNES version of Bust-A-Move. It is unknown if this will prove useful with other Super Famicom games. Set a trigger to fire whenever a building is cancelled for this player.Ĭall TriggerRegisterPlayerUnitEvent(trig, indexPlayer, EVENT_PLAYER_UNIT_CONSTRUCT_CANCEL, null)Ĭall TriggerAddAction(trig, function MeleeTriggerActionConstructCancel) The Angelique Tile Editor is a basic hex editor that allows pasting as hex into 18-byte records in the game Angelique for a special text output system. Set bj_crippledTimerWindows = CreateTimerDialog(bj_crippledTimer)Ĭall TimerDialogSetTitle(bj_crippledTimerWindows, MeleeGetCrippledTimerMessage(indexPlayer)) Create a timer and timer window in case the player is crippled. If (GetPlayerSlotState(indexPlayer) = PLAYER_SLOT_STATE_PLAYING) then Make sure this player slot is playing. Set a trigger to fire when we receive a "finish now" game eventĬall TriggerRegisterGameEvent(trig, EVENT_GAME_TOURNAMENT_FINISH_NOW)Ĭall TriggerAddAction(trig, function MeleeTriggerTournamentFinishNow) Set a trigger to fire when we receive a "finish soon" game eventĬall TriggerRegisterGameEvent(trig, EVENT_GAME_TOURNAMENT_FINISH_SOON)Ĭall TriggerAddAction(trig, function MeleeTriggerTournamentFinishSoon) Set bj_finishSoonTimerDialog = CreateTimerDialog(null) because it is driven by real time (outside of the game state to avoid desyncs) Create a timer window for the "finish soon" timeout period, it has no timer If you did follow the last step (changed coditions), it must look like this. If you won't do it, your trigger will not work. Now if you want only Heroes of Players to revive. Set it to for ] Make a new Action, set the expire time to the same as the Timer. Change the time that will expire, I have set it to 15 seconds. Make a region were your hero will revive.











Warcraft 3 world editor triggers