- Joined
- Dec 17, 2009
- Messages
- 1,115
1.I'm going to reduce a unit's health by it's percentage of life
(the formula)
Well, this thing is what i learned from school
Main value - (Main Value / (25/100))
Variable info
PickedHero[Array] its the player's hero!i've set it when the player has picked it's hero!
TempPG player group!
is this the way to reduce it's health?
Coz just now i was making this
Anyone knows?
2.Multiboard,
I've just created a multi board for the statistics of the players (kill n deaths!)
will this work?(you can make a test map for the triggs if you want it to look better ^^ and simplified!)
And!! The updates!
When they leave! (-_ -')
(the formula)
Well, this thing is what i learned from school
Main value - (Main Value / (25/100))
Variable info
PickedHero[Array] its the player's hero!i've set it when the player has picked it's hero!
TempPG player group!
is this the way to reduce it's health?
Coz just now i was making this
-
Rain of $$
-
Events
-
Time - Every 300.00 seconds of game time
-
-
Conditions
-
Actions
-
Set TempPG = (All allies of (Owner of (Researching unit)))
-
Player Group - Pick every player in TempPG and do (Actions)
-
Loop - Actions
-
Player - Add 700 to (Picked player) Current gold
-
-
-
Custom script: call DestroyForce( udg_TempPG )
-
For each (Integer A) from 1 to 10, do (Actions)
-
Loop - Actions
-
Unit - Set life of PickedHero[(Integer A)] to ((Life of PickedHero[(Integer A)]) - ((Life of PickedHero[(Integer A)]) x (25.00 / 100.00)))
-
-
-
Game - Display to (All players) the text: |cffff0000Whoa!Rain...
-
-
Anyone knows?
2.Multiboard,
I've just created a multi board for the statistics of the players (kill n deaths!)
will this work?(you can make a test map for the triggs if you want it to look better ^^ and simplified!)
-
Statistic Board
-
Events
-
Time - Elapsed game time is 0.00 seconds
-
-
Conditions
-
Actions
-
Multiboard - Create a multiboard with 3 columns and 12 rows, titled Statistics
-
Set StatisticBoard = (Last created multiboard)
-
Multiboard - Show StatisticBoard
-
Multiboard - Change the color of the title for StatisticBoard to (100.00%, 80.00%, 20.00%) with 0.00% transparency
-
For each (Integer A) from 1 to 4, do (Actions)
-
Loop - Actions
-
Multiboard - Set the width for StatisticBoard item in column (Integer A), row 1 to 6.00% of the total screen width
-
Multiboard - Set the width for StatisticBoard item in column (Integer A), row 2 to 6.00% of the total screen width
-
Multiboard - Set the width for StatisticBoard item in column (Integer A), row 3 to 6.00% of the total screen width
-
Multiboard - Set the width for StatisticBoard item in column (Integer A), row 4 to 6.00% of the total screen width
-
-
-
For each (Integer A) from 1 to 12, do (Actions)
-
Loop - Actions
-
Multiboard - Set the width for StatisticBoard item in column 1, row (Integer A) to 15.00% of the total screen width
-
Multiboard - Set the width for StatisticBoard item in column 2, row (Integer A) to 3.00% of the total screen width
-
Multiboard - Set the width for StatisticBoard item in column 3, row (Integer A) to 3.00% of the total screen width
-
-
-
-------- Infor --------
-
Multiboard - Set the text for StatisticBoard item in column 2, row 1 to Kills
-
Multiboard - Set the text for StatisticBoard item in column 3, row 1 to Deaths
-
-------- - --------
-
Multiboard - Set the text for StatisticBoard item in column 1, row 1 to |cffffcc00Team1|r
-
Multiboard - Set the text for StatisticBoard item in column 1, row 7 to |cffffcc00Team2|r
-
-------- 2-6 is the players of team 1 --------
-
Multiboard - Set the text for StatisticBoard item in column 1, row 2 to (|CFFFF0303 + ((Name of Player 1 (Red)) + |r))
-
Multiboard - Set the text for StatisticBoard item in column 1, row 3 to (|CFF0042FF + ((Name of Player 2 (Blue)) + |r))
-
Multiboard - Set the text for StatisticBoard item in column 1, row 4 to (|CFF1BE6D8 + ((Name of Player 3 (Teal)) + |r))
-
Multiboard - Set the text for StatisticBoard item in column 1, row 5 to (|CFF540081 + ((Name of Player 4 (Purple)) + |r))
-
Multiboard - Set the text for StatisticBoard item in column 1, row 6 to (|CFFFFFF01 + ((Name of Player 5 (Yellow)) + |r))
-
-------- 8-12 is the players of team 2 --------
-
Multiboard - Set the text for StatisticBoard item in column 1, row 8 to (|CFFFE8A0E + ((Name of Player 6 (Orange)) + |r))
-
Multiboard - Set the text for StatisticBoard item in column 1, row 9 to (|CFF20C000 + ((Name of Player 7 (Green)) + |r))
-
Multiboard - Set the text for StatisticBoard item in column 1, row 10 to (|CFFE55BB0 + ((Name of Player 8 (Pink)) + |r))
-
Multiboard - Set the text for StatisticBoard item in column 1, row 11 to (|CFF959697 + ((Name of Player 9 (Gray)) + |r))
-
Multiboard - Set the text for StatisticBoard item in column 1, row 12 to (|CFF7EBFF1 + ((Name of Player 10 (Light Blue)) + |r))
-
-
And!! The updates!
-
KillsDeaths
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
((Dying unit) is A Hero) Equal to True
-
And - All (Conditions) are true
-
Conditions
-
((Killing unit) is A Hero) Equal to True
-
((Dying unit) is A Hero) Equal to True
-
-
-
-
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Owner of (Dying unit)) Equal to Player 1 (Red)
-
(Owner of (Killing unit)) Equal to Player 1 (Red)
-
-
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Owner of (Dying unit)) Equal to Player 1 (Red)
-
-
Then - Actions
-
Set Death_Count[(Player number of (Owner of (Killing unit)))] = (Death_Count[(Player number of (Owner of (Killing unit)))] + 1)
-
Multiboard - Set the text for StatisticBoard item in column 3, row 2 to (String(Death_Count[1]))
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Owner of (Killing unit)) Equal to Player 1 (Red)
-
-
Then - Actions
-
Set Hero_Kills[(Player number of (Owner of (Killing unit)))] = (Hero_Kills[(Player number of (Owner of (Killing unit)))] + 1)
-
Multiboard - Set the text for StatisticBoard item in column 2, row 2 to (String(Hero_Kills[1]))
-
-
Else - Actions
-
-
-
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Owner of (Dying unit)) Equal to Player 2 (Blue)
-
(Owner of (Killing unit)) Equal to Player 2 (Blue)
-
-
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Owner of (Dying unit)) Equal to Player 2 (Blue)
-
-
Then - Actions
-
Set Death_Count[(Player number of (Owner of (Killing unit)))] = (Death_Count[(Player number of (Owner of (Killing unit)))] + 1)
-
Multiboard - Set the text for StatisticBoard item in column 3, row 3 to (String(Death_Count[2]))
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Owner of (Killing unit)) Equal to Player 2 (Blue)
-
-
Then - Actions
-
Set Hero_Kills[(Player number of (Owner of (Killing unit)))] = (Hero_Kills[(Player number of (Owner of (Killing unit)))] + 1)
-
Multiboard - Set the text for StatisticBoard item in column 2, row 3 to (String(Hero_Kills[2]))
-
-
Else - Actions
-
-
-
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Owner of (Dying unit)) Equal to Player 3 (Teal)
-
(Owner of (Killing unit)) Equal to Player 3 (Teal)
-
-
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Owner of (Dying unit)) Equal to Player 3 (Teal)
-
-
Then - Actions
-
Set Death_Count[(Player number of (Owner of (Killing unit)))] = (Death_Count[(Player number of (Owner of (Killing unit)))] + 1)
-
Multiboard - Set the text for StatisticBoard item in column 3, row 4 to (String(Death_Count[3]))
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Owner of (Killing unit)) Equal to Player 3 (Teal)
-
-
Then - Actions
-
Set Hero_Kills[(Player number of (Owner of (Killing unit)))] = (Hero_Kills[(Player number of (Owner of (Killing unit)))] + 1)
-
Multiboard - Set the text for StatisticBoard item in column 2, row 4 to (String(Hero_Kills[3]))
-
-
Else - Actions
-
-
-
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Owner of (Dying unit)) Equal to Player 4 (Purple)
-
(Owner of (Killing unit)) Equal to Player 4 (Purple)
-
-
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Owner of (Dying unit)) Equal to Player 4 (Purple)
-
-
Then - Actions
-
Set Death_Count[(Player number of (Owner of (Killing unit)))] = (Death_Count[(Player number of (Owner of (Killing unit)))] + 1)
-
Multiboard - Set the text for StatisticBoard item in column 3, row 5 to (String(Death_Count[4]))
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Owner of (Killing unit)) Equal to Player 4 (Purple)
-
-
Then - Actions
-
Set Hero_Kills[(Player number of (Owner of (Killing unit)))] = (Hero_Kills[(Player number of (Owner of (Killing unit)))] + 1)
-
Multiboard - Set the text for StatisticBoard item in column 2, row 5 to (String(Hero_Kills[4]))
-
-
Else - Actions
-
-
-
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Owner of (Dying unit)) Equal to Player 5 (Yellow)
-
(Owner of (Killing unit)) Equal to Player 5 (Yellow)
-
-
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Owner of (Dying unit)) Equal to Player 5 (Yellow)
-
-
Then - Actions
-
Set Death_Count[(Player number of (Owner of (Killing unit)))] = (Death_Count[(Player number of (Owner of (Killing unit)))] + 1)
-
Multiboard - Set the text for StatisticBoard item in column 3, row 6 to (String(Death_Count[5]))
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Owner of (Killing unit)) Equal to Player 5 (Yellow)
-
-
Then - Actions
-
Set Hero_Kills[(Player number of (Owner of (Killing unit)))] = (Hero_Kills[(Player number of (Owner of (Killing unit)))] + 1)
-
Multiboard - Set the text for StatisticBoard item in column 2, row 6 to (String(Hero_Kills[5]))
-
-
Else - Actions
-
-
-
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Owner of (Dying unit)) Equal to Player 6 (Orange)
-
(Owner of (Killing unit)) Equal to Player 6 (Orange)
-
-
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Owner of (Dying unit)) Equal to Player 6 (Orange)
-
-
Then - Actions
-
Set Death_Count[(Player number of (Owner of (Killing unit)))] = (Death_Count[(Player number of (Owner of (Killing unit)))] + 1)
-
Multiboard - Set the text for StatisticBoard item in column 3, row 8 to (String(Death_Count[6]))
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Owner of (Killing unit)) Equal to Player 6 (Orange)
-
-
Then - Actions
-
Set Hero_Kills[(Player number of (Owner of (Killing unit)))] = (Hero_Kills[(Player number of (Owner of (Killing unit)))] + 1)
-
Multiboard - Set the text for StatisticBoard item in column 2, row 8 to (String(Hero_Kills[6]))
-
-
Else - Actions
-
-
-
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Owner of (Dying unit)) Equal to Player 7 (Green)
-
(Owner of (Killing unit)) Equal to Player 7 (Green)
-
-
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Owner of (Dying unit)) Equal to Player 7 (Green)
-
-
Then - Actions
-
Set Death_Count[(Player number of (Owner of (Killing unit)))] = (Death_Count[(Player number of (Owner of (Killing unit)))] + 1)
-
Multiboard - Set the text for StatisticBoard item in column 3, row 9 to (String(Death_Count[7]))
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Owner of (Killing unit)) Equal to Player 7 (Green)
-
-
Then - Actions
-
Set Hero_Kills[(Player number of (Owner of (Killing unit)))] = (Hero_Kills[(Player number of (Owner of (Killing unit)))] + 1)
-
Multiboard - Set the text for StatisticBoard item in column 2, row 9 to (String(Hero_Kills[7]))
-
-
Else - Actions
-
-
-
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Owner of (Dying unit)) Equal to Player 8 (Pink)
-
(Owner of (Killing unit)) Equal to Player 8 (Pink)
-
-
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Owner of (Dying unit)) Equal to Player 8 (Pink)
-
-
Then - Actions
-
Set Death_Count[(Player number of (Owner of (Killing unit)))] = (Death_Count[(Player number of (Owner of (Killing unit)))] + 1)
-
Multiboard - Set the text for StatisticBoard item in column 3, row 10 to (String(Death_Count[8]))
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Owner of (Killing unit)) Equal to Player 8 (Pink)
-
-
Then - Actions
-
Set Hero_Kills[(Player number of (Owner of (Killing unit)))] = (Hero_Kills[(Player number of (Owner of (Killing unit)))] + 1)
-
Multiboard - Set the text for StatisticBoard item in column 2, row 10 to (String(Hero_Kills[8]))
-
-
Else - Actions
-
-
-
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Owner of (Dying unit)) Equal to Player 9 (Gray)
-
(Owner of (Killing unit)) Equal to Player 9 (Gray)
-
-
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Owner of (Dying unit)) Equal to Player 9 (Gray)
-
-
Then - Actions
-
Set Death_Count[(Player number of (Owner of (Killing unit)))] = (Death_Count[(Player number of (Owner of (Killing unit)))] + 1)
-
Multiboard - Set the text for StatisticBoard item in column 3, row 11 to (String(Death_Count[9]))
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Owner of (Killing unit)) Equal to Player 9 (Gray)
-
-
Then - Actions
-
Set Hero_Kills[(Player number of (Owner of (Killing unit)))] = (Hero_Kills[(Player number of (Owner of (Killing unit)))] + 1)
-
Multiboard - Set the text for StatisticBoard item in column 2, row 11 to (String(Hero_Kills[9]))
-
-
Else - Actions
-
-
-
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Owner of (Dying unit)) Equal to Player 10 (Light Blue)
-
(Owner of (Killing unit)) Equal to Player 10 (Light Blue)
-
-
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Owner of (Dying unit)) Equal to Player 10 (Light Blue)
-
-
Then - Actions
-
Set Death_Count[(Player number of (Owner of (Killing unit)))] = (Death_Count[(Player number of (Owner of (Killing unit)))] + 1)
-
Multiboard - Set the text for StatisticBoard item in column 3, row 12 to (String(Death_Count[10]))
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Owner of (Killing unit)) Equal to Player 10 (Light Blue)
-
-
Then - Actions
-
Set Hero_Kills[(Player number of (Owner of (Killing unit)))] = (Hero_Kills[(Player number of (Owner of (Killing unit)))] + 1)
-
Multiboard - Set the text for StatisticBoard item in column 2, row 12 to (String(Hero_Kills[10]))
-
-
Else - Actions
-
-
-
-
-
Else - Actions
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Icons
-
Events
-
Time - Elapsed game time is 1.00 seconds
-
-
Conditions
-
Actions
-
Multiboard - Set the icon for StatisticBoard item in column 1, row 1 to ReplaceableTextures\CommandButtons\BTNFootman.blp
-
Multiboard - Set the icon for StatisticBoard item in column 1, row 7 to ReplaceableTextures\CommandButtons\BTNFootman.blp
-
For each (Integer A) from 1 to 12, do (Actions)
-
Loop - Actions
-
Multiboard - Set the icon for StatisticBoard item in column 2, row (Integer A) to ReplaceableTextures\WorldEditUI\Editor-Force.blp
-
Multiboard - Set the icon for StatisticBoard item in column 3, row (Integer A) to ReplaceableTextures\WorldEditUI\Editor-Ally-NoPriority.blp
-
-
-
For each (Integer A) from 2 to 6, do (Actions)
-
Loop - Actions
-
Multiboard - Set the icon for StatisticBoard item in column 1, row (Integer A) to ReplaceableTextures\CommandButtons\BTNSpiritWalkerAdeptTraining.blp
-
-
-
For each (Integer A) from 8 to 12, do (Actions)
-
Loop - Actions
-
Multiboard - Set the icon for StatisticBoard item in column 1, row (Integer A) to ReplaceableTextures\CommandButtons\BTNMaskOfDeath.blp
-
-
-
-
When they leave! (-_ -')
-
wah
-
Events
-
Player - Player 1 (Red) leaves the game
-
Player - Player 2 (Blue) leaves the game
-
Player - Player 4 (Purple) leaves the game
-
Player - Player 5 (Yellow) leaves the game
-
Player - Player 6 (Orange) leaves the game
-
Player - Player 7 (Green) leaves the game
-
Player - Player 8 (Pink) leaves the game
-
Player - Player 9 (Gray) leaves the game
-
Player - Player 10 (Light Blue) leaves the game
-
-
Conditions
-
Actions
-
Game - Display to (All players) the text: ((Name of (Triggering player)) + has left the game)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Triggering player) is an ally of Player 11 (Dark Green)) Equal to True
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Triggering player) Equal to Player 1 (Red)
-
-
Then - Actions
-
Multiboard - Set the text for StatisticBoard item in column 1, row 2 to <Left>
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Triggering player) Equal to Player 2 (Blue)
-
-
Then - Actions
-
Multiboard - Set the text for StatisticBoard item in column 1, row 3 to <Left>
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Triggering player) Equal to Player 3 (Teal)
-
-
Then - Actions
-
Multiboard - Set the text for StatisticBoard item in column 1, row 4 to <Left>
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Triggering player) Equal to Player 4 (Purple)
-
-
Then - Actions
-
Multiboard - Set the text for StatisticBoard item in column 1, row 5 to <Left>
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Triggering player) Equal to Player 5 (Yellow)
-
-
Then - Actions
-
Multiboard - Set the text for StatisticBoard item in column 1, row 6 to <Left>
-
-
Else - Actions
-
-
-
-
-
-
-
-
-
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Triggering player) is an ally of Player 12 (Brown)) Equal to True
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Triggering player) Equal to Player 6 (Orange)
-
-
Then - Actions
-
Multiboard - Set the text for StatisticBoard item in column 1, row 8 to <Left>
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Triggering player) Equal to Player 7 (Green)
-
-
Then - Actions
-
Multiboard - Set the text for StatisticBoard item in column 1, row 9 to <Left>
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Triggering player) Equal to Player 8 (Pink)
-
-
Then - Actions
-
Multiboard - Set the text for StatisticBoard item in column 1, row 10 to <Left>
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Triggering player) Equal to Player 9 (Gray)
-
-
Then - Actions
-
Multiboard - Set the text for StatisticBoard item in column 1, row 11 to <Left>
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Triggering player) Equal to Player 10 (Light Blue)
-
-
Then - Actions
-
Multiboard - Set the text for StatisticBoard item in column 1, row 12 to <Left>
-
-
Else - Actions
-
-
-
-
-
-
-
-
-
-
-
Else - Actions
-
-
-
-
-