HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Need help for 2 triggers

10-26-2008, 08:19 PM#1
JIonaTaTa
Hi

Anybody knows how to check movespeed of player's hero with chat command and how to set per-player victory after -timer X minutes?

I used an already created for that triggers w/o result, movespeed returned value is 0.000 and time command didn't work - just timer expires and that's all ... game continues

Also leaderboard don't work correctly - first kill for every player is not calculated.

Trigger:
Map Initialization
Collapse Events
Map initialization
Conditions
Collapse Actions
Collapse For each (Integer A) from 1 to 12, do (Actions)
Collapse Loop - Actions
Trigger - Add to Victory Command <gen> the event (Player - (Player((Integer A))) types a chat message containing -victory as An exact match)
Trigger - Add to Help Command <gen> the event (Player - (Player((Integer A))) types a chat message containing -help as An exact match)
Trigger - Add to Author Command <gen> the event (Player - (Player((Integer A))) types a chat message containing -author as An exact match)
Trigger - Add to Move Speed Command <gen> the event (Player - (Player((Integer A))) types a chat message containing -ms as An exact match)
Player - Change color of Player 1 (Red) to Red, Changing color of existing units
Player - Change color of Player 2 (Blue) to Blue, Changing color of existing units
Player - Change color of Player 3 (Teal) to Teal, Changing color of existing units
Player - Change color of Player 4 (Purple) to Purple, Changing color of existing units
Player - Change color of Player 5 (Yellow) to Yellow, Changing color of existing units
Player - Change color of Player 6 (Orange) to Orange, Changing color of existing units
Player - Change color of Player 7 (Green) to Green, Changing color of existing units
Player - Change color of Player 8 (Pink) to Pink, Changing color of existing units
Player - Change color of Player 9 (Gray) to Gray, Changing color of existing units
Player - Change color of Player 10 (Light Blue) to Light Blue, Changing color of existing units
Player - Change color of Player 11 (Dark Green) to Dark Green, Changing color of existing units
Player - Change color of Player 12 (Brown) to Brown, Changing color of existing units
Player - Set name of Player 1 (Red) to PillowMaster
Player - Set name of Player 2 (Blue) to Sleepin' worm
Player - Set name of Player 3 (Teal) to DreamCatcher
Player - Set name of Player 4 (Purple) to I watch horrors bef...
Player - Set name of Player 5 (Yellow) to Midnight Urinator
Player - Set name of Player 6 (Orange) to Where's my blanket?
Player - Set name of Player 7 (Green) to Smoke Weed and Go t...
Player - Set name of Player 8 (Pink) to DreamMaker
Player - Set name of Player 9 (Gray) to Keyboard is not a p...
Player - Set name of Player 10 (Light Blue) to Too tired to Play
Player - Set name of Player 11 (Dark Green) to Wake Me at t3h Noon
Player - Set name of Player 12 (Brown) to The usual leaver
Game - Set game speed to Fastest
Game - Lock the game speed
Game - Set the time of day to 12.00
Game - Turn the day/night cycle Off
Game - Display to (All players) for 15.00 seconds the text: To check available ...
Visibility - Disable black mask
Visibility - Disable fog of war
Player Group - Pick every player in (All players) and do (Unit - Create 1 Mountain King for (Picked player) at ((Picked player) start location) facing (Center of (Playable map area)))

Trigger:
Leaderboard
Collapse Events
Time - Elapsed game time is 1.00 seconds
Conditions
Collapse Actions
Leaderboard - Create a leaderboard for (All players) titled -= K I L L S =-
Leaderboard - Show (Last created leaderboard)
Leaderboard - Sort (Last created leaderboard) by Value in Ascending order
Collapse Player Group - Pick every player in (All players) and do (Actions)
Collapse Loop - Actions
Leaderboard - Add (Picked player) to (Last created leaderboard) with label (Name of (Picked player)) and value 0

Trigger:
Level and Skills of Heroes
Collapse Events
Unit - A unit enters (Playable map area)
Collapse Conditions
((Triggering unit) is A Hero) Equal to True
Collapse Actions
Hero - Set (Triggering unit) Hero-level to 10, Hide level-up graphics
Hero - Learn skill for (Triggering unit): Human Mountain King - Avatar
Hero - Learn skill for (Triggering unit): Human Mountain King - Bash
Hero - Learn skill for (Triggering unit): Human Mountain King - Bash
Hero - Learn skill for (Triggering unit): Human Mountain King - Bash
Hero - Learn skill for (Triggering unit): Human Mountain King - Storm Bolt
Hero - Learn skill for (Triggering unit): Human Mountain King - Storm Bolt
Hero - Learn skill for (Triggering unit): Human Mountain King - Storm Bolt
Hero - Learn skill for (Triggering unit): Human Mountain King - Thunder Clap
Hero - Learn skill for (Triggering unit): Human Mountain King - Thunder Clap
Hero - Learn skill for (Triggering unit): Human Mountain King - Thunder Clap

Trigger:
Hero revival and kills counting
Collapse Events
Unit - A unit Dies
Collapse Conditions
((Triggering unit) is A Hero) Equal to True
Collapse Actions
Leaderboard - Change the value for (Owner of (Killing unit)) in (Last created leaderboard) to LB[(Player number of (Owner of (Killing unit)))]
Set LB[(Player number of (Owner of (Killing unit)))] = (LB[(Player number of (Owner of (Killing unit)))] + 1)
Wait 5.00 seconds
Hero - Instantly revive (Triggering unit) at ((Owner of (Triggering unit)) start location), Hide revival graphics

Trigger:
Timer
Collapse Events
Player - Player 1 (Red) types a chat message containing -timer as An exact match
Conditions
Collapse Actions
Countdown Timer - Create a timer window for Timer with title Time remaining:
Countdown Timer - Start Timer as a One-shot timer that will expire in 10.00 seconds

Trigger:
Timer expired
Collapse Events
Time - Timer expires
Conditions
Collapse Actions
Countdown Timer - Destroy (Last created timer window)
Game - Victory (Triggering player) (Show dialogs, Show scores)

Trigger:
Move Speed Command
Events
Conditions
Collapse Actions
Game - Display to (Player group((Triggering player))) for 5.00 seconds the text: (String((Current movement speed of (Triggering unit))))

Trigger:
Victory Command
Events
Conditions
Collapse Actions
Game - Victory (Triggering player) (Show dialogs, Show scores)

Trigger:
Help Command
Events
Conditions
Collapse Actions
Game - Display to (Player group((Triggering player))) for 15.00 seconds the text: -victory gives inst...

Trigger:
Author Command
Events
Conditions
Collapse Actions
Game - Display to (Player group((Triggering player))) for 15.00 seconds the text: unknown