Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
Triggers
MUI skill leveling system.w3x
Variables
Critical Hit
Critical Level
Critical Chosen
Vision Map
Vision
Evasion
Evasion Level
Evasion Chosen
Blizzard
Blizzard Level
Blizzard Chosen
Enable/Disable
Disable Hero
Enter map-specific custom script code below. This text will be included in the map script after variables are declared and before any trigger code.
Name
Type
is_array
initial_value
BlizzardTrue
integer
Yes
0
BlizzardXP
real
Yes
0.00
CriticalTrue
integer
Yes
0
CriticalXP
real
Yes
0.00
EvasionTrue
integer
Yes
0
EvasionXP
real
Yes
0.00
Critical Level
Events
Unit - A unit Is attacked
Conditions
And - All (Conditions) are true
Conditions
CriticalTrue[(Player number of (Owner of (Attacking unit)))] Equal to 0
Or - Any (Conditions) are true
Conditions
(Unit-type of (Attacking unit)) Equal to Berserker
(Unit-type of (Attacking unit)) Equal to Archmage
(Unit-type of (Attacking unit)) Equal to Blood Mage
Actions
Set Variable Set CriticalXP[(Player number of (Owner of (Attacking unit)))] = (CriticalXP[(Player number of (Owner of (Attacking unit)))] + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CriticalXP[(Player number of (Owner of (Attacking unit)))] Equal to 10.00
Then - Actions
Unit - Increase level of Critical Hit for (Attacking unit)
Special Effect - Create a special effect attached to the chest (Unexpected type: 'attachpoint') of (Attacking unit) using Abilities\Spells\NightElf\BattleRoar\RoarCaster.mdl
Game - Display to (All players) for 10.00 seconds the text: ((Name of (Owner of (Attacking unit))) + 's |cffffcc00Critical Hit|r has just reached level 2.)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CriticalXP[(Player number of (Owner of (Attacking unit)))] Equal to 30.00
Then - Actions
Unit - Increase level of Critical Hit for (Attacking unit)
Special Effect - Create a special effect attached to the chest (Unexpected type: 'attachpoint') of (Attacking unit) using Abilities\Spells\NightElf\BattleRoar\RoarCaster.mdl
Game - Display to (All players) for 10.00 seconds the text: ((Name of (Owner of (Attacking unit))) + 's |cffffcc00Critical Hit|r has just reached level 3.)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CriticalXP[(Player number of (Owner of (Attacking unit)))] Equal to 75.00
Then - Actions
Unit - Increase level of Critical Hit for (Attacking unit)
Special Effect - Create a special effect attached to the chest (Unexpected type: 'attachpoint') of (Attacking unit) using Abilities\Spells\NightElf\BattleRoar\RoarCaster.mdl
Game - Display to (All players) for 10.00 seconds the text: ((Name of (Owner of (Attacking unit))) + 's |cffffcc00Critical Hit|r has just reached level 4.)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CriticalXP[(Player number of (Owner of (Attacking unit)))] Equal to 200.00
Then - Actions
Unit - Increase level of Critical Hit for (Attacking unit)
Special Effect - Create a special effect attached to the chest (Unexpected type: 'attachpoint') of (Attacking unit) using Abilities\Spells\NightElf\BattleRoar\RoarCaster.mdl
Game - Display to (All players) for 10.00 seconds the text: ((Name of (Owner of (Attacking unit))) + 's |cffffcc00Critical Hit|r has just reached level 5.)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CriticalXP[(Player number of (Owner of (Attacking unit)))] Equal to 500.00
Then - Actions
Unit - Increase level of Critical Hit for (Attacking unit)
Special Effect - Create a special effect attached to the chest (Unexpected type: 'attachpoint') of (Attacking unit) using Abilities\Spells\NightElf\BattleRoar\RoarCaster.mdl
Game - Display to (All players) for 10.00 seconds the text: ((Name of (Owner of (Attacking unit))) + 's |cffffcc00Critical Hit|r has just reached level 6.)
Else - Actions
Do nothing
Critical Chosen
Events
Unit - A unit Finishes training a unit
Conditions
(Trained unit) Equal to (Random unit from (Units of type Critical Hit))
Actions
Player - Enable Critical Hit for (Owner of (Trained unit))
Unit - Remove (Trained unit) from the game
Set Variable Set CriticalTrue[(Player number of (Owner of (Trained unit)))] = "0"
Vision
Events
Map initialization
Conditions
Actions
Visibility - Create an initially Enabled visibility modifier for Player 1 (Red) emitting Visibility across (Entire map)
Visibility - Create an initially Enabled visibility modifier for Player 2 (Blue) emitting Visibility across (Entire map)
Visibility - Create an initially Enabled visibility modifier for Player 3 (Teal) emitting Visibility across (Entire map)
Visibility - Create an initially Enabled visibility modifier for Player 4 (Purple) emitting Visibility across (Entire map)
Visibility - Create an initially Enabled visibility modifier for Player 5 (Yellow) emitting Visibility across (Entire map)
Visibility - Create an initially Enabled visibility modifier for Player 6 (Orange) emitting Visibility across (Entire map)
Visibility - Create an initially Enabled visibility modifier for Player 7 (Green) emitting Visibility across (Entire map)
Visibility - Create an initially Enabled visibility modifier for Player 8 (Pink) emitting Visibility across (Entire map)
Visibility - Create an initially Enabled visibility modifier for Player 9 (Gray) emitting Visibility across (Entire map)
Visibility - Create an initially Enabled visibility modifier for Player 10 (Light Blue) emitting Visibility across (Entire map)
Visibility - Create an initially Enabled visibility modifier for Player 11 (Dark Green) emitting Visibility across (Entire map)
Visibility - Create an initially Enabled visibility modifier for Player 12 (Brown) emitting Visibility across (Entire map)
Evasion Level
Events
Unit - A unit Is attacked
Conditions
And - All (Conditions) are true
Conditions
EvasionTrue[(Player number of (Owner of (Attacked unit)))] Equal to 0
Or - Any (Conditions) are true
Conditions
(Unit-type of (Attacked unit)) Equal to Berserker
(Unit-type of (Attacked unit)) Equal to Archmage
(Unit-type of (Attacked unit)) Equal to Blood Mage
Actions
Set Variable Set EvasionXP[(Player number of (Owner of (Attacked unit)))] = (EvasionXP[(Player number of (Owner of (Attacked unit)))] + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EvasionXP[(Player number of (Owner of (Attacked unit)))] Equal to 10.00
Then - Actions
Unit - Increase level of Evasion for (Attacked unit)
Special Effect - Create a special effect attached to the chest (Unexpected type: 'attachpoint') of (Attacked unit) using Abilities\Spells\Orc\MirrorImage\MirrorImageCaster.mdl
Game - Display to (All players) for 10.00 seconds the text: ((Name of (Owner of (Attacked unit))) + 's |cffffcc00Evasion|r has just reached level 2.)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EvasionXP[(Player number of (Owner of (Attacked unit)))] Equal to 30.00
Then - Actions
Unit - Increase level of Evasion for (Attacked unit)
Special Effect - Create a special effect attached to the chest (Unexpected type: 'attachpoint') of (Attacked unit) using Abilities\Spells\Orc\MirrorImage\MirrorImageCaster.mdl
Game - Display to (All players) for 10.00 seconds the text: ((Name of (Owner of (Attacked unit))) + 's |cffffcc00Evasion|r has just reached level 3.)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EvasionXP[(Player number of (Owner of (Attacked unit)))] Equal to 75.00
Then - Actions
Unit - Increase level of Evasion for (Attacked unit)
Special Effect - Create a special effect attached to the chest (Unexpected type: 'attachpoint') of (Attacked unit) using Abilities\Spells\Orc\MirrorImage\MirrorImageCaster.mdl
Game - Display to (All players) for 10.00 seconds the text: ((Name of (Owner of (Attacked unit))) + 's |cffffcc00Evasion|r has just reached level 4.)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EvasionXP[(Player number of (Owner of (Attacked unit)))] Equal to 150.00
Then - Actions
Unit - Increase level of Evasion for (Attacked unit)
Special Effect - Create a special effect attached to the chest (Unexpected type: 'attachpoint') of (Attacked unit) using Abilities\Spells\Orc\MirrorImage\MirrorImageCaster.mdl
Game - Display to (All players) for 10.00 seconds the text: ((Name of (Owner of (Attacked unit))) + 's |cffffcc00Evasion|r has just reached level 5)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EvasionXP[(Player number of (Owner of (Attacked unit)))] Equal to 300.00
Then - Actions
Unit - Increase level of Evasion for (Attacked unit)
Special Effect - Create a special effect attached to the chest (Unexpected type: 'attachpoint') of (Attacked unit) using Abilities\Spells\Orc\MirrorImage\MirrorImageCaster.mdl
Game - Display to (All players) for 10.00 seconds the text: ((Name of (Owner of (Attacked unit))) + 's |cffffcc00Evasion|r has just reached level 6.)
Else - Actions
Evasion Chosen
Events
Unit - A unit Finishes training a unit
Conditions
(Trained unit) Equal to (Random unit from (Units of type Evasion))
Actions
Player - Enable Evasion for (Owner of (Trained unit))
Unit - Remove (Trained unit) from the game
Set Variable Set EvasionTrue[(Player number of (Owner of (Trained unit)))] = "0"
Blizzard Level
Events
Unit - A unit Finishes casting an ability
Conditions
And - All (Conditions) are true
Conditions
(Ability being cast) Equal to Blizzard
BlizzardTrue[(Player number of (Owner of (Casting unit)))] Equal to 0
Or - Any (Conditions) are true
Conditions
(Unit-type of (Casting unit)) Equal to Berserker
(Unit-type of (Casting unit)) Equal to Archmage
(Unit-type of (Casting unit)) Equal to Blood Mage
Actions
Set Variable Set BlizzardXP[(Player number of (Owner of (Casting unit)))] = (BlizzardXP[(Player number of (Owner of (Casting unit)))] + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
BlizzardXP[(Player number of (Owner of (Casting unit)))] Equal to 5.00
Then - Actions
Unit - Increase level of Blizzard for (Casting unit)
Special Effect - Create a special effect attached to the chest (Unexpected type: 'attachpoint') of (Attacking unit) using Abilities\Spells\Human\Brilliance\Brilliance.mdl
Game - Display to (All players) for 10.00 seconds the text: ((Name of (Owner of (Casting unit))) + 's |cffffcc00Blizzard|r has just reached level 2.)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
BlizzardXP[(Player number of (Owner of (Casting unit)))] Equal to 10.00
Then - Actions
Unit - Increase level of Blizzard for (Casting unit)
Special Effect - Create a special effect attached to the chest (Unexpected type: 'attachpoint') of (Attacking unit) using Abilities\Spells\Human\Brilliance\Brilliance.mdl
Game - Display to (All players) for 10.00 seconds the text: ((Name of (Owner of (Casting unit))) + 's |cffffcc00Blizzard|r has just reached level 3.)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
BlizzardXP[(Player number of (Owner of (Casting unit)))] Equal to 25.00
Then - Actions
Unit - Increase level of Blizzard for (Casting unit)
Special Effect - Create a special effect attached to the chest (Unexpected type: 'attachpoint') of (Attacking unit) using Abilities\Spells\Human\Brilliance\Brilliance.mdl
Game - Display to (All players) for 10.00 seconds the text: ((Name of (Owner of (Casting unit))) + 's |cffffcc00Blizzard|r has just reached level 4.)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
BlizzardXP[(Player number of (Owner of (Casting unit)))] Equal to 50.00
Then - Actions
Unit - Increase level of Blizzard for (Casting unit)
Special Effect - Create a special effect attached to the chest (Unexpected type: 'attachpoint') of (Attacking unit) using Abilities\Spells\Human\Brilliance\Brilliance.mdl
Game - Display to (All players) for 10.00 seconds the text: ((Name of (Owner of (Casting unit))) + 's |cffffcc00Blizzard|r has just reached level 5.)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
BlizzardXP[(Player number of (Owner of (Casting unit)))] Equal to 100.00
Then - Actions
Unit - Increase level of Blizzard for (Casting unit)
Special Effect - Create a special effect attached to the chest (Unexpected type: 'attachpoint') of (Attacking unit) using Abilities\Spells\Human\Brilliance\Brilliance.mdl
Game - Display to (All players) for 10.00 seconds the text: ((Name of (Owner of (Casting unit))) + 's |cffffcc00Blizzard|r has just reached level 6.)
Else - Actions
Do nothing
Blizzard Chosen
Events
Unit - A unit Finishes training a unit
Conditions
(Trained unit) Equal to (Random unit from (Units of type Blizzard))
Actions
Player - Enable Blizzard for (Owner of (Trained unit))
Unit - Remove (Trained unit) from the game
Set Variable Set BlizzardTrue[(Player number of (Owner of (Trained unit)))] = "0"
Disable Hero
Events
Time - Elapsed game time is 0.50 seconds
Conditions
Actions
Player - Disable Critical Hit for Player 1 (Red)
Player - Disable Blizzard for Player 1 (Red)
Player - Disable Evasion for Player 1 (Red)
Set Variable Set BlizzardTrue[(Player number of Player 1 (Red))] = "1"
Set Variable Set CriticalTrue[(Player number of Player 1 (Red))] = "1"
Set Variable Set EvasionTrue[(Player number of Player 1 (Red))] = "1"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.