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
gg.w3x
Variables
This is a tigger
My English is Bad :(
hhs main
This map to lock cam 2 player
lock cam p1
lock cam p2
unlock cam
---------------------------
paladin
Archmage
Mountain King
Blood mage
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
Hero_Name
texttag
Yes
Hero_tooltip
texttag
Yes
Player_Pick_Hero
unit
Yes
SelectedUnit
unit
Yes
SelectionHeroselected
boolean
Yes
hhs main
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
For each (Integer A) from 1 to 10 , do (Actions)
Loop - Actions
Visibility - Create an initially Enabled visibility modifier for (Player((Integer A))) emitting Visibility across hhs_main <gen>
lock cam p1
Events
Time - Every 0.04 seconds of game time
Conditions
Actions
Camera - . Apply . gg_cam_Camera_001 for Player 1 (Red) over 0 seconds
Camera - Lock camera target for Player 1 (Red) to Peasant 0005 <gen> , offset by ( 0 , 0 ) using Default rotation
lock cam p2
Events
Time - Every 0.04 seconds of game time
Conditions
Actions
Camera - . Apply . gg_cam_Camera_001 for Player 2 (Blue) over 0 seconds
Camera - Lock camera target for Player 2 (Blue) to Peasant 0005 <gen> , offset by ( 0 , 0 ) using Default rotation
unlock cam
Events
Unit - A unit enters Unlock_cam <gen>
Conditions
Actions
Unit - Move (Triggering unit) instantly to (Center of enter_map <gen>)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Entering unit)) Equal to Player 1 (Red)
Then - Actions
Trigger - Turn off lock_cam_p1 <gen>
Camera - Reset camera for (Owner of (Triggering unit)) to standard game-view over 0 seconds
Camera - Pan camera for (Owner of (Triggering unit)) to (Center of Unlock_cam <gen>) over 0 seconds
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Entering unit)) Equal to Player 2 (Blue)
Then - Actions
Trigger - Turn off lock_cam_p2 <gen>
Camera - Reset camera for (Owner of (Triggering unit)) to standard game-view over 0 seconds
Camera - Pan camera for (Owner of (Triggering unit)) to (Center of Unlock_cam <gen>) over 0 seconds
Else - Actions
paladin
Events
Player - Player 1 (Red) Selects a unit
Player - Player 2 (Blue) Selects a unit
Conditions
And - All (Conditions) are true
Conditions
SelectionHeroselected[(Player number of (Triggering player))] Equal to False
(Triggering unit) Equal to Button 0001 <gen>
Actions
Selection - Clear selection for (Triggering player) .
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering unit) Equal to SelectedUnit[(Player number of (Triggering player))]
Then - Actions
Unit - Kill (Triggering unit)
Unit - Create 1 . Paladin for (Triggering player) at (Center of Unlock_cam <gen>) facing Default building facing degrees
Set Variable Set SelectionHeroselected[(Player number of (Triggering player))] = "true"
Else - Actions
-------- Start --------
Floating Text - Destroy Hero_Name[(Player number of (Triggering player))]
Floating Text - Destroy Hero_tooltip[(Player number of (Triggering player))]
Set Variable Set Player_Pick_Hero[(Player number of (Triggering player))] = (Triggering unit)
-------- Name of hero --------
Floating Text - Create floating text that reads Paladin at (Center of hhs_hero_name <gen>) with Z offset 0 , using font size 13.00 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Set Variable Set Hero_Name[(Player number of (Triggering player))] = (Last created floating text)
-------- Tooltip --------
Floating Text - Create floating text that reads Warrior Hero, exceptional at defense and augmenting nearby friendly troops. Can learn Holy Light, Divine Shield, Devotion Aura and Resurrection. at (Center of hhs_hero_tip <gen>) with Z offset 0 , using font size 13.00 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Set Variable Set Hero_tooltip[(Player number of (Triggering player))] = (Last created floating text)
-------- Show va hide thong tin unit --------
Floating Text - Hide Hero_Name[(Player number of (Triggering player))] for (All players)
Floating Text - Hide Hero_tooltip[(Player number of (Triggering player))] for (All players)
Floating Text - Show Hero_Name[(Player number of (Triggering player))] for (Player group((Triggering player)))
Floating Text - Show Hero_tooltip[(Player number of (Triggering player))] for (Player group((Triggering player)))
-------- End --------
Set Variable Set SelectedUnit[(Player number of (Triggering player))] = (Triggering unit)
Wait 0.05 seconds
Set Variable Set SelectedUnit[(Player number of (Triggering player))] = No unit
Archmage
Events
Player - Player 1 (Red) Selects a unit
Player - Player 2 (Blue) Selects a unit
Conditions
And - All (Conditions) are true
Conditions
SelectionHeroselected[(Player number of (Triggering player))] Equal to False
(Triggering unit) Equal to Button 0003 <gen>
Actions
Selection - Clear selection for (Triggering player) .
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering unit) Equal to SelectedUnit[(Player number of (Triggering player))]
Then - Actions
Unit - Kill (Triggering unit)
Unit - Create 1 . Archmage for (Triggering player) at (Center of Unlock_cam <gen>) facing Default building facing degrees
Set Variable Set SelectionHeroselected[(Player number of (Triggering player))] = "true"
Else - Actions
-------- Start --------
Floating Text - Destroy Hero_Name[(Player number of (Triggering player))]
Floating Text - Destroy Hero_tooltip[(Player number of (Triggering player))]
Set Variable Set Player_Pick_Hero[(Player number of (Triggering player))] = (Triggering unit)
-------- Name of hero --------
Floating Text - Create floating text that reads Arch Mange at (Center of hhs_hero_name <gen>) with Z offset 0 , using font size 13.00 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Set Variable Set Hero_Name[(Player number of (Triggering player))] = (Last created floating text)
-------- Tooltip --------
Floating Text - Create floating text that reads Mystical Hero, adept at ranged assaults. Can learn Blizzard, Summon Water Elemental, Brilliance Aura and Mass Teleport. at (Center of hhs_hero_tip <gen>) with Z offset 0 , using font size 13.00 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Set Variable Set Hero_tooltip[(Player number of (Triggering player))] = (Last created floating text)
-------- Show va hide thong tin unit --------
Floating Text - Hide Hero_Name[(Player number of (Triggering player))] for (All players)
Floating Text - Hide Hero_tooltip[(Player number of (Triggering player))] for (All players)
Floating Text - Show Hero_Name[(Player number of (Triggering player))] for (Player group((Triggering player)))
Floating Text - Show Hero_tooltip[(Player number of (Triggering player))] for (Player group((Triggering player)))
-------- End --------
Set Variable Set SelectedUnit[(Player number of (Triggering player))] = (Triggering unit)
Wait 0.05 seconds
Set Variable Set SelectedUnit[(Player number of (Triggering player))] = No unit
Mountain King
Events
Player - Player 1 (Red) Selects a unit
Player - Player 2 (Blue) Selects a unit
Conditions
And - All (Conditions) are true
Conditions
SelectionHeroselected[(Player number of (Triggering player))] Equal to False
(Triggering unit) Equal to Button 0004 <gen>
Actions
Selection - Clear selection for (Triggering player) .
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering unit) Equal to SelectedUnit[(Player number of (Triggering player))]
Then - Actions
Unit - Kill (Triggering unit)
Unit - Create 1 . Mountain King for (Triggering player) at (Center of Unlock_cam <gen>) facing Default building facing degrees
Set Variable Set SelectionHeroselected[(Player number of (Triggering player))] = "true"
Else - Actions
-------- Start --------
Floating Text - Destroy Hero_Name[(Player number of (Triggering player))]
Floating Text - Destroy Hero_tooltip[(Player number of (Triggering player))]
Set Variable Set Player_Pick_Hero[(Player number of (Triggering player))] = (Triggering unit)
-------- Name of hero --------
Floating Text - Create floating text that reads Moutain King at (Center of hhs_hero_name <gen>) with Z offset 0 , using font size 13.00 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Set Variable Set Hero_Name[(Player number of (Triggering player))] = (Last created floating text)
-------- Tooltip --------
Floating Text - Create floating text that reads Warrior Hero, adept at offensive combat and disrupting enemy troops.Can learn Storm Bolt, Thunder Clap, Bash and Avatar at (Center of hhs_hero_tip <gen>) with Z offset 0 , using font size 13.00 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Set Variable Set Hero_tooltip[(Player number of (Triggering player))] = (Last created floating text)
-------- Show va hide thong tin unit --------
Floating Text - Hide Hero_Name[(Player number of (Triggering player))] for (All players)
Floating Text - Hide Hero_tooltip[(Player number of (Triggering player))] for (All players)
Floating Text - Show Hero_Name[(Player number of (Triggering player))] for (Player group((Triggering player)))
Floating Text - Show Hero_tooltip[(Player number of (Triggering player))] for (Player group((Triggering player)))
-------- End --------
Set Variable Set SelectedUnit[(Player number of (Triggering player))] = (Triggering unit)
Wait 0.05 seconds
Set Variable Set SelectedUnit[(Player number of (Triggering player))] = No unit
Blood mage
Events
Player - Player 1 (Red) Selects a unit
Player - Player 2 (Blue) Selects a unit
Conditions
And - All (Conditions) are true
Conditions
SelectionHeroselected[(Player number of (Triggering player))] Equal to False
(Triggering unit) Equal to Button 0002 <gen>
Actions
Selection - Clear selection for (Triggering player) .
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering unit) Equal to SelectedUnit[(Player number of (Triggering player))]
Then - Actions
Unit - Kill (Triggering unit)
Unit - Create 1 . Blood Mage for (Triggering player) at (Center of Unlock_cam <gen>) facing Default building facing degrees
Set Variable Set SelectionHeroselected[(Player number of (Triggering player))] = "true"
Else - Actions
-------- Start --------
Floating Text - Destroy Hero_Name[(Player number of (Triggering player))]
Floating Text - Destroy Hero_tooltip[(Player number of (Triggering player))]
Set Variable Set Player_Pick_Hero[(Player number of (Triggering player))] = (Triggering unit)
-------- Name of hero --------
Floating Text - Create floating text that reads Blood mage at (Center of hhs_hero_name <gen>) with Z offset 0 , using font size 13.00 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Set Variable Set Hero_Name[(Player number of (Triggering player))] = (Last created floating text)
-------- Tooltip --------
Floating Text - Create floating text that reads Mystical Hero, adept at controlling magic and ranged assaults. Can learn Flame Strike, Banish, Siphon Mana and Phoenix. at (Center of hhs_hero_tip <gen>) with Z offset 0 , using font size 13.00 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Set Variable Set Hero_tooltip[(Player number of (Triggering player))] = (Last created floating text)
-------- Show va hide thong tin unit --------
Floating Text - Hide Hero_Name[(Player number of (Triggering player))] for (All players)
Floating Text - Hide Hero_tooltip[(Player number of (Triggering player))] for (All players)
Floating Text - Show Hero_Name[(Player number of (Triggering player))] for (Player group((Triggering player)))
Floating Text - Show Hero_tooltip[(Player number of (Triggering player))] for (Player group((Triggering player)))
-------- End --------
Set Variable Set SelectedUnit[(Player number of (Triggering player))] = (Triggering unit)
Wait 0.05 seconds
Set Variable Set SelectedUnit[(Player number of (Triggering player))] = No unit
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.