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
Solar System.w3x
Variables
Initialization
settle some stuff
Orbit system
Planet to sun
Moon to Planet and Asteriod Belt
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
location_var
location
No
location_var2
location
No
Moon_Group
group
No
Planets_Group
group
Yes
real_var
real
No
unit
unit
No
unitgroup
group
No
unitgroup2
group
No
settle some stuff
Events
Time - Elapsed game time is 0.01 seconds
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Visibility - Create an initially Enabled visibility modifier for (Picked player) emitting Visibility across (Playable map area)
-------- Separation --------
Set Variable Set real_var = "5.00"
-------- Separation --------
Unit Group - Add Mercury 0001 <gen> to Planets_Group[1]
Unit Group - Add Venus 0002 <gen> to Planets_Group[2]
Unit Group - Add Earth 0003 <gen> to Planets_Group[3]
Unit Group - Add Mars 0004 <gen> to Planets_Group[4]
Unit Group - Add Jupiter 0005 <gen> to Planets_Group[5]
Unit Group - Add Saturn 0006 <gen> to Planets_Group[6]
Unit Group - Add Uranus 0007 <gen> to Planets_Group[7]
Unit Group - Add Neptune 0026 <gen> to Planets_Group[8]
-------- Separation --------
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
Unit - Set the custom value of (Picked unit) to (Random integer number between 0 and 10000000)
Unit - Add Crow Form to (Picked unit)
Unit - Remove Crow Form from (Picked unit)
Animation - Change (Picked unit) flying height to (Random real number between 200.00 and 330.00) at 1000.00
Planet to sun
Events
Time - Every 0.05 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in Planets_Group[1] and do (Actions)
Loop - Actions
Set Variable Set location_var = (Position of Sun 0000 <gen>)
Set Variable Set location_var2 = (location_var offset by (real_var x (Real((Point-value of (Picked unit))))) towards ((Real((Custom value of (Picked unit)))) / 2.25) degrees.)
Unit - Move (Picked unit) instantly to location_var2
Unit - Set the custom value of (Picked unit) to ((Custom value of (Picked unit)) + 1)
Unit Group - Pick every unit in Planets_Group[2] and do (Actions)
Loop - Actions
Set Variable Set location_var = (Position of Sun 0000 <gen>)
Set Variable Set location_var2 = (location_var offset by (real_var x (Real((Point-value of (Picked unit))))) towards ((Real((Custom value of (Picked unit)))) / 5.75) degrees.)
Unit - Move (Picked unit) instantly to location_var2
Unit - Set the custom value of (Picked unit) to ((Custom value of (Picked unit)) + 1)
Unit Group - Pick every unit in Planets_Group[3] and do (Actions)
Loop - Actions
Set Variable Set location_var = (Position of Sun 0000 <gen>)
Set Variable Set location_var2 = (location_var offset by (real_var x (Real((Point-value of (Picked unit))))) towards ((Real((Custom value of (Picked unit)))) / 8.00) degrees.)
Unit - Move (Picked unit) instantly to location_var2
Unit - Set the custom value of (Picked unit) to ((Custom value of (Picked unit)) + 1)
Unit Group - Pick every unit in Planets_Group[4] and do (Actions)
Loop - Actions
Set Variable Set location_var = (Position of Sun 0000 <gen>)
Set Variable Set location_var2 = (location_var offset by (real_var x (Real((Point-value of (Picked unit))))) towards ((Real((Custom value of (Picked unit)))) / 17.25) degrees.)
Unit - Move (Picked unit) instantly to location_var2
Unit - Set the custom value of (Picked unit) to ((Custom value of (Picked unit)) + 1)
Unit Group - Pick every unit in Planets_Group[5] and do (Actions)
Loop - Actions
Set Variable Set location_var = (Position of Sun 0000 <gen>)
Set Variable Set location_var2 = (location_var offset by (real_var x (Real((Point-value of (Picked unit))))) towards ((Real((Custom value of (Picked unit)))) / 108.25) degrees.)
Unit - Move (Picked unit) instantly to location_var2
Unit - Set the custom value of (Picked unit) to ((Custom value of (Picked unit)) + 1)
Unit Group - Pick every unit in Planets_Group[6] and do (Actions)
Loop - Actions
Set Variable Set location_var = (Position of Sun 0000 <gen>)
Set Variable Set location_var2 = (location_var offset by (real_var x (Real((Point-value of (Picked unit))))) towards ((Real((Custom value of (Picked unit)))) / 269.00) degrees.)
Unit - Move (Picked unit) instantly to location_var2
Unit - Set the custom value of (Picked unit) to ((Custom value of (Picked unit)) + 1)
Unit Group - Pick every unit in Planets_Group[7] and do (Actions)
Loop - Actions
Set Variable Set location_var = (Position of Sun 0000 <gen>)
Set Variable Set location_var2 = (location_var offset by (real_var x (Real((Point-value of (Picked unit))))) towards ((Real((Custom value of (Picked unit)))) / 767.50) degrees.)
Unit - Move (Picked unit) instantly to location_var2
Unit - Set the custom value of (Picked unit) to ((Custom value of (Picked unit)) + 1)
Unit Group - Pick every unit in Planets_Group[8] and do (Actions)
Loop - Actions
Set Variable Set location_var = (Position of Sun 0000 <gen>)
Set Variable Set location_var2 = (location_var offset by (real_var x (Real((Point-value of (Picked unit))))) towards ((Real((Custom value of (Picked unit)))) / 1505.00) degrees.)
Unit - Move (Picked unit) instantly to location_var2
Unit - Set the custom value of (Picked unit) to ((Custom value of (Picked unit)) + 1)
Moon to Planet and Asteriod Belt
Events
Time - Every 0.05 seconds of game time
Conditions
Actions
Custom script: set bj_wantDestroyGroup = true
Set Variable Set unit = Earth 0003 <gen>
Set Variable Set unitgroup = (Units of type Earth's Moon)
Unit Group - Pick every unit in unitgroup and do (Actions)
Loop - Actions
Set Variable Set location_var = (Position of unit)
Set Variable Set location_var2 = (location_var offset by (50.00 x (Real((Point-value of (Picked unit))))) towards (Real((Custom value of (Picked unit)))) degrees.)
Unit - Move (Picked unit) instantly to location_var2
Unit - Set the custom value of (Picked unit) to ((Custom value of (Picked unit)) + 4)
Unit Group - Remove all units from unitgroup .
Custom script: set bj_wantDestroyGroup = true
Set Variable Set unit = Mars 0004 <gen>
Set Variable Set unitgroup = (Units of type Mars's Moon)
Unit Group - Pick every unit in unitgroup and do (Actions)
Loop - Actions
Set Variable Set location_var = (Position of unit)
Set Variable Set location_var2 = (location_var offset by (50.00 x (Real((Point-value of (Picked unit))))) towards (Real((Custom value of (Picked unit)))) degrees.)
Unit - Move (Picked unit) instantly to location_var2
Unit - Set the custom value of (Picked unit) to ((Custom value of (Picked unit)) - 2)
Unit Group - Remove all units from unitgroup .
Custom script: set bj_wantDestroyGroup = true
Set Variable Set unit = Jupiter 0005 <gen>
Set Variable Set unitgroup = (Units of type Jupiter's Moon)
Unit Group - Pick every unit in unitgroup and do (Actions)
Loop - Actions
Set Variable Set location_var = (Position of unit)
Set Variable Set location_var2 = (location_var offset by (50.00 x (Real((Point-value of (Picked unit))))) towards (Real((Custom value of (Picked unit)))) degrees.)
Unit - Move (Picked unit) instantly to location_var2
Unit - Set the custom value of (Picked unit) to ((Custom value of (Picked unit)) - 1)
Unit Group - Remove all units from unitgroup .
Custom script: set bj_wantDestroyGroup = true
Set Variable Set unit = Saturn 0006 <gen>
Set Variable Set unitgroup = (Units of type Saturn's Moon)
Unit Group - Pick every unit in unitgroup and do (Actions)
Loop - Actions
Set Variable Set location_var = (Position of unit)
Set Variable Set location_var2 = (location_var offset by (50.00 x (Real((Point-value of (Picked unit))))) towards (Real((Custom value of (Picked unit)))) degrees.)
Unit - Move (Picked unit) instantly to location_var2
Unit - Set the custom value of (Picked unit) to ((Custom value of (Picked unit)) - 1)
Unit Group - Remove all units from unitgroup .
Custom script: set bj_wantDestroyGroup = true
Set Variable Set unit = Uranus 0007 <gen>
Set Variable Set unitgroup = (Units of type Uranus's Moon)
Unit Group - Pick every unit in unitgroup and do (Actions)
Loop - Actions
Set Variable Set location_var = (Position of unit)
Set Variable Set location_var2 = (location_var offset by (50.00 x (Real((Point-value of (Picked unit))))) towards (Real((Custom value of (Picked unit)))) degrees.)
Unit - Move (Picked unit) instantly to location_var2
Unit - Set the custom value of (Picked unit) to ((Custom value of (Picked unit)) - 1)
Unit Group - Remove all units from unitgroup .
Custom script: set bj_wantDestroyGroup = true
Set Variable Set unit = Neptune 0026 <gen>
Set Variable Set unitgroup = (Units of type Neptune's Moon)
Unit Group - Pick every unit in unitgroup and do (Actions)
Loop - Actions
Set Variable Set location_var = (Position of unit)
Set Variable Set location_var2 = (location_var offset by (50.00 x (Real((Point-value of (Picked unit))))) towards (Real((Custom value of (Picked unit)))) degrees.)
Unit - Move (Picked unit) instantly to location_var2
Unit - Set the custom value of (Picked unit) to ((Custom value of (Picked unit)) - 1)
Unit Group - Remove all units from unitgroup .
Custom script: set bj_wantDestroyGroup = true
Set Variable Set unit = Sun 0000 <gen>
Set Variable Set unitgroup = (Units of type Asteroid (1))
Unit Group - Pick every unit in unitgroup and do (Actions)
Loop - Actions
Set Variable Set location_var = (Position of unit)
Set Variable Set location_var2 = (location_var offset by (real_var x (Real((Point-value of (Picked unit))))) towards ((Real((Custom value of (Picked unit)))) / 7.00) degrees.)
Unit - Move (Picked unit) instantly to location_var2
Unit - Set the custom value of (Picked unit) to ((Custom value of (Picked unit)) - 1)
Unit Group - Remove all units from unitgroup .
Custom script: set bj_wantDestroyGroup = true
Set Variable Set unit = Sun 0000 <gen>
Set Variable Set unitgroup = (Units of type Asteroid (2))
Unit Group - Pick every unit in unitgroup and do (Actions)
Loop - Actions
Set Variable Set location_var = (Position of unit)
Set Variable Set location_var2 = (location_var offset by (real_var x (Real((Point-value of (Picked unit))))) towards ((Real((Custom value of (Picked unit)))) / 8.00) degrees.)
Unit - Move (Picked unit) instantly to location_var2
Unit - Set the custom value of (Picked unit) to ((Custom value of (Picked unit)) - 1)
Unit Group - Remove all units from unitgroup .
Custom script: set bj_wantDestroyGroup = true
Set Variable Set unit = Sun 0000 <gen>
Set Variable Set unitgroup = (Units of type Asteroid (3))
Unit Group - Pick every unit in unitgroup and do (Actions)
Loop - Actions
Set Variable Set location_var = (Position of unit)
Set Variable Set location_var2 = (location_var offset by (real_var x (Real((Point-value of (Picked unit))))) towards ((Real((Custom value of (Picked unit)))) / 9.00) degrees.)
Unit - Move (Picked unit) instantly to location_var2
Unit - Set the custom value of (Picked unit) to ((Custom value of (Picked unit)) - 1)
Unit Group - Remove all units from unitgroup .
Custom script: set bj_wantDestroyGroup = true
Set Variable Set unit = Sun 0000 <gen>
Set Variable Set unitgroup = (Units of type Asteroid (4))
Unit Group - Pick every unit in unitgroup and do (Actions)
Loop - Actions
Set Variable Set location_var = (Position of unit)
Set Variable Set location_var2 = (location_var offset by (real_var x (Real((Point-value of (Picked unit))))) towards ((Real((Custom value of (Picked unit)))) / 7.40) degrees.)
Unit - Move (Picked unit) instantly to location_var2
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.