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
HS by AnhQuanX.w3x
Variables
This is (Not a) tigger
Red Me
test
pick hero paladin
pick hero ArchMage
pick hero moutan king
p1
hhs camera
unlock camera
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
SelectedUnit
unit
Yes
SelectionHeroselected
boolean
Yes
-My english is Bad :(
========================================================================================================================+
= Map is one Player. you mus add player select hero plz coppy p1 ( lock camera for player 1 ), pick hero paladin. edit condition and add to unlock camera +
= +
= -im a newbie :v +
==========================================================================================================================
-*-AnhQuanXd-*
test
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Game - Display to (All players) the text: one click right mouse to "Review" HeroMultil click right mouse to select heroThis is test version by AnhQuanXd
pick hero paladin
Events
Player - Player 1 (Red) Selects a unit
Conditions
And - All (Conditions) are true
Conditions
SelectionHeroselected[(Player number of (Triggering player))] Equal to False
(Triggering unit) Equal to |cff00ff80B|r|cffff00ffu|r|cff00fffft|r|cffffff00t|r|cffff8000o|rn 0001 <gen>
Actions
Selection - Clear selection for (Triggering player) .
Multiboard - Destroy (Last created multiboard)
Multiboard - Create a multiboard with 1 columns and 1 rows, titled Paladin .
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 enter_game <gen>) facing Default building facing degrees
Set Variable Set SelectionHeroselected[(Player number of (Triggering player))] = "true"
Else - Actions
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
pick hero ArchMage
Events
Player - Player 1 (Red) Selects a unit
Conditions
And - All (Conditions) are true
Conditions
SelectionHeroselected[(Player number of (Triggering player))] Equal to False
(Triggering unit) Equal to |cff00ff80B|r|cffff00ffu|r|cff00fffft|r|cffffff00t|r|cffff8000o|rn 0002 <gen>
Actions
Selection - Clear selection for (Triggering player) .
Multiboard - Destroy (Last created multiboard)
Multiboard - Create a multiboard with 1 columns and 1 rows, titled Archmage .
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 enter_game <gen>) facing Default building facing degrees
Set Variable Set SelectionHeroselected[(Player number of (Triggering player))] = "true"
Else - Actions
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
pick hero moutan king
Events
Player - Player 1 (Red) Selects a unit
Conditions
And - All (Conditions) are true
Conditions
SelectionHeroselected[(Player number of (Triggering player))] Equal to False
(Triggering unit) Equal to |cff00ff80B|r|cffff00ffu|r|cff00fffft|r|cffffff00t|r|cffff8000o|rn 0003 <gen>
Actions
Selection - Clear selection for (Triggering player) .
Multiboard - Destroy (Last created multiboard)
Multiboard - Create a multiboard with 1 columns and 1 rows, titled MoutanKing .
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 enter_game <gen>) facing Default building facing degrees
Set Variable Set SelectionHeroselected[(Player number of (Triggering player))] = "true"
Else - Actions
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
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 dummy lock cam 0004 <gen> , offset by ( 0 , 0 ) using Default rotation
if you map 2 team then turn on this tigger
hhs camera
Events
Map initialization
Conditions
Actions
For each (Integer A) from 1 to 12 , do (Actions)
Loop - Actions
Visibility - Create an initially Enabled visibility modifier for (Player((Integer A))) emitting Visibility across hhs_main <gen>
unlock camera
Events
Unit - A unit enters enter_game <gen>
Conditions
Actions
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
Multiboard - Destroy (Last created multiboard)
Trigger - Turn off p1 <gen>
Camera - Reset camera for (Owner of (Entering unit)) to standard game-view over 0 seconds
Camera - Pan camera for (Owner of (Entering unit)) to (Center of enter_game <gen>) over 0.50 seconds
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.