HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Footman Duel Timer!!!!

07-27-2004, 02:47 PM#1
Hound Archon
I want to make a Footman duel like an arena where the highest level hero gets moved into an arena in the game but it doesnt work??
Here is what i did
Setup Duel Timer
Events
Time - DuelSetup expires
Conditions
Actions
Countdown Timer - Start Duel as a One-shot timer that will expire in 2.00 seconds
Countdown Timer - Create a timer window for Duel with title Next Duel
Set Duel = (Last started timer)
Countdown Timer - Show DuelTimerWindow
Visibility - Create an initially Enabled visibility modifier for (Picked player) emitting Visibility across Hero Arena <gen>

And here is some more

Start Duel
Events
Time - Duel expires
Conditions
Actions
Unit - Pause all units
Game - Display to (All players) the text: Two have been chose...
Set bPasued = True
Set bDuel = True
Countdown Timer - Start DuelTime as a One-shot timer that will expire in 120.00 seconds
Sound - Stop music After fading
Wait 3.00 seconds
Player Group - Pick every player in (All players) and do (Camera - Pan camera for (Picked player) to (Center of Hero Arena <gen>) over 1.00 seconds)
For each (Integer A) from 1 to 12, do (Set HeroSavePoints[(Integer A)] = (Position of Heroes[(Integer A)]))
For each (Integer A) from 1 to 12, do (Set HeroSaveDirection[(Integer A)] = (Facing of Heroes[(Integer A)]))
For each (Integer A) from 1 to 12, do (Unit - Move Heroes[(Integer A)] instantly to (Center of HeroDuelSpots[(Integer A)]))
For each (Integer A) from 1 to 12, do (Unit - Make Heroes[(Integer A)] face (Center of Hero Arena Center <gen>) over 0.00 seconds)
For each (Integer A) from 1 to 12, do (Unit - Make Heroes[(Integer A)] Invulnerable)
Set TempMaxKill = 0
For each (Integer A) from 1 to 6, do (If ((Kills[(Integer A)] Greater than TempMaxKill) and (((Player((Integer A))) slot status) Equal to Is playing)) then do (Set TempMaxKill = Kills[(Integer A)]) else do (Do nothing))
For each (Integer A) from 1 to 6, do (If ((Kills[(Integer A)] Equal to TempMaxKill) and (((Player((Integer A))) slot status) Equal to Is playing)) then do (Set Team1Leader = (Integer A)) else do (Do nothing))
Set Team1LeaderHero = Heroes[Team1Leader]
Unit - Move Team1LeaderHero instantly to (Center of Hero Arena 1 <gen>)
Unit - Set life of Team1LeaderHero to 100.00%
Unit - Set mana of Team1LeaderHero to 100.00%
Unit - Make Team1LeaderHero Vulnerable
Set TempMaxKill = 0
For each (Integer A) from 7 to 12, do (If ((Kills[(Integer A)] Greater than TempMaxKill) and (((Player((Integer A))) slot status) Equal to Is playing)) then do (Set TempMaxKill = Kills[(Integer A)]) else do (Do nothing))
For each (Integer A) from 7 to 12, do (If ((Kills[(Integer A)] Equal to TempMaxKill) and (((Player((Integer A))) slot status) Equal to Is playing)) then do (Set Team2Leader = (Integer A)) else do (Do nothing))
Set Team2LeaderHero = Heroes[Team2Leader]
Unit - Move Team2LeaderHero instantly to (Center of Hero Spawn 2 <gen>)
Unit - Set life of Team2LeaderHero to 100.00%
Unit - Set mana of Team2LeaderHero to 100.00%
Unit - Make Team2LeaderHero Vulnerable
Set TempMaxKill = 0
For each (Integer A) from 7 to 12, do (If ((Kills[(Integer A)] Greater than TempMaxKill) and (((Player((Integer A))) slot status) Equal to Is playing)) then do (Set TempMaxKill = Kills[(Integer A)]) else do (Do nothing))
For each (Integer A) from 7 to 12, do (If ((Kills[(Integer A)] Equal to TempMaxKill) and (((Player((Integer A))) slot status) Equal to Is playing)) then do (Set Team3Leader = (Integer A)) else do (Do nothing))
Set Team3LeaderHero = Heroes[Team3Leader]
Unit - Move Team3LeaderHero instantly to (Center of Hero Spawn 2 <gen>)
Unit - Set life of Team3LeaderHero to 100.00%
Unit - Set mana of Team3LeaderHero to 100.00%
Unit - Make Team3LeaderHero Vulnerable
Set TempMaxKill = 0
For each (Integer A) from 7 to 12, do (If ((Kills[(Integer A)] Greater than TempMaxKill) and (((Player((Integer A))) slot status) Equal to Is playing)) then do (Set TempMaxKill = Kills[(Integer A)]) else do (Do nothing))
For each (Integer A) from 7 to 12, do (If ((Kills[(Integer A)] Equal to TempMaxKill) and (((Player((Integer A))) slot status) Equal to Is playing)) then do (Set Team4Leader = (Integer A)) else do (Do nothing))
Set Team4LeaderHero = Heroes[Team2Leader]
Unit - Move Team4LeaderHero instantly to (Center of Hero Spawn 2 <gen>)
Unit - Set life of Team4LeaderHero to 100.00%
Unit - Set mana of Team4LeaderHero to 100.00%
Unit - Make Team4LeaderHero Vulnerable
Wait 5.00 seconds
Game - Display to (All players) the text: 3!
Wait 1.00 seconds
Game - Display to (All players) the text: 2!
Wait 1.00 seconds
Game - Display to (All players) the text: 1!
Wait 1.00 seconds
Game - Display to (All players) the text: Let battle be joine...
Unit - Unpause Team1LeaderHero
Unit - Unpause Team3LeaderHero
Unit - Unpause Team2LeaderHero
Unit - Unpause Team4LeaderHero
Unit - Unpause all units

End Duel
Events
Conditions
Actions
Unit - Pause all units
For each (Integer A) from 1 to 12, do (Unit - Move Heroes[(Integer A)] instantly to HeroSavePoints[(Integer A)], facing HeroSaveDirection[(Integer A)] degrees)
For each (Integer A) from 1 to 12, do (Unit - Make Heroes[(Integer A)] Vulnerable)
For each (Integer A) from 1 to 12, do (Camera - Pan camera for (Player((Integer A))) to HeroSavePoints[(Integer A)] over 1.00 seconds)
Set Team1Leader = 14
Set Team2Leader = 14
Set Team1LeaderHero = No unit
Set Team2LeaderHero = No unit
Sound - Stop music After fading
Wait 1.00 seconds
Wait 5.00 seconds
Set bDuel = False
Set bPasued = False
Unit - Unpause all units
Wait 1.00 seconds
Countdown Timer - Start Duel as a One-shot timer that will expire in 360.00 seconds

Duel Time
Events
Time - DuelTime expires
Conditions
bDuel Equal to True
Actions
Unit Group - Pick every unit in (Units in Hero Arena <gen>) and do (Unit - Kill (Picked unit))

Disable Duel
Events
Conditions
bDuel Equal to True
Actions
Player - Disable Divine Shield for (Owner of Team1LeaderHero)
Player - Disable Divine Shield for (Owner of Team3LeaderHero)
Player - Disable Divine Shield for (Owner of Team4LeaderHero)
Player - Disable Divine Shield for (Owner of Team2LeaderHero)
Player - Disable Blink for (Owner of Team1LeaderHero)
Player - Disable Blink for (Owner of Team2LeaderHero)
Player - Disable Blink for (Owner of Team3LeaderHero)
Player - Disable Blink for (Owner of Team4LeaderHero)
Player - Disable Staff of Teleportation for (Owner of Team1LeaderHero)
Player - Disable Staff of Teleportation for (Owner of Team2LeaderHero)
Player - Disable Staff of Teleportation for (Owner of Team3LeaderHero)
Player - Disable Staff of Teleportation for (Owner of Team4LeaderHero)
Enable Duel
Events
Conditions
bDuel Equal to False
Actions
Player - Enable Divine Shield for (Owner of Team1LeaderHero)
Player - Enable Divine Shield for (Owner of Team2LeaderHero)
Player - Enable Blink for (Owner of Team1LeaderHero)
Player - Enable Blink for (Owner of Team2LeaderHero)
Player - Enable Staff of Teleportation for (Owner of Team1LeaderHero)
Player - Enable Staff of Teleportation for (Owner of Team2LeaderHero)

whats wrong with it... the leaderboard wont show up either
07-28-2004, 12:24 AM#2
johnfn
Quote:
Originally Posted by linkmaster23
If you think ANYONE is going to read all of that... your insane.

I just had to quote that. But, I see an error immidately:

Setup Duel Timer
Events
Time - DuelSetup expires
Conditions
Actions
[blah]

This would work normaly, except for the first time around, when nothing would happen because there is no timer to expire. Unless you have another trigger starting it elsewhere, this could be the source of your problems.
Footman Duel Timer!!!! - Wc3C.net