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
DayNightEventB.w3x
Variables
DayNightEvent
DNEVariables
DNEConfig
DNEEvent
Testmap
Variables
Revive
Full Vision
Check
Make Ally
Untitled Trigger 001
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
DNE_DayNightEvent
real
No
DNE_DayStart
real
No
DNE_IsDaytime
boolean
No
DNE_NightStart
real
No
TempLoc
location
No
TempUnit
unit
No
DNEConfig
Events
Map initialization
Conditions
Actions
Set Variable Set DNE_DayStart = "6.00"
Set Variable Set DNE_NightStart = "18.00"
-------- END CONFIG --------
-------- Initialize System --------
Trigger - Add to DNEEvent <gen> the event (The in-game time of day becomes Less than DNE_DayStart)
Trigger - Add to DNEEvent <gen> the event (The in-game time of day becomes Greater than or equal to DNE_DayStart)
Trigger - Add to DNEEvent <gen> the event (The in-game time of day becomes Greater than or equal to DNE_NightStart)
DNEEvent
Events
Time - Elapsed game time is 0.00 seconds
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(In-game time of day) Greater than or equal to DNE_DayStart
(In-game time of day) Less than DNE_NightStart
Then - Actions
Set Variable Set DNE_IsDaytime = "true"
Set Variable Set DNE_DayNightEvent = "1.00"
Set Variable Set DNE_DayNightEvent = "0.00"
Else - Actions
Set Variable Set DNE_IsDaytime = "false"
Set Variable Set DNE_DayNightEvent = "2.00"
Set Variable Set DNE_DayNightEvent = "0.00"
Revive
Events
Unit - A unit Dies
Conditions
(Unit-type of (Triggering unit)) Not equal to Spell Master
Actions
Set Variable Set TempUnit = (Triggering unit)
Set Variable Set TempLoc = (Random point in (Playable map area))
Unit - Create 1 . (Unit-type of (Triggering unit)) for (Player((Random integer number between 2 and 12))) at TempLoc facing Default building facing degrees
Custom script: call RemoveLocation(udg_TempLoc)
Full Vision
Events
Map initialization
Conditions
Actions
Visibility - Disable fog of war
Visibility - Disable black mask
Check
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Game - Display to (All players) the text: (String((In-game time of day)))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
DNE_IsDaytime Equal to True
Then - Actions
Game - Display to (All players) the text: Daytime
Else - Actions
Game - Display to (All players) the text: Nighttime
Make Ally
Events
Map initialization
Conditions
Actions
Player - Make Player 2 (Blue) treat Player 1 (Red) as an Ally
Player - Make Player 3 (Teal) treat Player 1 (Red) as an Ally
Untitled Trigger 001
Events
Player - Player 1 (Red) skips a cinematic sequence
Conditions
Actions
For each (Integer A) from 1 to 9 , do (Actions)
Loop - Actions
Destructible - Create a LTlt (Unexpected type: 'destructablecode') at ((Position of Spell Master 0002 <gen>) offset by 256 towards (40.00 x (Real((Integer A)))) degrees.) facing (Random angle) with scale 1 and variation 0
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.