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
FPCD.w3x
Variables
Secret
Clue 4
Clue 3
Clue 2
Clue 1
Initialization
Initialization
Clear Messages
Camera
ON
ON First Time
OFF
OFF First Time
OFF Copy
Camera Transition
Camera Transition Death
Region
Region Secret Alert
Turn Left
Turn Right
Turn Around
Turn Around 2
Footman Attack
Unit Die
Footman Die
WINNER
WIN DIALOG
WIN DIALOG SECRET
WIN DIALOG FOOTMAN
LOSER
LOSER Footman
Secret Region 2
Kill Rifleman
WIN DIALOG
Continue
Continue Footman
Quit
Footman Play
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
Dialog
dialog
No
Dialog_Continue
button
No
Dialog_Quit
button
No
Footman_Button
button
No
Rifleman
unit
No
UnitNull
Secret_Found
boolean
No
Unit
unit
No
UnitNull
Clue 4
Events
Unit - A unit enters Last_Clue <gen>
Conditions
Actions
Game - Display to (All players) the text: Clue 4: You reach clue 4 now head north to find a secret (see? i told you there was a secret!)
Clue 3
Events
Unit - A unit enters Clue_3 <gen>
Conditions
Actions
Game - Display to (All players) the text: Clue 3: I cant believe thee has reached clue 3! For the best head west to the 3 signs!
Clue 2
Events
Unit - A unit enters Clue_2 <gen>
Conditions
Actions
Game - Display to (All players) the text: Clue 2: Head dead north and amongst the trees you may find the next clue
Clue 1
Events
Unit - A unit enters Clue_1 <gen>
Conditions
Actions
Game - Display to (All players) the text: Clue 1: Head East to find a sign
Initialization
Events
Map initialization
Conditions
Actions
Set Variable Set Unit = Rifleman 0000 <gen>
Selection - Select Unit for Player 1 (Red)
Camera - Set the camera bounds for Player 1 (Red) to (Entire map)
Visibility - Disable fog of war
Visibility - Disable black mask
Game - Display to (All players) the text: Welcome to the First Person Camera Demo. To get started, type |CFFFFDEADFP ON|R. To take it off, say |CFFFFDEADFP OFF|R. You can clear the messages onscreen anytime with the ESC key. This map is simply a demonstration of a first person view. Made by|CFFFFDEADTheJP3372.|R
Environment - Set sky to Fogged Sky
Game - Turn the day/night cycle Off
Game - Set the time of day to 12
Unit - Make Footman 0002 <gen> Invulnerable
Clear Messages
Events
Player - Player 1 (Red) skips a cinematic sequence
Conditions
Actions
Cinematic - Clear the screen of text messages for (All players) .
Camera
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
Camera - Set Player 1 (Red) 's camera Distance to target to 0.00 over 0 seconds
Camera - Set Player 1 (Red) 's camera Angle of attack to 360.00 over 0 seconds
Camera - Set Player 1 (Red) 's camera Rotation to (Facing of Unit) over 0.50 seconds
Camera - Set Player 1 (Red) 's camera Height Offset to 100.00 over 0 seconds
Camera - Pan camera for Player 1 (Red) to ((Position of Unit) offset by 75.00 towards (Facing of Unit) degrees.) over 0 seconds
ON
Events
Player - Player 1 (Red) types a chat message containing FP ON (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Unit - Order Unit to Stop .
Trigger - Run Camera_Transition <gen> (checking conditions)
Trigger - Turn off (This trigger)
Trigger - Turn on OFF <gen>
Unit - Make Footman 0002 <gen> Vulnerable
Trigger - Turn on Turn_Around_2 <gen>
Trigger - Turn on Turn_Around <gen>
Trigger - Turn on Turn_Left <gen>
Trigger - Turn on Turn_Right <gen>
ON First Time
Events
Player - Player 1 (Red) types a chat message containing FP ON (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Unit - Order Unit to Stop .
Trigger - Turn off (This trigger)
Trigger - Turn on OFF_First_Time <gen>
Trigger - Run Camera_Transition <gen> (checking conditions)
Game - Display to (All players) the text: Cool, huh? You may attack the footman or explore the map to get a feel for your new "eyes". You can use the arrow keys to rotate your character. Thanks for trying this map.
Unit - Make Footman 0002 <gen> Vulnerable
Trigger - Turn on Turn_Around_2 <gen>
Trigger - Turn on Turn_Around <gen>
Trigger - Turn on Turn_Left <gen>
Trigger - Turn on Turn_Right <gen>
OFF
Events
Player - Player 1 (Red) types a chat message containing FP OFF (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Trigger - Turn off Camera <gen>
Trigger - Turn off (This trigger)
Trigger - Turn on ON <gen>
Camera - Reset camera for Player 1 (Red) to standard game-view over 1.00 seconds
Unit - Make Footman 0002 <gen> Invulnerable
Trigger - Turn off Turn_Around_2 <gen>
Trigger - Turn off Turn_Around <gen>
Trigger - Turn off Turn_Left <gen>
Trigger - Turn off Turn_Right <gen>
OFF First Time
Events
Player - Player 1 (Red) types a chat message containing FP OFF (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Trigger - Turn off Camera <gen>
Trigger - Turn off (This trigger)
Trigger - Turn on ON <gen>
Game - Display to (All players) the text: So your not used to your new "eyes" yet huh? Believe me there are no "secrets" in this map....
Camera - Reset camera for Player 1 (Red) to standard game-view over 1.00 seconds
Unit - Make Footman 0002 <gen> Invulnerable
Trigger - Turn off Turn_Around_2 <gen>
Trigger - Turn off Turn_Around <gen>
Trigger - Turn off Turn_Left <gen>
Trigger - Turn off Turn_Right <gen>
OFF Copy
Events
Player - Player 1 (Red) types a chat message containing FP OFF (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Trigger - Turn off Camera <gen>
Trigger - Turn off (This trigger)
Trigger - Turn on ON <gen>
Camera - Reset camera for Player 1 (Red) to standard game-view over 1.00 seconds
Unit - Make Footman 0002 <gen> Invulnerable
Trigger - Turn off Turn_Around_2 <gen>
Trigger - Turn off Turn_Around <gen>
Trigger - Turn off Turn_Left <gen>
Trigger - Turn off Turn_Right <gen>
Camera Transition
Events
Conditions
Actions
Camera - Set Player 1 (Red) 's camera Distance to target to 0.00 over 1.00 seconds
Camera - Set Player 1 (Red) 's camera Angle of attack to 360.00 over 1.00 seconds
Camera - Set Player 1 (Red) 's camera Rotation to (Facing of Unit) over 1.00 seconds
Camera - Set Player 1 (Red) 's camera Height Offset to 100.00 over 1.00 seconds
Camera - Pan camera for Player 1 (Red) to ((Position of Unit) offset by 75.00 towards (Facing of Unit) degrees.) over 1.00 seconds
Wait 1.00 seconds
Trigger - Turn on Camera <gen>
Camera Transition Death
Events
Conditions
Actions
Camera - Set Player 1 (Red) 's camera Distance to target to 0.00 over 0.50 seconds
Camera - Set Player 1 (Red) 's camera Angle of attack to 360.00 over 0.50 seconds
Camera - Set Player 1 (Red) 's camera Rotation to (Facing of Unit) over 0.50 seconds
Camera - Set Player 1 (Red) 's camera Height Offset to 100.00 over 0.50 seconds
Camera - Pan camera for Player 1 (Red) to ((Position of Unit) offset by 75.00 towards (Facing of Unit) degrees.) over 0.00 seconds
Region
Events
Unit - A unit enters Some_Region <gen>
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Secret_Found Equal to True
Then - Actions
Game - Display to (All players) the text: Uh... you've already been here.
Else - Actions
Game - Display to (All players) the text: Wow, either you were REALLY bored when you decided to try this, or you really love it. (It better be the latter ;)) No, nothing special is going to happen now. Nice try, Dodongo.
Trigger - Turn off (This trigger)
Set Variable Set Secret_Found = "true"
Region Secret Alert
Events
Unit - A unit enters Some_Region <gen>
Conditions
Actions
Game - Display to (All players) the text: You just don't give up, do you... Alright, alright, there IS a |CFFFFDEADSecret|R on this map. Come here before killing the footman next time. It will say nothing's gonna happen, but it will. Believe me.You don't believe me, do you...
Trigger - Turn off (This trigger)
Set Variable Set Secret_Found = "true"
Turn Left
Events
Player - Player 1 (Red) Presses the Left Arrow key
Conditions
Actions
Unit - Order Unit to Stop .
Unit - Make Unit face ((Facing of Unit) + 45.00) over 1.00 seconds
Wait 1.00 seconds
Turn Right
Events
Player - Player 1 (Red) Presses the Right Arrow key
Conditions
Actions
Unit - Order Unit to Stop .
Unit - Make Unit face ((Facing of Unit) - 45.00) over 1.00 seconds
Wait 1.00 seconds
Turn Around
Events
Player - Player 1 (Red) Presses the Down Arrow key
Conditions
Actions
Unit - Order Unit to Stop .
Unit - Make Unit face ((Facing of Unit) + 180.00) over 1.00 seconds
Wait 1.00 seconds
Trigger - Turn off (This trigger)
Trigger - Turn on Turn_Around_2 <gen>
Turn Around 2
Events
Player - Player 1 (Red) Presses the Down Arrow key
Conditions
Actions
Unit - Order Unit to Stop .
Unit - Make Unit face ((Facing of Unit) - 180.00) over 1.00 seconds
Wait 1.00 seconds
Trigger - Turn off (This trigger)
Trigger - Turn on Turn_Around <gen>
Footman Attack
Events
Unit - Footman 0002 <gen> Takes damage
Conditions
Actions
Trigger - Turn off (This trigger)
Unit - Make (Attacked unit) face Unit over 0.50 seconds
Unit - Order Unit to Stop .
Cinematic - Turn cinematic mode On for (All players)
Cinematic - Send transmission to (All players) from (Attacked unit) named Footman : Play No sound and display Hey! What was that for!? Die! . Modify duration: Set to 2.50 seconds and Wait
Cinematic - Turn cinematic mode Off for (All players)
Game - Display to (All players) the text: Uh oh, you made that footman mad! Press the down arrow and run before he goes after you! |CFFFFDEADOr just shoot him...|R
Trigger - Turn on Footman_Die <gen>
Wait 3.00 seconds
Unit - Order Footman 0002 <gen> to Attack . Unit
Unit Die
Events
Unit - A unit Is attacked
Conditions
(Attacked unit) Equal to Unit
Actions
Trigger - Run Camera_Transition_Death <gen> (checking conditions)
Wait 0.50 seconds
Unit - Kill Unit
Trigger - Turn off OFF <gen>
Trigger - Turn off OFF_Copy <gen>
Footman Die
Events
Unit - A unit Is attacked
Conditions
(Attacked unit) Not equal to Unit
Actions
Wait 0.25 seconds
Trigger - Run WINNER <gen> (checking conditions)
Set Variable Set Rifleman = (Attacking unit)
WINNER
Events
Conditions
Actions
Unit - Make Footman 0002 <gen> Invulnerable
Unit - Make Footman 0002 <gen> Explode on death
Unit - Kill Footman 0002 <gen>
Game - Display to (All players) the text: Nice job, you killed the footman!
If (Secret_Found Equal to False) then do (Run WIN_DIALOG <gen> (checking conditions)) else do (Run WIN_DIALOG_SECRET <gen> (checking conditions))
WIN DIALOG
Events
Conditions
Actions
Dialog - Change the title of Dialog to Nice job, you killed the footman!
Dialog - Show Dialog for Player 1 (Red)
Dialog - Create a dialog button for Dialog labelled Continue
Set Variable Set Dialog_Continue = (Last created dialog Button)
Dialog - Create a dialog button for Dialog labelled Quit
Set Variable Set Dialog_Quit = (Last created dialog Button)
Dialog - Show Dialog for Player 1 (Red)
Trigger - Turn off Continue_Footman <gen>
WIN DIALOG SECRET
Events
Conditions
Actions
Dialog - Change the title of Dialog to Nice job, you found the |CFFFFDEADSecret!|r
Dialog - Show Dialog for Player 1 (Red)
Dialog - Create a dialog button for Dialog labelled Continue
Set Variable Set Dialog_Continue = (Last created dialog Button)
Dialog - Create a dialog button for Dialog labelled Quit
Set Variable Set Dialog_Quit = (Last created dialog Button)
Dialog - Create a dialog button for Dialog labelled Play as the Footman
Set Variable Set Footman_Button = (Last created dialog Button)
Dialog - Show Dialog for Player 1 (Red)
Trigger - Turn off Continue_Footman <gen>
WIN DIALOG FOOTMAN
Events
Conditions
Actions
Dialog - Clear Dialog
Dialog - Change the title of Dialog to Wow, you beat the game!
Dialog - Create a dialog button for Dialog labelled Continue
Set Variable Set Dialog_Continue = (Last created dialog Button)
Dialog - Create a dialog button for Dialog labelled Quit
Set Variable Set Dialog_Quit = (Last created dialog Button)
Dialog - Show Dialog for Player 1 (Red)
LOSER
Events
Unit - A unit Dies
Conditions
(Dying unit) Equal to Unit
Actions
Trigger - Turn off Camera <gen>
Camera - Set (Owner of Unit) 's camera Angle of attack to 20.00 over 0.25 seconds
Wait 0.25 seconds
Camera - Set (Owner of Unit) 's camera Angle of attack to 330.00 over 0.50 seconds
Wait 0.75 seconds
Camera - Set (Owner of Unit) 's camera Angle of attack to 90.00 over 0.50 seconds
Camera - Pan camera for (Owner of Unit) to ((Position of Unit) offset by 75.00 towards (Facing of Unit) degrees.) over 0.75 seconds
Cinematic - Fade out over 0.50 seconds using texture Black Mask and color ( 0 %, 0 %, 0 %) with 0 % transparency
Wait 1.50 seconds
Game - Defeat Player 1 (Red) with the message: The footman killed you.
LOSER Footman
Events
Unit - A unit Dies
Conditions
(Dying unit) Equal to Unit
Actions
Trigger - Turn off Camera <gen>
Camera - Set (Owner of Unit) 's camera Angle of attack to 90.00 over 0.75 seconds
Wait 0.75 seconds
Cinematic - Fade out over 0.50 seconds using texture Black Mask and color ( 0 %, 0 %, 0 %) with 0 % transparency
Wait 1.50 seconds
Game - Defeat Player 1 (Red) with the message: You, the footman, died... again.
Secret Region 2
Events
Unit - A unit enters Some_Region <gen>
Conditions
(Triggering unit) Equal to Unit
Actions
Unit - Unhide Rifleman
Unit - Order Rifleman to Attack . Unit
Game - Display to (All players) the text: Oh, man. That rifleman gotcha again.
Kill Rifleman
Events
Unit - A unit enters Kill_Rifleman <gen>
Conditions
Actions
Unit - Unhide Rifleman
Unit - Order Unit to Stop .
Unit - Make Unit face Rifleman over 0 seconds
Sound - Play MetalMediumSliceFlesh1 <gen>
Wait 0.66 seconds
Sound - Play MetalMediumSliceFlesh2 <gen>
Wait 0.60 seconds
Sound - Play MetalMediumSliceFlesh3 <gen>
Unit - Kill Rifleman
Trigger - Turn off (This trigger)
Trigger - Turn off Continue <gen>
Trigger - Turn off Secret_Region_2 <gen>
Trigger - Turn on Continue_Footman <gen>
Wait 1.77 seconds
Trigger - Run WIN_DIALOG_FOOTMAN <gen> (checking conditions)
Continue
Events
Dialog - A dialog button is clicked for Dialog
Conditions
(Clicked dialog button) Equal to Dialog_Continue
Actions
Dialog - Hide Dialog for Player 1 (Red)
Trigger - Turn off Region <gen>
Trigger - Turn on Region <gen>
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Secret_Found Equal to True
Then - Actions
Game - Display to (All players) the text: You really want to keep playing as the regular character? Man, you must be REALLY bored.
Else - Actions
Game - Display to (All players) the text: You really want to keep playing? Man, you must be bored.
Trigger - Turn on Region_Secret_Alert <gen>
Trigger - Turn off Region <gen>
Continue Footman
Events
Dialog - A dialog button is clicked for Dialog
Conditions
(Clicked dialog button) Equal to Dialog_Continue
Actions
Dialog - Hide Dialog for Player 1 (Red)
Game - Display to (All players) the text: It's official. You're addicted.
Quit
Events
Dialog - A dialog button is clicked for Dialog
Conditions
(Clicked dialog button) Equal to Dialog_Quit
Actions
Dialog - Hide (Clicked dialog) for Player 1 (Red)
Game - Victory Player 1 (Red) ( Skip dialogs, Skip scores)
Footman Play
Events
Dialog - A dialog button is clicked for Dialog
Conditions
(Clicked dialog button) Equal to Footman_Button
Actions
Dialog - Hide Dialog for Player 1 (Red)
Unit - Create 1 . Footman for Player 1 (Red) at (Position of Rifleman) facing (Facing of Rifleman) degrees
Wait 0.01 seconds
Unit - Move Rifleman instantly to (Center of Some_Region <gen>)
Unit - Hide Rifleman
Set Variable Set Unit = (Last created unit)
Selection - Select (Last created unit) for Player 1 (Red)
Trigger - Turn off LOSER <gen>
Trigger - Turn on LOSER_Footman <gen>
Trigger - Turn on Secret_Region_2 <gen>
Game - Display to (All players) the text: You are now playing as the footman! Careful, the rifleman went somewhere.
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.