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
Assasin Wars 1.21.w3x
Variables
Spell
Power Blading
Power Blading 2
Respawn
Revive Hero
Spell2
Dash1
Dash2
Leader
Kills
Kill2
k2
LEAVER
Respawn Creep
Respawn
Music
m
Game
Text
gaME2
Bounty
Bounty
Move
Move Hero
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
Angle
location
No
Dasher
unit
No
Kills
integer
Yes
Kn_Caster
unit
No
Leaderboard
leaderboard
No
Units
group
No
X
integer
No
Power Blading
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Power Blading
Actions
Set Variable Set Kn_Caster = (Triggering unit)
Set Variable Set Angle = (Position of Kn_Caster)
Unit - Hide Kn_Caster
Set Variable Set Units = (Units within 200.00 of (Position of Kn_Caster).)
Unit - Unhide Kn_Caster
Selection - Add Kn_Caster to selection
Trigger - Turn on Power_Blading_2 <gen>
Animation - Play Kn_Caster 's attack walk stand spin animation
Wait 1.00 seconds
Trigger - Turn off Power_Blading_2 <gen>
Power Blading 2
Events
Time - Every 0.04 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in Units and do (Actions)
Loop - Actions
Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by 18.00 towards (Angle from Angle to (Position of (Picked unit))) degrees.)
Special Effect - Create a special effect attached to the chest (Unexpected type: 'attachpoint') of (Picked unit) using Abilities\Spells\Orc\MirrorImage\MirrorImageDeathCaster.mdl
My code waits five seconds per hero level. To change the time a hero revivs, change the line that says:
-set HEROWAIT = ( GetHeroLevel(OURHERO) * 5 )
-To change the location your hero is revived at, create a new emtpy trigger with just the REVIVE line.
-Then convert the temp trigger to custom text, copy your line, and paste it.
-After pasting, change the first item to OURHERO just like mine has.
-We use CUSTOM TEXT to give us our local variables. That way, multiple creeps can revive without variables overwriting themselves.
Revive Hero
Events
Unit - A unit Dies
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Custom script: local timerdialog WINDOW
Custom script: local integer HEROWAIT
Custom script: local timer OURTIMER
Custom script: local unit OURHERO
Custom script: set OURHERO = GetDyingUnit()
Custom script: set HEROWAIT = ( GetHeroLevel(OURHERO) * 5 )
Special Effect - Create a special effect at (Position of Dasher) using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
Unit - Cause Dasher to damage circular area after 0 seconds of radius 180.00 at (Position of Dasher) , dealing 20.00 damage of attack type Spells and damage type Normal
Trigger - Turn off Dash2 <gen>
Unit - Make Dasher Vulnerable
Dash2
Events
Time - Every 0.02 seconds of game time
Conditions
Actions
Unit - Move Dasher instantly to ((Position of Dasher) offset by 40.00 towards (Facing of Dasher) degrees.)
Kills
Events
Unit - A unit Dies
Conditions
((Dying unit) is A Hero) Equal to True
Actions
Set Variable Set X = (Player number of (Owner of (Killing unit)))
Set Variable Set Kills[X] = (Kills[X] + 1)
Leaderboard - Change the value for (Owner of (Killing unit)) in Leaderboard to Kills[X]
Kill2
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Leaderboard - Create a leaderboard for (All players) titled Kills
Set Variable Set Leaderboard = (Last created leaderboard)
Player Group - Pick every player in (All players matching (((Picked player) slot status) Equal to Is playing).) and do (Actions)
Loop - Actions
Leaderboard - Add (Picked player) to Leaderboard with label (Name of (Picked player)) and value 0
Leaderboard - Show Leaderboard
k2
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Leaderboard - Add Player 1 (Red) to (Last created leaderboard) with label (Name of (Picked player)) and value 0
Leaderboard - Add Player 2 (Blue) to (Last created leaderboard) with label (Name of (Picked player)) and value 0
Leaderboard - Add Player 3 (Teal) to (Last created leaderboard) with label (Name of (Picked player)) and value 0
Leaderboard - Add Player 4 (Purple) to (Last created leaderboard) with label (Name of (Picked player)) and value 0
Leaderboard - Add Player 5 (Yellow) to (Last created leaderboard) with label (Name of (Picked player)) and value 0
Leaderboard - Add Player 6 (Orange) to (Last created leaderboard) with label (Name of (Picked player)) and value 0
Leaderboard - Add Player 7 (Green) to (Last created leaderboard) with label (Name of (Picked player)) and value 0
Leaderboard - Add Player 8 (Pink) to (Last created leaderboard) with label (Name of (Picked player)) and value 0
Leaderboard - Add Player 9 (Gray) to (Last created leaderboard) with label (Name of (Picked player)) and value 0
LEAVER
Events
Player - Player 1 (Red) leaves the game
Player - Player 2 (Blue) leaves the game
Player - Player 3 (Teal) leaves the game
Player - Player 4 (Purple) leaves the game
Player - Player 5 (Yellow) leaves the game
Player - Player 6 (Orange) leaves the game
Player - Player 7 (Green) leaves the game
Player - Player 8 (Pink) leaves the game
Player - Player 9 (Gray) leaves the game
Conditions
Actions
Respawn
Events
Unit - A unit owned by Player 12 (Brown) . Dies
Conditions
Actions
Wait 60.00 seconds
Unit - Create 1 . (Unit-type of (Dying unit)) for Player 12 (Brown) at (Position of (Dying unit)) facing Default building facing degrees
m
Events
Time - Elapsed game time is 5 seconds
Conditions
Actions
Sound - Play war3mapImported\Let The Bodies Hit The Floor (Lyrics).mp3 (Unexpected type: 'musictheme') .
Text
Events
Time - Elapsed game time is 2.00 seconds
Conditions
Actions
Game - Display to (All players) the text: |c0000ffccWELCOME TO ASSASIN WARS BY GUZOLINI6Objectives:DESTROY ENEMY BASES!I hope you enjoy your gameplay!HOTKEYS:Q for Power Blading,W for Dash and E for Shuriken!|r
gaME2
Events
Map initialization
Conditions
Actions
Melee Game - Enforce victory/defeat conditions (for all players)
Bounty
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Player - Add 5 to (Picked player) . Current gold
Move Hero
Events
Time - Elapsed game time is 1.00 seconds
Unit - A unit enters (Playable map area)
Conditions
Actions
Unit - Move (Triggering unit) instantly to ((Owner of (Triggering unit)) start location)
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.