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
cluster bomb v1.2b.w3x
Variables
Cluster bomb
cast
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
cluster_bomb_caster
unit
No
cluster_bomb_level
integer
No
cluster_bomb_point
location
No
groupForDummies
group
No
made by UAP._.TaXi - taxikar on hive
thx for help (name on hive):
maker
darwin
cast
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Cluster Bomb
Actions
-------- - --------
-------- Setting the variables --------
-------- - --------
Set Variable Set cluster_bomb_caster = (Triggering unit)
Set Variable Set cluster_bomb_point = (Target point of ability being cast)
Set Variable Set cluster_bomb_level = (Level of Cluster Bomb for cluster_bomb_caster)
-------- - --------
-------- Calculating the distance between hero and the target point --------
-------- - --------
Wait ((Distance between (Position of cluster_bomb_caster) and cluster_bomb_point) / 700.00) seconds
-------- - --------
-------- Creating the dummy units --------
-------- - --------
Unit - Create 1 . secondary cluster dummy for (Owner of cluster_bomb_caster) at cluster_bomb_point facing Default building facing degrees
Unit Group - Add (Last created unit) to groupForDummies
-------- - --------
Unit - Create 1 . secondary cluster dummy for (Owner of cluster_bomb_caster) at cluster_bomb_point facing Default building facing degrees
Unit Group - Add (Last created unit) to groupForDummies
-------- - --------
Unit - Create 1 . secondary cluster dummy for (Owner of cluster_bomb_caster) at cluster_bomb_point facing Default building facing degrees
Unit Group - Add (Last created unit) to groupForDummies
-------- - --------
-------- Picking the group and casting the spell --------
-------- - --------
Unit Group - Pick every unit in groupForDummies and do (Set level of secondary cluster for (Picked unit) to cluster_bomb_level)
Unit Group - Pick every unit in groupForDummies and do (Order (Picked unit) to Neutral Tinker - Cluster Rockets.(Random point in (Region centered at cluster_bomb_point with size (500.00, 500.00))))
-------- - --------
-------- Removing the dummies from the game --------
-------- - --------
Wait 1.00 seconds
Unit Group - Pick every unit in groupForDummies and do (Remove (Picked unit) from the game)
Unit Group - Remove all units from groupForDummies .
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.