• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Tutorial about Events

Level 24
Joined
Feb 28, 2007
Messages
3,480
Tutorial about Events *Updated*

Uptaded 8 / 8 - 07

BASICS OF EVENTS
This tutorial will go trough the basics of events, this is NOT a tutorial for advanced users of world editor, but one that covers the basics of events, if you already have knowledge about events, this is not a tutorial for you, with that said, let's start today's class.

Events
You can say that evens check when something should happen, so basicly the event tells the actions when to do whatever you've told them to. There are alot of Events, and I shall go trough them one by one below.

Map Initialization
Occours when the map starts. Usable for example things that should happen at the direct map start, such as start cinematic or perhaps player alliances and such. This map can be used for a large amount of different things.
  • Example Trigger
    • Events
      • Map initialization

Destructible - Destructible Dies
Occours whenever a destructible dies, destructibles are for example trees or rock chunks. For example it could be used for checking whenever a tree dies, it pops up a little cinematic dialog like:
Greenpeace Guy: "Hey you! You no kill no tree!", or something..
  • Example Trigger
    • Events
      • Destructible - Destructible Dies

Destructible - Destructible Within Region Dies
Same as above with the difference that the destructible that dies using this event must be in a certain region and cannot be anywhere on the map.
  • Example Trigger
    • Events
      • Destructible - Destructible Within Region Dies

Dialog - Dialog Button Click
Occours when a Dialog button is clicked for a certain Dialog which you select from those dialogs that you have created.
  • Example Trigger
    • Events
      • Dialog - Dialog Button

Game - Time of Day
Checks when the in game time becomes equal to a time you set, from 00:00 - 24:00.
  • Example Trigger
    • Events
      • Game - Time of Day

Game - Value of Real Variable
Occours when a variable becomes a certain number that you input, for example if variable DigitVariable goes to zero, a certain unit is killed, or a gate is opened.
  • Example Trigger
    • Events
      • Game - Value of Real Variable

Game - Game Load
Occours when a saved game file you have saved is loaded. Like loading the map you're playing.
  • Example Trigger
    • Events
      • Game - Game Load

Game - Game Save
Same as above exept for when you save a game file instead of loading one.
  • Example Trigger
    • Events
      • Game - Game Save

Game - Hero Abilities Button Clicked
Checks when the hero abilities button is clicked, this is the button you click on to learn new abilites to the heroes when they have recently gained a new level.
  • Example Trigger
    • Events
      • Game - Hero Abilities Button Clicked

Game - Build Structure Button Clicked
Checks when the build structure button is clicked, this button is the one workers have which you click on and see the icons of the buildable structures.
  • Example Trigger
    • Events
      • Game - Build Structure Button Clicked

Player - Chat Message
Occours when a selected player writes a certain selectable word, such as "Iwin" could make you win, or "Ilose" could make you lose, depending on which Actions you pick.
  • Example Trigger
    • Events
      • Player - Chat Message

Player - Cinematic Skipped
Occours when the picked player skips a cinematic, used for making cinematics skippable like in the blizzard campaigns.
  • Example Trigger
    • Events
      • Player - Cinematic Skipped

Player - Selection Event
Checks when a player selects any unit on the map.
  • Example Trigger
    • Events
      • Player - Selection Event

Player - Keyboard Event
Checks when a player presses a key button on his keyboard, such as <Space> or <Escape>, if you for example want escape to cause a nuclear explosion and kill everything and everyone on the map.
  • Example Trigger
    • Events
      • Player - Keyboard Event

Player - Properties
Occours when the picked players resources or a whole lot of other things, like available free heroes reach a certain selectable value, like Player 1's Current Gold = 1000 would make you win the map for example.
  • Example Trigger
    • Events
      • Player - Properties

Player - Alliance Change
Checks when a player makes an alliance change, such as making another player your ally or enemy and such.
  • Example Trigger
    • Events
      • Player - Alliance Change

Player - Alliance Change (Specific)
Checks when a player makes an specific alliance change, this is like above but you can only select one alliance change that activates the event, such as only making other players enemies would start the trigger, and not making another player your ally.
  • Example Trigger
    • Events
      • Player - Alliance Change (Specific)

Player - Victory
Occours when the selected player leaves the game victorious, meaning you've won the map you just played.
  • Example Trigger
    • Events
      • Player - Victory

Player - Defeat
Occours when the selected player leaves the game defeated, meining you've lost the map you just played.
  • Example Trigger
    • Events
      • Player - Defeat

Player - Leaves Game
Occours when the selected player suddenly leaves a game.
  • Example Trigger
    • Events
      • Player - Leaves Game

Time - Time Elapsed
Occours when a selectable time has elapsed, using real world time, 300 seconds for example being 5 real minutes.
  • Example Trigger
    • Events
      • Time - Time Elapsed

Time - Periodic Event
Occours every *Your Inputed Number*
  • Example Trigger
    • Events
      • Time - Periodic Event

Time - Timer Expires
Occours when a timer expires.
  • Example Trigger
    • Events
      • Time - Timer Expires

Unit - Specific Unit Event
Occours when something happens to the unit you have selected, you can choose between for example dies or gains a level.
  • Example Trigger
    • Events
      • Unit - Specific Unit Event

Unit - Player Owned Unit Event
Same as above, just that the unit must be owned by a specific player, like when a Player 1 (Red) unit dies.
  • Example Trigger
    • Events
      • Unit - Player Owned Unit Event

Unit - Generic Unit Event
Occours when your selected option (dies, gains a level etc. as stated above.) happens to any unit on the entire map, inclucding all players units, creeps, critters, etc.
  • Example Trigger
    • Events
      • Unit - Generic Event

Unit - A Unit Enters Region
Occours when any unit enters a specific region, like when a unit enters region called VictoryRegion, you win.
  • Example Trigger
    • Events
      • Unit - A Unit Enters Region

Unit - A Unit Leaves Region
Occours when any unit leaves a specific region.
  • Example Trigger
    • Events
      • Unit - A Unit Leaves Region

Unit - Unit Within Range
Occours when any unit comes within in a selectable range to the unit you pick, such as when Grunt0001 comes within 750 range of of Footman0002.
  • Example Trigger
    • Events
      • Unit - Unit Within Range

Unit - Life
Occours when your units life becomes a certain value, as the Paladins health points is depleted, full or any selectable value.
  • Example Trigger
    • Events
      • Unit - Life

Unit - Mana
Occours when your units mana becomes a certain value, as the Archamage's mana points is depleted, full or any selectable value.
  • Example Trigger
    • Events
      • Unit - Mana
 
Last edited:
Level 40
Joined
Dec 14, 2005
Messages
10,532
The events are sort of self-explanatory, and you don't really describe more than most of them describe from the obvious or from their descriptions.

Sorry, but Graveyard'd. If you want to make a more expansive tutorial (perhaps cover conditions and actions, or something) then feel free to post it here in Tutorial Submissions.
 
Top