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
Assassin.w3x
Variables
About This Map
Protection
Triggers
AI
Backstab
One Little Favor
Initialization
Init
Add Completion
Setup Game
SetupGame
Transparency
NoTreesInCenter
Create Units Two
Fade
Backstab
Execute
Kick
AI
Artificial Intelligence
Leaderboard
Create
Lose Lives
Victory
Victory
Morning | Night
Morning
Night
Ping
Ping
Debug
Esc
Name
Type
is_array
initial_value
Assassin
unit
No
AssassinTarget
unit
No
Completion
integer
No
Day
integer
No
FailSound
sound
No
FloatingText
texttag
No
Music
sound
Yes
NumberOfPlayers
integer
No
Why isn't this map protected? I don't think people should use map protection. People cannot learn from your map if you protect it. I would know a lot more if people didn't protect maps. You might learn from this map since it isn't protected. Though some of these triggers I have found from other maps. Please don't take this map as your own. If you do, atleast give the creator (xxxPALADINxxx) credit.
Note: All this is is what the triggers do.
[Category]
-------- Initialization --------
Init - Creates a random amount of trees in the map. Removes them if they are in the middle.
Create Units - Thanks to Monolith (the Blizzard map), I could create units that aren't too close to other units, and you can't have your unit created too close to trees.
NoTreesInCenter - Trees cannot be created in the center (the region).
SetupGame - Creates the quests, pauses the units, displays messages, flashes the quest button, and gives units the ability Backstab.
-------- Backstab --------
Execute - Creates the special effects, kills the target unit (if successful), and creates floating text. Note: The ability "Backstab" is executed by the computers by using the order Undead - Banshee Curse
-------- Kick --------
Kick Players - Kicks the players by using substrings, instead of making 8 triggers (disabled for now).
-------- AI --------
Artificial Intelligence - Makes the computers runs around and when they come close to a unit, they attempt to backstab them.
-------- Leaderboard --------
Create - Creates or setups the leaderboard that tallies lives.
Lose Lives - Takes lives away from the player that owns the unit that dies.
_.-~xxxPALADINxxx~-._
Nothing to say...
Please, do not edit this map and take it as your own.
|cffc3dbff
Init
Events
Map initialization
Conditions
Actions
Set Variable Set Day = "1"
-------- Preload --------
Game - Preload all files listed in Assassin.pld (Unexpected type: 'preloadfile') .
-------- Trees --------
For each (Integer A) from 0 to (Random integer number between 89 and 139) , do (Actions)
Loop - Actions
For each (Integer B) from 0 to 2 , do (Actions)
Loop - Actions
Destructible - Create a ITtc (Unexpected type: 'destructablecode') at (Random point in (Playable map area)) facing (Random angle) with scale 1 and variation 0
-------- Init Variables --------
Set Variable Set FailSound = thnkng <gen>
Set Variable Set Music[1] = Kool_and_the_Gang___Celebration__shorter_12sec <gen>
Set Variable Set NumberOfPlayers = (Number of players in (All players matching ((((Matching player) controller) Equal to Computer) or (((Matching player) slot status) Equal to Is playing)).))
-------- Envrionment/Weather --------
Game - Set the time of day to 0.00
Game - Set time of day speed to 70.00 % of the default speed
Game - Turn the day/night cycle On
Environment - Create at (Playable map area) the weather effect Dungeon White Fog (Heavy)
Environment - Turn (Last created weather effect) On
Environment - Create at (Playable map area) the weather effect Dungeon White Fog (Light)
Environment - Turn (Last created weather effect) On
Environment - Set fog to style Linear , z-start 1000 , z-end 8000 , density 75.00 and color ( 100 %, 100 %, 100 %)
Environment - Set sky to Fogged Sky
-------- Set Names --------
If ((Player 1 (Red) slot status) Equal to Is playing) then do (Set name of Player 1 (Red) to (Name of Player 1 (Red))) else do (If ((Player 1 (Red) controller) Equal to Computer) then do (Set name of Player 1 (Red) to |cffff0000Computer AI) else do (Do nothing))
If ((Player 2 (Blue) slot status) Equal to Is playing) then do (Set name of Player 2 (Blue) to (Name of Player 2 (Blue))) else do (If ((Player 2 (Blue) controller) Equal to Computer) then do (Set name of Player 2 (Blue) to |cff0000ffComputer AI) else do (Do nothing))
If ((Player 3 (Teal) slot status) Equal to Is playing) then do (Set name of Player 3 (Teal) to (Name of Player 3 (Teal))) else do (If ((Player 3 (Teal) controller) Equal to Computer) then do (Set name of Player 3 (Teal) to |cff00ffffComputer AI) else do (Do nothing))
If ((Player 4 (Purple) slot status) Equal to Is playing) then do (Set name of Player 4 (Purple) to (Name of Player 4 (Purple))) else do (If ((Player 4 (Purple) controller) Equal to Computer) then do (Set name of Player 4 (Purple) to |c00800080Computer AI) else do (Do nothing))
If ((Player 5 (Yellow) slot status) Equal to Is playing) then do (Set name of Player 5 (Yellow) to (Name of Player 5 (Yellow))) else do (If ((Player 5 (Yellow) controller) Equal to Computer) then do (Set name of Player 5 (Yellow) to |cffffcc00Computer AI) else do (Do nothing))
If ((Player 6 (Orange) slot status) Equal to Is playing) then do (Set name of Player 6 (Orange) to (Name of Player 6 (Orange))) else do (If ((Player 6 (Orange) controller) Equal to Computer) then do (Set name of Player 6 (Orange) to |c00ff8000Computer AI) else do (Do nothing))
If ((Player 7 (Green) slot status) Equal to Is playing) then do (Set name of Player 7 (Green) to (Name of Player 7 (Green))) else do (If ((Player 7 (Green) controller) Equal to Computer) then do (Set name of Player 7 (Green) to |cff00CD00Computer AI) else do (Do nothing))
If ((Player 8 (Pink) slot status) Equal to Is playing) then do (Set name of Player 8 (Pink) to (Name of Player 8 (Pink))) else do (If ((Player 8 (Pink) controller) Equal to Computer) then do (Set name of Player 8 (Pink) to |c00ff00ffComputer AI) else do (Do nothing))
-------- Remove Extra --------
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in (Units owned by (Picked player).)) Greater than or equal to 2
Then - Actions
Unit - Remove (Random unit from (Random 1 units from (Units owned by (Picked player).))) from the game
Else - Actions
Do nothing
-------- Hide --------
Unit - Hide Snowman! 0004 <gen>
Destructible - Pick every destructible in NoTrees <gen> and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Destructible-type of (Picked destructible)) Equal to ITtw (Unexpected type: 'destructablecode')
Then - Actions
Destructible - Remove (Picked destructible)
Else - Actions
Add Completion
Events
Time - Every 1.25 seconds of game time
Conditions
Actions
Cinematic - Clear the screen of text messages for (All players) .
Set Variable Set Completion = (Completion + (Random integer number between 9 and 17))
Game - Display to (All players) for 3.00 seconds the text: (|cffffcc00Initializing... [ + ((String(Completion)) + %]))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Completion Greater than or equal to 100
Then - Actions
Trigger - Turn off (This trigger)
Cinematic - Clear the screen of text messages for (All players) .
Set Variable Set Completion = "100"
Game - Display to (All players) for 5.00 seconds the text: |cffffcc00Initialization Complete!
Quest - Display to (All players) the Quest Discovered message: |cffffcc00Welcome to |cff800000ASSASSIN. |cffffcc00You must kill everybody by |cffff0000Ba|c00ff8000ck|cffffcc00st|cff00CD00ab|c000000ffbi|c00800080ng |cffffcc00your enemies. You must backstab them in the BACK (obviously) to kill them. Good luck & Have fun!|cff00A0C0_=~xxxPALADINxxx~=_
Wait 5.00 seconds
Trigger - Run Create <gen> (ignoring conditions)
Game - Display to (All players) for 3.00 seconds the text: |cffff0000Please, Read The Quests (If You Want To).
Cinematic - Fade in over 3.00 seconds using texture Black Mask and color ( 0 %, 0 %, 0 %) with 0 % transparency
Sound - Play BattleMusic <gen>
Cinematic - Enable user control for (All players) .
Wait 5.25 seconds
Game - Display to (All players) for 3.00 seconds the text: |cffffcc00Let the games begin...
Trigger - Run Create_Units_Two <gen> (ignoring conditions)
Else - Actions
Do nothing
|cffff000TEXT|r : red
|cff00ccffTEXT|r : light blue
|cff0000ffTEXT|r : Blue
|cff00ff00TEXT|r : green
|cffff00ccTEXT|r : Cyan
|cffffcc00Welcome to |cff800000ASSASSIN. |cffffcc00You must kill everybody by |cffff0000Ba|c00ff8000ck|cffffcc00st|cff00CD00ab|c000000ffbi|c00800080ng |cffffcc00your enemies. You must backstab them in the BACK (obviously) to kill them. Good luck & Have fun!
|cff00A0C0_=~xxxPALADINxxx~=_
SetupGame
Events
Conditions
Actions
-------- Add Abilities --------
Unit Group - Pick every unit in (Units of type |cffff0000A|c00ff8000s|cffffcc00s|cff00CD00a|c000000ffs|c00800080s|cff00CD00i|cffff0000n) and do (Actions)
Loop - Actions
Unit - Add Net to (Picked unit)
Unit - Add Magical Ball to (Picked unit)
Unit - Add Blink to (Picked unit)
Unit - Add Walk Of Wind to (Picked unit)
-------- Used Quests --------
Quest - Create a Required quest titled |cff800000Assassin with the description |cff00A0C0Welcome to Assassin. The object of the game is to kill everybody by Backstabbing them. This is only successful if you actually stab them in the back. , using icon path ReplaceableTextures\CommandButtons\BTNManaDrain.blp
Quest - Create a Required quest titled |cffff0000Creator with the description |cff0044ccMade by xxxPALADINxxx. The map is unprotected. Remember: There IS an artificial intelligence for computers. , using icon path ReplaceableTextures\CommandButtons\BTNSoulBurn.blp
Quest - Create a Optional quest titled |c0000cdf9Cheats with the description |cff00CD00No Cheats!...Like I'm REALLY Going To Give You Cheats In The Quest Dialog. , using icon path ReplaceableTextures\CommandButtons\BTNStarfall.blp
Quest - Create a Required quest titled |cff77cc00Setting with the description |cff99cc00This place used to be a lively trade route. But only now, assassins lurk in the forests here to claim a lost treasure of pure gold and silver, along with gems of all types. Assassins are sneaky, and you are one in this game, so, be like an assassin! , using icon path ReplaceableTextures\CommandButtons\BTNINV_gold.blp
Quest - Create a Optional quest titled |cff0000C7Thank You! with the description |cff0000C8Thank you for playing Assassin!Danke! - German¡Gracias! - SpanishMerci ! - FrenchGrazie! - ItalianoObrigado! - Portuguese , using icon path ReplaceableTextures\CommandButtons\BTNArcaneMagic.blp
Quest - Create a Optional quest titled |cff808080Locked with the description |cff808080Versions greater than V.1.0 are locked (protected). , using icon path ReplaceableTextures\BTNLock.blp
Quest - Flash the quest dialog button
Transparency
Events
Time - Every 5.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units of type |cffff0000A|c00ff8000s|cffffcc00s|cff00CD00a|c000000ffs|c00800080s|cff00CD00i|cffff0000n) and do (Change (Picked unit)'s vertex coloring to (100%, 100%, 100%) with 50.00% transparency)
NoTreesInCenter
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Destructible - Pick every destructible in NoTrees <gen> and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Destructible-type of (Picked destructible)) Equal to ITtc (Unexpected type: 'destructablecode')
Then - Actions
Destructible - Remove (Picked destructible)
Else - Actions
Do nothing
Trigger - Turn off (This trigger)
Create Units Two
Events
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Unit - Create 1 . |cffff0000A|c00ff8000s|cffffcc00s|cff00CD00a|c000000ffs|c00800080s|cff00CD00i|cffff0000n for (Picked player) at (Random point in (Playable map area)) facing 270.00 degrees
Trigger - Run SetupGame <gen> (ignoring conditions)
Fade
Events
Time - Elapsed game time is 0.00 seconds
Conditions
Actions
Cinematic - Disable user control for (All players) .
Cinematic - Fade out over 0.00 seconds using texture Black Mask and color ( 0 %, 0 %, 0 %) with 0 % transparency
Execute
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Backstab
Actions
Set Variable Set Assassin = (Casting unit)
Set Variable Set AssassinTarget = (Target unit of ability being cast)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Facing of Assassin) Greater than or equal to ((Facing of AssassinTarget) + -55.00)
(Facing of Assassin) Less than or equal to ((Facing of AssassinTarget) + 55.00)
Then - Actions
Unit - Kill AssassinTarget
Special Effect - Create a special effect attached to the chest (Unexpected type: 'attachpoint') of AssassinTarget using Objects\Spawnmodels\Human\HumanBlood\HumanBloodFootman.mdl
Special Effect - Create a special effect attached to the hand, left (Unexpected type: 'attachpoint') of AssassinTarget using Objects\Spawnmodels\Orc\Orcblood\HeroShadowHunterBlood.mdl
Floating Text - Create floating text that reads |cff800000Successful at (Position of Assassin) with Z offset 0 , using font size 9.00 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Wait 1.00 seconds
Floating Text - Destroy (Last created floating text)
Quest - Display to (All players) the Warning message: ((|cffff0000 + (Name of (Owner of Assassin))) + ( |cffffcc00has assassinated + (|cffff0000 + ((Name of (Owner of AssassinTarget)) + !))))
Else - Actions
Floating Text - Create floating text that reads |cff00CD00Unseccessful! at (Position of Assassin) with Z offset 0 , using font size 9.00 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Wait 1.00 seconds
Floating Text - Destroy (Last created floating text)
Sound - Play FailSound at 65.00 % volume, attached to AssassinTarget
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in (Units within 1250.00 of (Center of (Playable map area)) matching ((Matching unit) Equal to (Random unit from (Units owned by (Picked player)))))) Equal to 0
Then - Actions
Unit - Order (Picked unit) to Move To (Center of (Playable map area))
Else - Actions
Unit - Order (Random unit from (Units owned by (Picked player))) to Undead Banshee - Curse The Ogre 0001 <gen>
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of All buffs considered Magic or physical on The Ogre 0001 <gen> (Include expiration timers, Include auras)) Equal to 0
(Random integer number between 1 and 2) Equal to 1
Then - Actions
Unit - Order (Random unit from (Units owned by (Picked player))) to Neutral - Hurl Boulder The Ogre 0001 <gen>
Artificial Intelligence
Events
Time - Every 0.25 seconds of game time
Conditions
Actions
Player Group - Pick every player in (All players controlled by a Computer player) and do (Actions)
Loop - Actions
If ((Number of units in (Units within 600.00 of (Position of (Random unit from (Units owned by (Picked player).))).)) Greater than 0) then do (Order (Random unit from (Units owned by (Picked player).)) to Move To.((Position of (Random unit from (Units owned by (Picked player).))) offset by 500.00 towards ((Angle from (Position of (Random unit from (Units within 600.00 of (Position of (Random unit from (Units owned by (Picked player).))).))) to (Position of (Random unit from (Units owned by (Picked player).)))) + (Random real number between -45.00 and 45.00)) degrees.)) else do (Do nothing)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in (Units within 4000.00 of (Center of (Playable map area)) matching ((Random unit from (Units owned by (Picked player).)) Equal to (Matching unit)).)) Equal to 0
Then - Actions
Unit - Order (Picked unit) to Move To . (Center of (Playable map area))
Else - Actions
Unit - Order (Random unit from (Units owned by (Picked player).)) to Undead Banshee - Curse . (Random unit from (Units within 600.00 of (Position of (Random unit from (Units owned by (Picked player).))).))
Create
Events
Conditions
Actions
Leaderboard - Create a leaderboard for (All players) titled (|cff77cc00Assassin V. 1.0 + (Day + (String(Day))))
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(((Picked player) slot status) Equal to Is playing) or (((Picked player) controller) Equal to Computer)
Then - Actions
Leaderboard - Add (Picked player) to (Last created leaderboard) with label (Name of (Picked player)) and value 1
Else - Actions
Leaderboard - Show (Last created leaderboard)
Lose Lives
Events
Unit - A unit Dies
Conditions
(Unit-type of (Dying unit)) Equal to |cffff0000A|c00ff8000s|cffffcc00s|cff00CD00a|c000000ffs|c00800080s|cff00CD00i|cffff0000n
Actions
Leaderboard - Change the label for (Owner of (Dying unit)) in (Last created leaderboard) to (|cffCDCDCD<- + ((Name of (Owner of (Dying unit))) + ->))
Leaderboard - Change the value for (Owner of (Dying unit)) in (Last created leaderboard) to 0
Leaderboard - Sort (Last created leaderboard) by Value in Descending order
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in (Units of type |cffff0000A|c00ff8000s|cffffcc00s|cff00CD00a|c000000ffs|c00800080s|cff00CD00i|cffff0000n)) Equal to 1
Then - Actions
Trigger - Run Victory <gen> (ignoring conditions)
Game - Display to (All players) the text: ((Name of (Owner of (Random unit from (Units of type |cffff0000A|c00ff8000s|cffffcc00s|cff00CD00a|c000000ffs|c00800080s|cff00CD00i|cffff0000n)))) + Wins!)
Sound - Play Music[1]
Else - Actions
Victory
Events
Conditions
Actions
Trigger - Turn off (This trigger)
Unit - Unhide Snowman! 0004 <gen>
Game - Display to (All players) for 10000.00 seconds the text: (|cffff0000 + ((Name of (Owner of (Random unit from (Units in (Playable map area) matching (((Unit-type of (Matching unit)) Equal to |cffff0000A|c00ff8000s|cffffcc00s|cff00CD00a|c000000ffs|c00800080s|cff00CD00i|cffff0000n) and (((Random unit from (Units of type |cffff0000A|c00ff8000s|cffffcc00s|cff00CD00a|c000000ffs|c00800080s|cff00CD00i|cffff0000n)) is alive) Equal to True)))))) + |cffffcc00is the winner!))
Sound - Play Kool_and_the_Gang___Celebration__shorter_12sec <gen>
Unit - Move (Random unit from (Units of type |cffff0000A|c00ff8000s|cffffcc00s|cff00CD00a|c000000ffs|c00800080s|cff00CD00i|cffff0000n)) instantly to (Point(-280.00, 545.00)) , facing 90.00 degrees
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Cinematic - Disable user control for (All players) .
Cinematic - Turn cinematic mode On for (All players) over 3.00 seconds
Camera - . Apply . gg_cam_AoA300Dist1600Rot90VictoryCam for (Picked player) over 0 seconds
Camera - . Apply . gg_cam_AoA320Dist1600Rot90VictoryCamBottom for (Picked player) over 2.50 seconds
Wait 3.00 seconds
Game - Defeat (Picked player) with the message: Bye
Wait 4.00 seconds
Camera - . Apply . gg_cam_AoA325Dist1350Rot115VictoryCamRight for (Picked player) over 3.00 seconds
Wait 5.00 seconds
Camera - . Apply . gg_cam_AoA325Dist450Rot45Roll90Z75SnowmanCam for (Picked player) over 5.00 seconds
Wait 1.50 seconds
Camera - Set (Picked player) 's camera Roll to 270.00 over 0.00 seconds
Wait 1.50 seconds
Camera - Set (Picked player) 's camera Roll to 180.00 over 0.00 seconds
Wait 1.50 seconds
Camera - Set (Picked player) 's camera Roll to 0.00 over 0.00 seconds
Wait 2 seconds
Camera - . Apply . gg_cam_AoA315Dist1500Rot270Z270SurpriseCam for (Picked player) over 4.00 seconds
Wait 3.50 seconds
Unit - Order Snowman! 0004 <gen> to Attack . (Random unit from (Random 1 units from (Units of type |cffff0000A|c00ff8000s|cffffcc00s|cff00CD00a|c000000ffs|c00800080s|cff00CD00i|cffff0000n)))
Wait 1.50 seconds
Camera - . Apply . gg_cam_AoA320Dist1300Rot315Z150SurpriseCamRight for (Picked player) over 3.00 seconds
Morning
Events
Game - The in-game time of day becomes Equal to 6.00
Conditions
Actions
Game - Display to (All players) for 5.00 seconds the text: |cffffcc00The sun rises...
Set Variable Set Day = (Day + 1)
Game - Display to (All players) the text: (|cffffcc00Day + ((String(Day)) + .))
Night
Events
Game - The in-game time of day becomes Equal to 18.00
Conditions
Actions
Game - Display to (All players) for 5.00 seconds the text: |cffffcc00The moon divulges...
Ping
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units in (Entire map) matching (((Unit-type of (Matching unit)) Equal to |cffff0000A|c00ff8000s|cffffcc00s|cff00CD00a|c000000ffs|c00800080s|cff00CD00i|cffff0000n) and (((Matching unit) is alive) Equal to True))) and do (Actions)
Loop - Actions
Cinematic - Ping minimap for (All players) at (Position of (Picked unit)) for 1.00 seconds, using a Simple ping of color ( 70.00 %, 15.00 %, 85.00 %)
Esc
Events
Player - Player 1 (Red) skips a cinematic sequence
Conditions
Actions
Game - Victory Player 1 (Red) ( Skip dialogs, Skip scores)
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.