- Joined
- Apr 23, 2010
- Messages
- 312
I'm trying to show on the multiboard if the defined hero is alive, to say "Alive" under the respawn portion of the board and if it's dead to show the amount of waiting time before it's respawned. The problem is, after a hero is selected for play, the entire respawn section is replaced saying "Alive" in each column when it should be just on the rows with player names.
Below is close to what the board should look like (this is also before a hero is chosen).
After a hero is picked the board becomes what you see below, not exactly what i'm looking for.
This last image below only shows for a split second after the hero has died, showing the waiting time and then returning to the previous image above.
Here is the trigger I used to create the multiboard. Everything else works the way it's intended.
This is for when a hero dies, everything is prepared for the revival trigger.
Last but not least, the evil trigger that doesn't want to cooperate. It does wait the set amount of time before the hero is respawned, though it doesn't count down in the multiboard. R_Unit is defined in a different trigger, when the hero is selected for play.
Any help is appreciated, I've been banging my head against the wall trying to figure out why this wont work correctly.
Below is close to what the board should look like (this is also before a hero is chosen).

After a hero is picked the board becomes what you see below, not exactly what i'm looking for.

This last image below only shows for a split second after the hero has died, showing the waiting time and then returning to the previous image above.

Here is the trigger I used to create the multiboard. Everything else works the way it's intended.
-
Create the Multiboard
-
Events
-
Time - Elapsed game time is 0.00 seconds
-
-
Conditions
-
Actions
-
Set MultiBoard_Players = (Number of players in (All players matching (((Matching player) slot status) Equal to Is playing)))
-
Multiboard - Create a multiboard with 4 columns and (MultiBoard_Players + 2) rows, titled Statistics
-
Set MultiBoard = (Last created multiboard)
-
Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to Player
-
Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to Kills
-
Multiboard - Set the text for (Last created multiboard) item in column 3, row 1 to Deaths
-
Multiboard - Set the text for (Last created multiboard) item in column 4, row 1 to Respawn
-
For each (Integer A) from 1 to (MultiBoard_Players + 2), do (Actions)
-
Loop - Actions
-
Multiboard - Set the display style for (Last created multiboard) item in column 1, row (Integer A) to Show text and Hide icons
-
Multiboard - Set the display style for (Last created multiboard) item in column 2, row (Integer A) to Show text and Hide icons
-
Multiboard - Set the display style for (Last created multiboard) item in column 3, row (Integer A) to Show text and Hide icons
-
Multiboard - Set the display style for (Last created multiboard) item in column 4, row (Integer A) to Show text and Hide icons
-
Multiboard - Set the width for (Last created multiboard) item in column 1, row (Integer A) to 10.00% of the total screen width
-
Multiboard - Set the width for (Last created multiboard) item in column 2, row (Integer A) to 5.00% of the total screen width
-
Multiboard - Set the width for (Last created multiboard) item in column 3, row (Integer A) to 5.00% of the total screen width
-
Multiboard - Set the width for (Last created multiboard) item in column 4, row (Integer A) to 5.00% of the total screen width
-
-
-
Multiboard - Set the display style for (Last created multiboard) item in column 1, row 1 to Show text and Hide icons
-
Set List = 3
-
Player Group - Pick every player in Forces[1] and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked player) slot status) Equal to Is playing
-
And - All (Conditions) are true
-
Conditions
-
(Picked player) Not equal to Player 10 (Light Blue)
-
(Picked player) Not equal to Player 11 (Dark Green)
-
-
-
-
Then - Actions
-
Set Multiboard_Spots[(Player number of (Picked player))] = List
-
Multiboard - Set the text for (Last created multiboard) item in column 1, row List to (Color_Text[(Player number of (Picked player))] + ((Name of (Picked player)) + |r))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked player) is an ally of Player 10 (Light Blue)) Equal to True
-
-
Then - Actions
-
Multiboard - Set the icon for (Last created multiboard) item in column 1, row List to ReplaceableTextures\CommandButtons\BTNPeasant.blp
-
Multiboard - Set the display style for (Last created multiboard) item in column 1, row List to Show text and Show icons
-
-
Else - Actions
-
Multiboard - Set the icon for (Last created multiboard) item in column 1, row List to ReplaceableTextures\CommandButtons\BTNPeon.blp
-
Multiboard - Set the display style for (Last created multiboard) item in column 1, row List to Show text and Show icons
-
-
-
Multiboard - Set the text for (Last created multiboard) item in column 2, row List to 0
-
Multiboard - Set the text for (Last created multiboard) item in column 3, row List to 0
-
Set List = (List + 1)
-
-
Else - Actions
-
-
-
-
Multiboard - Show (Last created multiboard)
-
Multiboard - Maximize (Last created multiboard)
-
-
-
Set Revival
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
((Triggering unit) is A Hero) Equal to True
-
-
Actions
-
Set temp_point = (Position of (Triggering unit))
-
Special Effect - Create a special effect at temp_point using Abilities\Spells\Human\MarkOfChaos\MarkOfChaosTarget.mdl
-
Custom script: call RemoveLocation(udg_temp_point)
-
Set R_PlayerNumber = (Player number of (Owner of (Triggering unit)))
-
Set R_Wait[R_PlayerNumber] = (((Hero level of (Triggering unit)) x 2) + 8)
-
Multiboard - Set the text for (Last created multiboard) item in column 4, row Multiboard_Spots[R_PlayerNumber] to (|cffFF0000 + (String(R_Wait[R_PlayerNumber])))
-
Set Revive_Instances = (Revive_Instances + 1)
-
Trigger - Turn on Revive <gen>
-
-
-
Revive
-
Events
-
Time - Every 1.00 seconds of game time
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Revive_Instances Equal to 0
-
-
Then - Actions
-
Trigger - Turn off (This trigger)
-
-
Else - Actions
-
-
For each (Integer R_MUI) from 1 to 6, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
Conditions
-
(R_Unit[R_MUI] is dead) Equal to True
-
R_Wait[R_MUI] Less than or equal to 0
-
-
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Player(R_MUI)) is an ally of Player 10 (Light Blue)) Equal to True
-
-
Then - Actions
-
Set temp_point = (Random point in Humans <gen>)
-
-
Else - Actions
-
Set temp_point = (Random point in Orcs <gen>)
-
-
-
Hero - Instantly revive R_Unit[R_MUI] at temp_point, Hide revival graphics
-
Unit - Set life of R_Unit[R_MUI] to ((Max life of R_Unit[R_MUI]) x 0.25)
-
Unit - Set mana of R_Unit[R_MUI] to ((Max mana of R_Unit[R_MUI]) x 0.25)
-
Selection - Select R_Unit[R_MUI] for (Player(R_MUI))
-
Camera - Pan camera for (Owner of R_Unit[R_MUI]) to temp_point over 0.50 seconds
-
Special Effect - Create a special effect at temp_point using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Custom script: call RemoveLocation(udg_temp_point)
-
Multiboard - Set the text for (Last created multiboard) item in column 4, row Multiboard_Spots[R_MUI] to |cff00FF00Alive
-
Set Revive_Instances = (Revive_Instances - 1)
-
-
Else - Actions
-
Set R_Wait[R_MUI] = (R_Wait[R_MUI] - 1)
-
Multiboard - Set the text for (Last created multiboard) item in column 4, row Multiboard_Spots[R_MUI] to (|cffFF0000 + (String(R_Wait[R_PlayerNumber])))
-
-
-
-
-
-