HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Scoreboard+Time

07-15-2004, 05:53 PM#1
BuRnInSpartan
i don't know how to make a scoreboard that keeps the kills of your heroes and if one dies to set a death timer. Here's what i have so far however when one timer runs out it destroys a different timer window (not it's own). (If you don't know what i'm talking about but are really good with triggers i'm talking about a scoreboard like from battleforatlantis or dota)


WHAT I ALREADY HAVE


Trigger=ARROW DEATH (name)

Events: Unit - Arrow 0000 <gen> Dies.

Conditions: NONE

Actions: Countdown Timer - Start Rejeneration as a One-shot timer that will expire in 60.00 seconds.
Countdown Timer - Create a timer window for (Last started timer) with title (Name of (Owner of (Dying unit)))
Trigger - Turn off (This Trigger)
Trigger- Turn on (This Trigger)

Trigger=REVIVE T1 (name)

Events: Time - Rejenerate expires

Conditions: NONE

Actions: Countdown Timer - Destroy (Last created timer window)
Hero - Instantly revive Arrow 0000 <gen> at (Center of P1 Spawn Here <gen>), Show revival graphics
Game - Display to (All Players) ((Proper name of (Triggering unit)) + has revived.)
Trigger - Turn off (This Trigger)
Trigger - Turn on (This Trigger)
07-15-2004, 06:02 PM#2
Anitarf
Well, you destroy the "last created" timer window after 60 seconds, so if, in the meantime, any other timer window is created, the trigger will naturaly destroy that one. You must set the window to a variable so the other trigger knows which window to destroy.
07-15-2004, 06:04 PM#3
Mayor
You should make a trigger witch decrements a variable <seconds to revive> every second and displays this variable on the board, an when the variable is 0 they unit should revived
07-15-2004, 06:11 PM#4
Milkman
This will be done in this manor:
For each integer A from 1 to ReviveTime:
Loop actions:
If Revive = 60 then do:
Revive Actions
Else:
Set: Revive: Revive + 1
Wait 1 seconds
07-15-2004, 09:33 PM#5
BuRnInSpartan
hey thanks guys . i'm gonna try that out. C00L sig milkman how'd you do that? O yea how do you name the timer...? i did Create a timer window for rejenerate with title (name of (Owner of ((Dying unit))) is that right? i also need to know how to set up the scoreboard so i can see both my hero kills and the timers.
07-15-2004, 10:20 PM#6
Rafael Br
For the kills, make a integer variable with array,(size equal to the max number of players), then make a trigger to update the variable, using the "a unit dies' event.Then make the value of the leaderboard equal to the variable.
If you use more than one hero for each player, use custom value instead of a variable(set custom value-killing unit), then update the leaderboard every time the unit kills a unit.
07-15-2004, 10:52 PM#7
BuRnInSpartan
ok my biggest problem now is how do i get an already made timer window to be used in an action? LIke it says

Countdown Timer- Create a timer window for Rejenerate with title (Name of (Owner of (Dying uint))) but i can't make a timer window change to my custom made timer window :(
07-18-2004, 03:40 PM#8
BuRnInSpartan
not to be rude but... some help would be nice ^_^