- Joined
- Feb 28, 2007
- Messages
- 3,479
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.
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..
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.
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.
Game - Time of Day
Checks when the in game time becomes equal to a time you set, from 00:00 - 24:00.
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.
Game - Game Load
Occours when a saved game file you have saved is loaded. Like loading the map you're playing.
Game - Game Save
Same as above exept for when you save a game file instead of loading one.
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.
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.
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.
Player - Cinematic Skipped
Occours when the picked player skips a cinematic, used for making cinematics skippable like in the blizzard campaigns.
Player - Selection Event
Checks when a player selects any unit on the map.
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.
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.
Player - Alliance Change
Checks when a player makes an alliance change, such as making another player your ally or enemy and such.
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.
Player - Victory
Occours when the selected player leaves the game victorious, meaning you've won the map you just played.
Player - Defeat
Occours when the selected player leaves the game defeated, meining you've lost the map you just played.
Player - Leaves Game
Occours when the selected player suddenly leaves a game.
Time - Time Elapsed
Occours when a selectable time has elapsed, using real world time, 300 seconds for example being 5 real minutes.
Time - Periodic Event
Occours every *Your Inputed Number*
Time - Timer Expires
Occours when a 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.
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.
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.
Unit - A Unit Enters Region
Occours when any unit enters a specific region, like when a unit enters region called VictoryRegion, you win.
Unit - A Unit Leaves Region
Occours when any unit leaves a specific 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.
Unit - Life
Occours when your units life becomes a certain value, as the Paladins health points is depleted, full or any selectable value.
Unit - Mana
Occours when your units mana becomes a certain value, as the Archamage's mana points is depleted, full or any selectable value.
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
-
Events
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
-
Events
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
-
Events
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
-
Events
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
-
Events
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
-
Events
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
-
Events
Game - Game Save
Same as above exept for when you save a game file instead of loading one.
-
Example Trigger
-
Events
- Game - Game Save
-
Events
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
-
Events
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
-
Events
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
-
Events
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
-
Events
Player - Selection Event
Checks when a player selects any unit on the map.
-
Example Trigger
-
Events
- Player - Selection Event
-
Events
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
-
Events
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
-
Events
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
-
Events
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)
-
Events
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
-
Events
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
-
Events
Player - Leaves Game
Occours when the selected player suddenly leaves a game.
-
Example Trigger
-
Events
- Player - Leaves Game
-
Events
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
-
Events
Time - Periodic Event
Occours every *Your Inputed Number*
-
Example Trigger
-
Events
- Time - Periodic Event
-
Events
Time - Timer Expires
Occours when a timer expires.
-
Example Trigger
-
Events
- Time - Timer Expires
-
Events
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
-
Events
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
-
Events
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
-
Events
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
-
Events
Unit - A Unit Leaves Region
Occours when any unit leaves a specific region.
-
Example Trigger
-
Events
- Unit - A Unit Leaves Region
-
Events
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
-
Events
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
-
Events
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
-
Events
Last edited: