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
300 spartans.w3x
Variables
skill
defend
stop defend
follow
Forward
Throw
Force Enhancement
call Reinforcement
problem
Slam
Quest
Quest
Setting
exp
XerI
bouns
Camera
Camera1
Camera2
music1
musicoff
other stuff
Time limit
Cinematic
Start
Giantshow
Giant dead
Archershow
Bshow
Chief
Xer
Events
Win
Lose
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
Hero
unit
Yes
Timer
timer
No
TimerWindow
timerdialog
No
defend
Events
Unit - A unit Is issued an order with no target
Conditions
And - All (Conditions) are true
Conditions
(Issued order) Equal to (Order(Defend))
Or - Any (Conditions) are true
Conditions
(Unit-type of (Triggering unit)) Equal to Spartan king
(Unit-type of (Triggering unit)) Equal to Captain
Actions
Unit Group - Pick every unit in (Units owned by (Triggering player) of type Spartan Soilders) and do (Order (Picked unit) to Human Footman - Defend.)
stop defend
Events
Unit - A unit Is issued an order with no target
Conditions
And - All (Conditions) are true
Conditions
(Issued order) Equal to (Order(undefend))
Or - Any (Conditions) are true
Conditions
(Unit-type of (Triggering unit)) Equal to Spartan king
(Unit-type of (Triggering unit)) Equal to Captain
Actions
Unit Group - Pick every unit in (Units owned by (Triggering player) of type Spartan Soilders) and do (Order (Picked unit) to Human Footman - Stop Defend.)
follow
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Follow
Actions
Unit Group - Pick every unit in (Units owned by (Triggering player) of type Spartan Soilders) and do (Order (Picked unit) to Follow.(Triggering unit))
Forward
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Forward
Actions
Unit Group - Pick every unit in (Units owned by (Triggering player) of type Spartan Soilders) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Executioner 0514 <gen> is alive) Equal to True
Then - Actions
Unit - Order (Picked unit) to Attack-Move To . (Position of Executioner 0514 <gen>)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Kodo Beast 0642 <gen> is alive) Equal to True
Then - Actions
Unit - Order (Picked unit) to Attack-Move To . (Position of Kodo Beast 0642 <gen>)
Else - Actions
Unit - Order (Picked unit) to Attack-Move To . (Position of Persian king 0422 <gen>)
Throw
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Throw Spear
Actions
Unit Group - Pick every unit in (Units owned by (Triggering player) of type Spartan Soilders) and do (Replace (Picked unit) with a Assassin-1 using The old unit's relative life and mana)
Wait 2.00 game-time seconds
Unit Group - Pick every unit in (Units owned by (Triggering player) of type Assassin-1) and do (Replace (Picked unit) with a Spartan Soilders using The old unit's relative life and mana)
Force Enhancement
Events
Unit - A unit Gains a level
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Hero level of (Leveling Hero)) Equal to 10
Then - Actions
Player - Set the current research level of Rhan (Unexpected type: 'techcode') to 1 for (Owner of (Triggering unit))
Player - Set the current research level of Rhme (Unexpected type: 'techcode') to 1 for (Owner of (Triggering unit))
Player - Set the current research level of Rhar (Unexpected type: 'techcode') to 1 for (Owner of (Triggering unit))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Hero level of (Leveling Hero)) Equal to 15
Then - Actions
Player - Set the current research level of Rhan (Unexpected type: 'techcode') to 2 for (Owner of (Triggering unit))
Player - Set the current research level of Rhme (Unexpected type: 'techcode') to 2 for (Owner of (Triggering unit))
Player - Set the current research level of Rhar (Unexpected type: 'techcode') to 2 for (Owner of (Triggering unit))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Hero level of (Leveling Hero)) Equal to 20
Then - Actions
Player - Set the current research level of Rhan (Unexpected type: 'techcode') to 3 for (Owner of (Triggering unit))
Player - Set the current research level of Rhme (Unexpected type: 'techcode') to 3 for (Owner of (Triggering unit))
Player - Set the current research level of Rhar (Unexpected type: 'techcode') to 3 for (Owner of (Triggering unit))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Hero level of (Leveling Hero)) Equal to 25
Then - Actions
Player - Set the current research level of Rhan (Unexpected type: 'techcode') to 4 for (Owner of (Triggering unit))
Player - Set the current research level of Rhme (Unexpected type: 'techcode') to 4 for (Owner of (Triggering unit))
Player - Set the current research level of Rhar (Unexpected type: 'techcode') to 4 for (Owner of (Triggering unit))
Else - Actions
call Reinforcement
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Penguin Squeek
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Triggering unit)) Current gold) Greater than or equal to 500
Then - Actions
Player - Set (Owner of (Triggering unit)) . Current gold to (((Owner of (Triggering unit)) Current gold) - 500)
Unit - Create 10 . Thespian for (Triggering player) at (Position of (Triggering unit)) facing Default building facing degrees
Else - Actions
Quest - Display to (Player group((Triggering player))) the Quest Failed message: You do not have enough honor points to call reinforcement
idea for spartan making
leak
sound
Slam
Events
Unit - A unit Is attacked
Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of (Attacking unit)) Equal to Dire Mammoth
(Unit-type of (Attacking unit)) Equal to Warchief
(Unit-type of (Attacking unit)) Equal to Uber Immortal (Giant)
(Unit-type of (Attacking unit)) Equal to Persian king
Actions
Special Effect - Create a special effect at (Position of (Attacking unit)) using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
Special Effect - Destroy (Last created special effect)
Quest
Events
Map initialization
Conditions
Actions
Quest - Create a Required quest titled About with the description This is the very beta version.i hope i have time to finish the upcoming partsi hope you guys enjoy!Any questions or suggestions,please feel free to contact [email protected] or whisper Jubi USE , using icon path ReplaceableTextures\CommandButtons\BTNAmbush.blp
Quest - Create a Required quest titled command with the description -cam1 (top view)-cam2 (close view)-music1 returen of a king (player 1 only)-music2 not yet made (player 1 only)-musicoff (switch off all music) , using icon path ReplaceableTextures\CommandButtons\BTNSpy.blp
exp
Events
Time - Every 40.00 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to 12 , do (Actions)
Loop - Actions
Hero - Set Hero[(Integer A)] Hero-level to ((Hero level of Hero[(Integer A)]) + 1) , Show level-up graphics
XerI
Events
Time - Every 30.00 seconds of game time
Conditions
Actions
Hero - Modify Strength of Persian king 0422 <gen> : Add 15 .
Hero - Modify Agility of Persian king 0422 <gen> : Add 5 .
bouns
Events
Unit - A unit Gains a level
Conditions
((Leveling Hero) is alive) Equal to True
Actions
If (((Hero level of (Triggering unit)) Equal to 10) and (((Unit-type of (Triggering unit)) Equal to Spartan king) or ((Unit-type of (Triggering unit)) Equal to Captain))) then do (Create Essence of Aszune and give it to (Triggering unit)) else do (Do nothing)
If (((Hero level of (Triggering unit)) Equal to 20) and (((Unit-type of (Triggering unit)) Equal to Spartan king) or ((Unit-type of (Triggering unit)) Equal to Captain))) then do (Create The heart of Brave and give it to (Triggering unit)) else do (Do nothing)
If (((Hero level of (Triggering unit)) Equal to 30) and (((Unit-type of (Triggering unit)) Equal to Spartan king) or ((Unit-type of (Triggering unit)) Equal to Captain))) then do (Create Sparta Flag and give it to (Triggering unit)) else do (Do nothing)
If (((Hero level of (Triggering unit)) Equal to 5) and (((Unit-type of (Triggering unit)) Equal to Spartan king) or ((Unit-type of (Triggering unit)) Equal to Captain))) then do (Add Throw Spear to (Triggering unit)) else do (Do nothing)
If (((Hero level of (Triggering unit)) Equal to 10) and (((Unit-type of (Triggering unit)) Equal to Spartan king) or ((Unit-type of (Triggering unit)) Equal to Captain))) then do (Add Force Enhancement to (Triggering unit)) else do (Do nothing)
If (((Hero level of (Triggering unit)) Equal to 20) and (((Unit-type of (Triggering unit)) Equal to Spartan king) or ((Unit-type of (Triggering unit)) Equal to Captain))) then do (Add Berserk to (Triggering unit)) else do (Do nothing)
If (((Hero level of (Triggering unit)) Equal to 25) and (((Unit-type of (Triggering unit)) Equal to Spartan king) or ((Unit-type of (Triggering unit)) Equal to Captain))) then do (Add Avatar to (Triggering unit)) else do (Do nothing)
Camera
Events
Map initialization
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Camera - . Apply without panning . gg_cam_Camera_001 for (Picked player) over 0 seconds
Camera1
Events
Player - Player 1 (Red) types a chat message containing -cam1 (Unexpected type: 'stringnoformat') as An exact match
Player - Player 2 (Blue) types a chat message containing -cam1 (Unexpected type: 'stringnoformat') as An exact match
Player - Player 3 (Teal) types a chat message containing -cam1 (Unexpected type: 'stringnoformat') as An exact match
Player - Player 4 (Purple) types a chat message containing -cam1 (Unexpected type: 'stringnoformat') as An exact match
Player - Player 5 (Yellow) types a chat message containing -cam1 (Unexpected type: 'stringnoformat') as An exact match
Player - Player 6 (Orange) types a chat message containing -cam1 (Unexpected type: 'stringnoformat') as An exact match
Player - Player 7 (Green) types a chat message containing -cam1 (Unexpected type: 'stringnoformat') as An exact match
Player - Player 8 (Pink) types a chat message containing -cam1 (Unexpected type: 'stringnoformat') as An exact match
Player - Player 9 (Gray) types a chat message containing -cam1 (Unexpected type: 'stringnoformat') as An exact match
Player - Player 10 (Light Blue) types a chat message containing -cam1 (Unexpected type: 'stringnoformat') as An exact match
Player - Player 11 (Dark Green) types a chat message containing -cam1 (Unexpected type: 'stringnoformat') as An exact match
Player - Player 12 (Brown) types a chat message containing -cam1 (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Camera - . Apply without panning . gg_cam_Camera_001 for (Triggering player) over 0 seconds
Camera2
Events
Player - Player 1 (Red) types a chat message containing -cam2 (Unexpected type: 'stringnoformat') as An exact match
Player - Player 2 (Blue) types a chat message containing -cam2 (Unexpected type: 'stringnoformat') as An exact match
Player - Player 3 (Teal) types a chat message containing -cam2 (Unexpected type: 'stringnoformat') as An exact match
Player - Player 4 (Purple) types a chat message containing -cam2 (Unexpected type: 'stringnoformat') as An exact match
Player - Player 5 (Yellow) types a chat message containing -cam2 (Unexpected type: 'stringnoformat') as An exact match
Player - Player 6 (Orange) types a chat message containing -cam2 (Unexpected type: 'stringnoformat') as An exact match
Player - Player 7 (Green) types a chat message containing -cam2 (Unexpected type: 'stringnoformat') as An exact match
Player - Player 8 (Pink) types a chat message containing -cam2 (Unexpected type: 'stringnoformat') as An exact match
Player - Player 9 (Gray) types a chat message containing -cam2 (Unexpected type: 'stringnoformat') as An exact match
Player - Player 10 (Light Blue) types a chat message containing -cam2 (Unexpected type: 'stringnoformat') as An exact match
Player - Player 11 (Dark Green) types a chat message containing -cam2 (Unexpected type: 'stringnoformat') as An exact match
Player - Player 12 (Brown) types a chat message containing -cam2 (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Camera - . Apply without panning . gg_cam_Camera_006 for (Triggering player) over 0 seconds
music1
Events
Player - Player 1 (Red) types a chat message containing -music1 (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Sound - Play 04_tyler_bates___returns_a_king <gen>
musicoff
Events
Player - Player 1 (Red) types a chat message containing -musicoff (Unexpected type: 'stringnoformat') as An exact match
Player Group - Make (All players controlled by a User player) treat (All players controlled by a User player) as an Ally with shared vision
Game - Set the time of day to 16.00
Set Variable Set Hero[1] = Spartan king 0015 <gen>
Set Variable Set Hero[2] = Captain 0323 <gen>
Set Variable Set Hero[3] = Captain 0324 <gen>
Set Variable Set Hero[4] = Captain 0325 <gen>
Set Variable Set Hero[5] = Captain 0326 <gen>
Set Variable Set Hero[6] = Captain 0327 <gen>
Set Variable Set Hero[7] = Captain 0328 <gen>
Set Variable Set Hero[8] = Captain 0333 <gen>
Set Variable Set Hero[9] = Captain 0332 <gen>
Set Variable Set Hero[10] = Captain 0331 <gen>
Set Variable Set Hero[11] = Captain 0330 <gen>
Set Variable Set Hero[12] = Captain 0329 <gen>
Time limit
Events
Time - Elapsed game time is 30.00 seconds
Conditions
Actions
Countdown Timer - Start Timer as a One-shot timer that will expire in 1200.00 seconds
Countdown Timer - Create a timer window for Timer with title Time remaining :
Set Variable Set TimerWindow = (Last created timer window)
Countdown Timer - Show TimerWindow
Start
Events
Time - Elapsed game time is 0.00 seconds
Conditions
Actions
Sound - Play 04_tyler_bates___returns_a_king <gen>
Cinematic - Turn cinematic mode On for (All players)
Sound - Play KodoDrum1 <gen>
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Camera - . Apply . gg_cam_Camera_002 for (Picked player) over 0 seconds
Camera - Pan camera for (Picked player) to (Center of (Region centered at (Position of Dire Mammoth 0811 <gen>) with size (0.00, 0.00))) over 15.00 seconds
Wait 6.00 game-time seconds
Cinematic - Send transmission to (All players) from Persian General 0820 <gen> named Persian General : Play No sound and display SPARTANS! Lay down your weapons! . Modify duration: Subtract 2.00 seconds and Wait
Cinematic - Send transmission to (All players) from Spartan king 0015 <gen> named Spartan King Leonidas : Play No sound and display Persians...COME AND GET THEM! . Modify duration: Subtract 2.00 seconds and Wait
Cinematic - Send transmission to (All players) from Spartan king 0015 <gen> named Spartan King Leonidas : Play No sound and display This is where we fight! This is where they die! . Modify duration: Subtract 2.00 seconds and Wait
Sound - Stop KodoDrum1 <gen> Immediately
Cinematic - Turn cinematic mode Off for (All players)
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Camera - . Apply . gg_cam_Camera_001 for (Picked player) over 0 seconds
Game - Display to (All players) the text: General Command : -cam1 (top view) -cam2 (close view)Host Command -music1 (return of a king) -music2 (not yet made) -musicoffYour hero will gain 1 level every 30 seconds and new skills and items are learnt/given at different levelXerxes gets stronger with time!!!!
Giantshow
Events
Unit - Uber Immortal (Giant) 0519 <gen> Is attacked
Conditions
Actions
Trigger - Turn off (This trigger)
Unit - Pause all units
Cinematic - Turn cinematic mode On for (All players)
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Camera - . Apply . gg_cam_Camera_003 for (Picked player) over 0 seconds
Camera - Lock camera target for (Picked player) to Uber Immortal (Giant) 0519 <gen> , offset by ( 0 , 0 ) using Default rotation
Cinematic - Send transmission to (All players) from Uber Immortal (Giant) 0519 <gen> named Uber Immortal (Giant) : Play GruntYesAttack1 <gen> and display Time for Killing................. . Modify duration: Subtract 0.00 seconds and Wait
Cinematic - Turn cinematic mode Off for (All players)
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Camera - . Apply . gg_cam_Camera_001 for (Picked player) over 0 seconds
Unit - Create 10 . Archer for Neutral Hostile at (Center of Event1 <gen>) facing Default building facing degrees
Unit - Create 20 . Archer for Neutral Hostile at (Center of Event1S <gen>) facing Default building facing degrees
Unit - Unpause all units
Giant dead
Events
Unit - Uber Immortal (Giant) 0519 <gen> Dies
Conditions
Actions
Destructible - Pick every destructible in Gate1 <gen> and do (Actions)
Loop - Actions
Destructible - Remove (Picked destructible)
Unit Group - Pick every unit in (Units in Event1 <gen>) and do (Remove (Picked unit) from the game)
Unit Group - Pick every unit in (Units in Event1S <gen>) and do (Remove (Picked unit) from the game)
Archershow
Events
Unit - A unit enters Event2 <gen>
Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of (Entering unit)) Equal to Spartan Soilders
(Unit-type of (Entering unit)) Equal to Spartan king
(Unit-type of (Entering unit)) Equal to Captain
Actions
Trigger - Turn off (This trigger)
Unit - Pause all units
Unit - Create 40 . Shandris for Neutral Hostile at (Center of A1 <gen>) facing Default building facing degrees
Unit - Create 40 . Shandris for Neutral Hostile at (Center of A2 <gen>) facing Default building facing degrees
Unit - Create 40 . Shandris for Neutral Hostile at (Center of A3 <gen>) facing Default building facing degrees
Unit - Create 20 . Immortals for Neutral Hostile at (Center of M4 <gen>) facing Default building facing degrees
Cinematic - Turn cinematic mode On for (All players)
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Camera - . Apply . gg_cam_Camera_004 for (Picked player) over 0 seconds
Camera - Pan camera for (Picked player) to (Center of A2 <gen>) over 10.00 seconds
Wait 6.00 game-time seconds
Cinematic - Send transmission to (All players) from Shandris 0437 <gen> named Persian General : Play No sound and display Our arrows will block out the sun ! . Modify duration: Subtract 2.00 seconds and Wait
Cinematic - Send transmission to (All players) from Spartan king 0015 <gen> named Spartan King Leonidas : Play No sound and display Then,we will fight in the shade! . Modify duration: Subtract 2.00 seconds and Wait
Unit Group - Pick every unit in (Units in A1 <gen>) and do (Actions)
Loop - Actions
Animation - Play (Picked unit) 's stand victory animation
Unit Group - Pick every unit in (Units in A2 <gen>) and do (Actions)
Loop - Actions
Animation - Play (Picked unit) 's stand victory animation
Unit Group - Pick every unit in (Units in A3 <gen>) and do (Actions)
Loop - Actions
Animation - Play (Picked unit) 's stand victory animation
Cinematic - Send transmission to (All players) from Spartan king 0015 <gen> named Spartan King Leonidas : Play No sound and display On these shields, boys! . Modify duration: Subtract 2.00 seconds and Wait
Cinematic - Turn cinematic mode Off for (All players)
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Camera - . Apply . gg_cam_Camera_001 for (Picked player) over 0 seconds
Unit - Unpause all units
Wait 2 game-time seconds
Unit - Pause Executioner 0514 <gen>
Bshow
Events
Unit - Executioner 0514 <gen> Is attacked
Conditions
Actions
Trigger - Turn off (This trigger)
Unit - Pause all units
Cinematic - Turn cinematic mode On for (All players)
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Camera - . Apply . gg_cam_Camera_003 for (Picked player) over 0 seconds
Camera - Lock camera target for (Picked player) to Executioner 0514 <gen> , offset by ( 0 , 0 ) using Default rotation
Cinematic - Send transmission to (All players) from Executioner 0514 <gen> named Executioner : Play AbominationYesAttack1 <gen> and display ....................... . Modify duration: Subtract 0.00 seconds and Wait
Wait 2 game-time seconds
Animation - Play Executioner 0514 <gen> 's attack animation
Wait 3.00 game-time seconds
Cinematic - Turn cinematic mode Off for (All players)
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Camera - . Apply . gg_cam_Camera_001 for (Picked player) over 0 seconds
Unit - Unpause all units
Wait 2 game-time seconds
Unit - Pause Persian king 0422 <gen>
Chief
Events
Unit - Warchief 0515 <gen> Dies
Conditions
Actions
Destructible - Pick every destructible in Gate2 <gen> and do (Actions)
Loop - Actions
Destructible - Remove (Picked destructible)
Xer
Events
Unit - Persian king 0422 <gen> Is attacked
Conditions
Actions
Trigger - Turn off (This trigger)
Unit - Pause all units
Cinematic - Turn cinematic mode On for (All players)
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Camera - . Apply . gg_cam_Camera_005 for (Picked player) over 0 seconds
Camera - Lock camera target for (Picked player) to Persian king 0422 <gen> , offset by ( 0 , 0 ) using Default rotation
Cinematic - Send transmission to (All players) from Persian king 0422 <gen> named Xerxes : Play TichondriusWarcry1 <gen> and display Cruel Leonidas demanded that you stand. I require only that you kneel. . Modify duration: Subtract 0.00 seconds and Wait
Wait 2 game-time seconds
Animation - Play Persian king 0422 <gen> 's attack animation
Cinematic - Send transmission to (All players) from Spartan king 0015 <gen> named Spartan King Leonidas : Play No sound and display Remember this day, men, for it will be yours for all time. . Modify duration: Subtract 2.00 seconds and Wait
Wait 3.00 game-time seconds
Cinematic - Turn cinematic mode Off for (All players)
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Camera - . Apply . gg_cam_Camera_001 for (Picked player) over 0 seconds
Unit - Unpause all units
Win
Events
Unit - Persian king 0422 <gen> Dies
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Game - Victory (Picked player) ( Show dialogs, Show scores)
Lose
Events
Time - Timer expires
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Game - Defeat (Picked player) with the message: Persian reinforcement has arrived..............
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.