HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Basic Trigger Compilation

02-10-2004, 07:28 PM#1
Shad0wFuRy
Here is just a compilaton of some basic triggers. I will post more later.

[glow=blue]Kick Player[/glow]
[O] Untitled Trigger 001
- Events
- Actions

Right click - Events
New event
Event type can be - All or - Player
Player - Chat message
Player 1 (red) types a message containing -kick blue as an exact match

Conditions - none

Actions - Game - Defeat
Defeat Player 2 (blue) with the message: You have kicked

Copy this more times depedening on how many players are in your game. Just change Player 2 (blue) with someone else who will be kicked when host says so.

(Examples will be used for specified Units/regions, ** will be used for region example)
[glow=blue]-a unit enters a region (circle of power) and moves with/without camera panning.[/glow]
*Event
unit- A unit enters **region**
*Conditions (none)
*Actions
Unit- Move (Triggering Unit) instantly to (**region**)
Camera- Pan Camera for (Owner of (triggering unit)) to (**region**) over 0.01 seconds *(time may be changed)*

[glow=blue]Leader Board[/glow]
Variables=Variable Name Variable Type Initial Value
-i -Integer -0
-Kills -Integer Array (1) -0 (Default)
-MaxKills -Integer -45
-OwnedUnitDeath -Unit -none-

*Event
Map Initialization
*Conditions (none)
*Actions
---------Begin Leaderboard---------
Wait 1.00 seconds
Leaderboard-Create a leaderboard for (All players) titled **KILLS**
Player Group-Pick every player in (All Players) and do (if (((picked player) slot status) Equal to is playing) then do
(Leaderboard-Add (picked player) t0 (last created leaderboard)
leaderboard-Sort (Last created leaderboard) by Value in ascending order
leaderboard-show (last created leaderboard)

*Event
Unit- A uinit owned by player 1 (red) dies
*Condition (none)
*Actions
Set kills[(Player number of(killing unit)))]=(kills[(Player number of (owner of (killing unit)))] + 1)
Leaderboard- Change the value for (Owner of (killing unit)) in (Last created leaderboard) to kills[(Player Number of
(owner of (killing unit)))]
Leaderboard- Sort (last Created leaderboard) by Value in Descending order

[glow=blue]Full Visibility[/glow]
*Event
Map Initalization
*Conditions (none)
*Actions
Player Group-Pick every player in (All players) and do (visibility-Create an initially Enabled visibility modifier for
(picked player) emitting visibility across (playable map area))

[glow=blue]Floating Text[/glow]
*Event
unit- A unit enters **region**
or
Wait game time- 0.01 seconds
*Conditions (none)
*Actions
Floating Text-Create floating text that reads MESSAGE HERE at (**region**) with Z offset, Etc...

[glow=blue]Regular Window text[/glow]
*Event
Time-Elapsed game time is **12.00** seconds
*Conditions (none)
*Actions
Game-Display to (all Players) for **20.00** seconds the text: **MESSAGE HERE**

[glow=blue]Choosing a hero from (Circle of Powers)[/glow]
*Event
Unit- A unit enters **region**
*Conditions (none)
*Actions
Unit-Remove (triggering unit) from the game
Unit-create 1 **hero** for (owner of (triggering unit)) at (center of **region**) facing Default building facing degrees
Trigger-turn of (this trigger)

[glow=blue]Revive Hero[/glow]
*Event
Unit- Specific Unit Event (**hero** dies)
*Condition (none)
*Action
Hero- revive Triggering Unit Instantly at **Region**

[glow=blue]Changing In-game player name[/glow]
*Event
map initialization
*Condition (none)
*Actions
Player- Set name of Player 1 (Red) to **Speaker**

[glow=blue]Timer[/glow]
*Event
Time- Elapsed game time is **7.00** seconds
*Conditions (none)
*Actions
Countdown timer- Create a timer window for (Last started timer) with title **Speaker rules**
Countdown timer- Start (last created timer) as a one-shot timer that will expire in **40.00** seconds
Wait 40.00 seconds
Countdown Timer-Destoy (last created timer window)
02-10-2004, 07:49 PM#2
MysticGeneral
Good start on the amount of triggers. Maybe post this in the Trigger Respirotary? (or however you spell that word..)
02-10-2004, 09:15 PM#3
Shad0wFuRy
I thought i was in the repositoryemote_sweat Well, what do you guys think? There will be more to come.