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
Unstable Concoction.w3x
Variables
Alchemist
Unstable Concoction
Unstable Concoction
Unstable Concoction Learn
Unstable Concoction Cast
Unstable Concoction Tick
Unstable Concoction Shot
---------------------------
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
UC_Bouns
integer
No
UC_Caster
unit
No
UC_Dummy
unit
No
UC_Group
group
No
UC_Hash
hashtable
No
UC_Shot
boolean
No
UC_Target
unit
No
UC_Text
texttag
No
UC_Tick
real
No
Unstable Concoction
Events
Map initialization
Conditions
Actions
Hashtable - Create a hashtable
Set Variable Set UC_Hash = (Last created hashtable)
Unstable Concoction Learn
Events
Unit - A unit Learns a skill
Conditions
(Learned Hero Skill) Equal to Unstable Concoction (Cast)
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Unstable Concoction (Shot) for (Triggering unit)) Equal to 0
Then - Actions
Unit - Add Unstable Concoction (Shot) to (Triggering unit)
Player - Disable Unstable Concoction (Shot) for (Owner of (Triggering unit))
Else - Actions
Unstable Concoction Cast
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Unstable Concoction (Cast)
Actions
Set Variable Set UC_Shot = "true"
Hashtable - Save UC_Shot as 0 of (Key (Triggering unit).) in UC_Hash .
Set Variable Set UC_Caster = (Triggering unit)
Hashtable - Save Handle Of UC_Caster as 1 of (Key (Triggering unit).) in UC_Hash .
Set Variable Set UC_Target = (Triggering unit)
Hashtable - Save Handle Of UC_Target as 2 of (Key (Triggering unit).) in UC_Hash .
Set Variable Set UC_Tick = "5.50"
Hashtable - Save UC_Tick as 3 of (Key (Triggering unit).) in UC_Hash .
Set Variable Set UC_Bouns = "0"
Hashtable - Save UC_Bouns as 4 of (Key (Triggering unit).) in UC_Hash .
Unit Group - Add (Triggering unit) to UC_Group
Player - Disable Unstable Concoction (Cast) for (Owner of (Triggering unit))
Player - Enable Unstable Concoction (Shot) for (Owner of (Triggering unit))
Trigger - Turn on Unstable_Concoction_Tick <gen>
Unstable Concoction Tick
Events
Time - Every 0.50 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(UC_Group is empty) Equal to True
Then - Actions
Trigger - Turn off (This trigger)
Else - Actions
Unit Group - Pick every unit in UC_Group and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Load 0 of (Key (Picked unit).) from UC_Hash.) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Load 4 of (Key (Picked unit).) from UC_Hash.) Not equal to 10
Then - Actions
Set Variable Set UC_Bouns = ((Load 4 of (Key (Picked unit).) from UC_Hash.) + 1)
Hashtable - Save UC_Bouns as 4 of (Key (Picked unit).) in UC_Hash .
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Load 3 of (Key (Picked unit).) from UC_Hash.) Less than or equal to -0.50
Then - Actions
Set Variable Set UC_Caster = (Load 1 of (Key (Picked unit).) in UC_Hash.)
Animation - Change UC_Caster 's vertex coloring to ( 100 %, 0.00 %, 0.00 %) with 0 % transparency
Else - Actions
Floating Text - Create floating text that reads (Substring((String((Load 3 of (Key (Picked unit).) from UC_Hash.))), 1, 3)) above (Load 1 of (Key (Picked unit).) in (Last created hashtable).) with Z offset 10.00 , using font size 15.00 , color ( 100 %, 0.00 %, 0.00 %), and 0 % transparency
Set Variable Set UC_Text = (Last created floating text)
Hashtable - Save Handle Of UC_Text as 5 of (Key (Picked unit).) in UC_Hash .
Floating Text - Show (Load 5 of (Key (Picked unit).) in UC_Hash) for (All allies of (Load 1 of (Key (Picked unit).) in UC_Hash.).)
Floating Text - Set the velocity of (Load 5 of (Key (Picked unit).) in UC_Hash) to 64 towards 90 degrees
Floating Text - Change (Load 5 of (Key (Picked unit).) in UC_Hash) : Disable permanence
Floating Text - Change the lifespan of (Load 5 of (Key (Picked unit).) in UC_Hash) to 0.50 seconds
Floating Text - Change the fading age of (Load 5 of (Key (Picked unit).) in UC_Hash) to 0.50 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Load 3 of (Key (Picked unit).) from UC_Hash.) Equal to -1.00
Then - Actions
Set Variable Set UC_Caster = (Load 1 of (Key (Picked unit).) in UC_Hash.)
Animation - Change UC_Caster 's vertex coloring to ( 100 %, 100.00 %, 100.00 %) with 0 % transparency
Set Variable Set UC_Caster = (Load 1 of (Key (Picked unit).) in UC_Hash.)
Unit - Create 1 . Dummy for (Owner of UC_Caster) at (Position of UC_Caster) facing Default building facing degrees
Set Variable Set UC_Dummy = (Last created unit)
Hashtable - Save Handle Of UC_Dummy as 6 of (Key (Picked unit).) in UC_Hash .
Unit - Add a 2.00 second Generic expiration timer to (Load 6 of (Key (Picked unit).) in UC_Hash.)
Unit - Add Unstable Concoction (Damage-Stun) to (Load 6 of (Key (Picked unit).) in UC_Hash.)
Unit - Set level of Unstable Concoction (Damage-Stun) for (Load 6 of (Key (Picked unit).) in UC_Hash.) to ((Level of Unstable Concoction (Cast) for (Load 1 of (Key (Picked unit).) in UC_Hash.)) x (Load 4 of (Key (Picked unit).) from UC_Hash.))
Unit - Order (Load 6 of (Key (Picked unit).) in UC_Hash.) to Human Mountain King - Storm Bolt . (Load 2 of (Key (Picked unit).) in UC_Hash.)
Player - Enable Unstable Concoction (Cast) for (Owner of (Load 1 of (Key (Picked unit).) in UC_Hash.))
Player - Disable Unstable Concoction (Shot) for (Owner of (Load 1 of (Key (Picked unit).) in UC_Hash.))
Hashtable - Clear all child hashtables of child (Key (Picked unit).) in UC_Hash .
Unit Group - Remove (Picked unit) from UC_Group .
Else - Actions
Set Variable Set UC_Tick = ((Load 3 of (Key (Picked unit).) from UC_Hash.) - 0.50)
Hashtable - Save UC_Tick as 3 of (Key (Picked unit).) in UC_Hash .
Else - Actions
Unstable Concoction Shot
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Unstable Concoction (Shot)
Actions
Set Variable Set UC_Caster = (Load 1 of (Key (Triggering unit).) in UC_Hash.)
Set Variable Set UC_Target = (Target unit of ability being cast)
Hashtable - Save Handle Of UC_Target as 3 of (Key (Triggering unit).) in UC_Hash .
Unit - Create 1 . Dummy for (Owner of UC_Caster) at (Position of UC_Caster) facing Default building facing degrees
Set Variable Set UC_Dummy = (Last created unit)
Hashtable - Save Handle Of UC_Dummy as 6 of (Key (Triggering unit).) in UC_Hash .
Unit - Add a 2.00 second Generic expiration timer to (Load 6 of (Key (Triggering unit).) in UC_Hash.)
Unit - Add Unstable Concoction (Damage-Stun) to (Load 6 of (Key (Triggering unit).) in UC_Hash.)
Unit - Set level of Unstable Concoction (Damage-Stun) for (Load 6 of (Key (Triggering unit).) in UC_Hash.) to ((Level of Unstable Concoction (Cast) for (Load 1 of (Key (Triggering unit).) in UC_Hash.)) x (Load 4 of (Key (Triggering unit).) from UC_Hash.))
Unit - Order (Load 6 of (Key (Triggering unit).) in UC_Hash.) to Human Mountain King - Storm Bolt . (Load 3 of (Key (Triggering unit).) in UC_Hash.)
Player - Enable Unstable Concoction (Cast) for (Owner of (Load 1 of (Key (Triggering unit).) in UC_Hash.))
Player - Disable Unstable Concoction (Shot) for (Owner of (Load 1 of (Key (Triggering unit).) in UC_Hash.))
Unit Group - Remove (Picked unit) from UC_Group .
Hashtable - Clear all child hashtables of child (Key (Triggering unit).) in UC_Hash .
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.