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
XMEN2.w3x
Variables
Beginnin Triggas
Initial Visibility
Pick XMEN
Angel
Iceman
Nightcrawler
Storm
Jean Grey
Rogue
Cyclops
Wolverine
Pick BROTHERHOOD
Quicksilver
Sabertooth
Avalanche
Pyro
Blob Toad
Magneto
Mystique
Gambit
Mutant Powers
Ice Armor
Armor Ender
Rogue Target
Rogue Cast
Rogue Ender
Gambit Target
Gambit Cast
Gambit Blow
Bite
Game Triggers
Onslaught Revive
Xavier Revive
Magneto Revive
Human Revive
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
Gambitboom
unit
No
GambitDamage
real
No
600.00
GambitTarget
unit
No
GamitObjects
group
No
IceTimer
timer
No
RogueNumber
integer
No
0
Roguetarget
unit
No
RogueTimer
timer
No
Initial Visibility
Events
Map initialization
Conditions
Actions
Game - Turn the day/night cycle On
Game - Set time of day speed to 175.00 % of the default speed
Player Group - Pick every player in (All players matching ((Matching player) Not equal to Player 12 (Brown)).) and do (Create an initially Enabled visibility modifier for (Picked player) emitting Visibility across Visibility_XMEN <gen>)
Player Group - Pick every player in (All players) and do (Make (Picked player) Heroes gain 300.00% experience from future kills)
Game - Display to (All players) for 30 seconds the text: The |c00FF0000X|r-|c000000FFMEN|r RevolutionBy Gregon and Illidan[Naga]Have Fun!
Angel
Events
Unit - A unit enters Angel <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to X Gene
Actions
Unit Group - Pick every unit in (Units of type Warren Worthington) and do (Remove (Picked unit) from the game)
Unit - Create 1 . Warren Worthington for (Owner of (Triggering unit)) at (Center of Xavier_School <gen>) facing Default building facing degrees
Unit - Remove (Triggering unit) from the game
Trigger - Turn off (This trigger)
Iceman
Events
Unit - A unit enters Iceman <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to X Gene
Actions
Unit Group - Pick every unit in (Units of type Bobby Drake) and do (Remove (Picked unit) from the game)
Unit - Create 1 . Bobby Drake for (Owner of (Triggering unit)) at (Center of Xavier_School <gen>) facing Default building facing degrees
Unit - Remove (Triggering unit) from the game
Trigger - Turn off (This trigger)
Nightcrawler
Events
Unit - A unit enters Nightcrawler <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to X Gene
Actions
Unit Group - Pick every unit in (Units of type Kurt Wagner) and do (Remove (Picked unit) from the game)
Unit - Create 1 . Kurt Wagner for (Owner of (Triggering unit)) at (Center of Xavier_School <gen>) facing Default building facing degrees
Unit - Remove (Triggering unit) from the game
Trigger - Turn off (This trigger)
Storm
Events
Unit - A unit enters Storm <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to X Gene
Actions
Unit Group - Pick every unit in (Units of type Ororo Monroe) and do (Remove (Picked unit) from the game)
Unit - Create 1 . Ororo Monroe for (Owner of (Triggering unit)) at (Center of Xavier_School <gen>) facing Default building facing degrees
Unit - Remove (Triggering unit) from the game
Trigger - Turn off (This trigger)
Jean Grey
Events
Unit - A unit enters Jean_Grey <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to X Gene
Actions
Unit Group - Pick every unit in (Units of type Jean Grey) and do (Remove (Picked unit) from the game)
Unit - Create 1 . Jean Grey for (Owner of (Triggering unit)) at (Center of Xavier_School <gen>) facing Default building facing degrees
Unit - Remove (Triggering unit) from the game
Trigger - Turn off (This trigger)
Rogue
Events
Unit - A unit enters Rogue <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to X Gene
Actions
Unit Group - Pick every unit in (Units of type Rogue) and do (Remove (Picked unit) from the game)
Unit - Create 1 . Rogue for (Owner of (Triggering unit)) at (Center of Xavier_School <gen>) facing Default building facing degrees
Unit - Remove (Triggering unit) from the game
Trigger - Turn off (This trigger)
Cyclops
Events
Unit - A unit enters Cyclops <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to X Gene
Actions
Unit Group - Pick every unit in (Units of type Scott Summers) and do (Remove (Picked unit) from the game)
Unit - Create 1 . Scott Summers for (Owner of (Triggering unit)) at (Center of Xavier_School <gen>) facing Default building facing degrees
Unit - Remove (Triggering unit) from the game
Trigger - Turn off (This trigger)
Wolverine
Events
Unit - A unit enters Wolverine <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to X Gene
Actions
Unit Group - Pick every unit in (Units of type Logan) and do (Remove (Picked unit) from the game)
Unit - Create 1 . Logan for (Owner of (Triggering unit)) at (Center of Xavier_School <gen>) facing Default building facing degrees
Unit - Remove (Triggering unit) from the game
Trigger - Turn off (This trigger)
Quicksilver
Events
Unit - A unit enters Quicksilver <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to X Gene
Actions
Unit Group - Pick every unit in (Units of type Pietro Maximoff) and do (Remove (Picked unit) from the game)
Unit - Create 1 . Pietro Maximoff for (Owner of (Triggering unit)) at (Center of Magnetos_Lair <gen>) facing Default building facing degrees
Unit - Remove (Triggering unit) from the game
Trigger - Turn off (This trigger)
Sabertooth
Events
Unit - A unit enters Sabertooth <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to X Gene
Actions
Unit Group - Pick every unit in (Units of type Victor Creed) and do (Remove (Picked unit) from the game)
Unit - Create 1 . Victor Creed for (Owner of (Triggering unit)) at (Center of Magnetos_Lair <gen>) facing Default building facing degrees
Unit - Remove (Triggering unit) from the game
Trigger - Turn off (This trigger)
Avalanche
Events
Unit - A unit enters Avalanche <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to X Gene
Actions
Unit Group - Pick every unit in (Units of type Lance Alvers) and do (Remove (Picked unit) from the game)
Unit - Create 1 . Lance Alvers for (Owner of (Triggering unit)) at (Center of Magnetos_Lair <gen>) facing Default building facing degrees
Unit - Remove (Triggering unit) from the game
Trigger - Turn off (This trigger)
Pyro
Events
Unit - A unit enters Pyro <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to X Gene
Actions
Unit Group - Pick every unit in (Units of type John Allerdyce) and do (Remove (Picked unit) from the game)
Unit - Create 1 . John Allerdyce for (Owner of (Triggering unit)) at (Center of Magnetos_Lair <gen>) facing Default building facing degrees
Unit - Remove (Triggering unit) from the game
Trigger - Turn off (This trigger)
Blob Toad
Events
Unit - A unit enters ToadBlob <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to X Gene
Actions
Unit Group - Pick every unit in (Units of type Fred Dukes) and do (Remove (Picked unit) from the game)
Unit Group - Pick every unit in (Units of type Todd Tolensky) and do (Remove (Picked unit) from the game)
Unit - Create 1 . Todd Tolensky for (Owner of (Triggering unit)) at (Center of Magnetos_Lair <gen>) facing Default building facing degrees
Unit - Remove (Triggering unit) from the game
Trigger - Turn off (This trigger)
Magneto
Events
Unit - A unit enters Magneto <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to X Gene
Actions
Unit Group - Pick every unit in (Units of type Eric Lensher) and do (Remove (Picked unit) from the game)
Unit - Create 1 . Eric Lensher for (Owner of (Triggering unit)) at (Center of Magnetos_Lair <gen>) facing Default building facing degrees
Hero - Create Magneto's Helm and give it to (Last created unit)
Unit - Remove (Triggering unit) from the game
Trigger - Turn off (This trigger)
Mystique
Events
Unit - A unit enters Collosus <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to X Gene
Actions
Unit Group - Pick every unit in (Units of type Piotr Rasputin) and do (Remove (Picked unit) from the game)
Unit - Create 1 . Piotr Rasputin for (Owner of (Triggering unit)) at (Center of Magnetos_Lair <gen>) facing Default building facing degrees
Unit - Remove (Triggering unit) from the game
Trigger - Turn off (This trigger)
Gambit
Events
Unit - A unit enters Gambit <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to X Gene
Actions
Unit Group - Pick every unit in (Units of type Remy Lebeau) and do (Remove (Picked unit) from the game)
Unit - Create 1 . Remy Lebeau for (Owner of (Triggering unit)) at (Center of Magnetos_Lair <gen>) facing Default building facing degrees
Unit - Remove (Triggering unit) from the game
Trigger - Turn off (This trigger)
Ice Armor
Events
Unit - A unit Finishes casting an ability
Conditions
(Ability being cast) Equal to Ice Armor
Actions
Animation - Change (Random unit from (Units of type Bobby Drake)) 's vertex coloring to ( 0.00 %, 0.00 %, 100 %) with 55.00 % transparency
Countdown Timer - Start IceTimer as a One-shot timer that will expire in 12.01 seconds
Armor Ender
Events
Time - IceTimer expires
Conditions
Actions
Animation - Change (Random unit from (Units of type Bobby Drake)) 's vertex coloring to ( 100.00 %, 100.00 %, 100 %) with 0.00 % transparency
Rogue Target
Events
Unit - A unit Is issued an order targeting an object
Conditions
(Unit-type of (Triggering unit)) Equal to Rogue
Actions
Set Variable Set Roguetarget = (Target unit of issued order)
Rogue Cast
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Rogue's Touch
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of Roguetarget) is an enemy of (Owner of (Triggering unit)).) Equal to True
Then - Actions
Unit - Set life of Roguetarget to ((Life of Roguetarget) - (50.00 + (50.00 x (Real((Hero level of (Triggering unit)))))))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
RogueNumber Less than 3
Then - Actions
If ((Unit-type of Roguetarget) Equal to Jean Grey) then do (Add Psi Explosion (R) to (Triggering unit)) else do (Do nothing)
If ((Unit-type of Roguetarget) Equal to Ororo Monroe) then do (Add Chain Lightning (R) to (Triggering unit)) else do (Do nothing)
If ((Unit-type of Roguetarget) Equal to Logan) then do (Add Regeneration (R) to (Triggering unit)) else do (Do nothing)
If ((Unit-type of Roguetarget) Equal to Scott Summers) then do (Add Cyclops Beam (R) to (Triggering unit)) else do (Do nothing)
If ((Unit-type of Roguetarget) Equal to Kurt Wagner) then do (Add Teleport (R) to (Triggering unit)) else do (Do nothing)
If ((Unit-type of Roguetarget) Equal to Bobby Drake) then do (Add Frost Blast (R) to (Triggering unit)) else do (Do nothing)
If ((Unit-type of Roguetarget) Equal to Eric Lensher) then do (Add Metal Control (R) to (Triggering unit)) else do (Do nothing)
If ((Unit-type of Roguetarget) Equal to Lance Alvers) then do (Add Earth Crack (R) to (Triggering unit)) else do (Do nothing)
If ((Unit-type of Roguetarget) Equal to Victor Creed) then do (Add Hugeness (R) to (Triggering unit)) else do (Do nothing)
If ((Unit-type of Roguetarget) Equal to John Allerdyce) then do (Add Fire Gust (R) to (Triggering unit)) else do (Do nothing)
If ((Unit-type of Roguetarget) Equal to Remy Lebeau) then do (Add Card Toss (R) to (Triggering unit)) else do (Do nothing)
If ((Unit-type of Roguetarget) Equal to Todd Tolensky) then do (Add Tounge (R) to (Triggering unit)) else do (Do nothing)
If ((Unit-type of Roguetarget) Equal to Fred Dukes) then do (Add Invulnerable Skin (R) to (Triggering unit)) else do (Do nothing)
If ((Unit-type of Roguetarget) Equal to Piotr Rasputin) then do (Add Metal Skin (R) to (Triggering unit)) else do (Do nothing)
If ((Unit-type of Roguetarget) Equal to Metal Piotr Rasputin) then do (Add Metal Skin (R) to (Triggering unit)) else do (Do nothing)
Else - Actions
Set Variable Set RogueNumber = (RogueNumber + 1)
Countdown Timer - Start RogueTimer as a One-shot timer that will expire in 25.00 seconds
Rogue Ender
Events
Unit - A unit Begins casting an ability
Conditions
Discard (R) Equal to (Ability being cast)
Actions
Set Variable Set RogueNumber = "0"
Unit - Remove Cyclops Beam (R) from (Random unit from (Units of type Rogue))
Unit - Remove Chain Lightning (R) from (Random unit from (Units of type Rogue))
Unit - Remove Frost Blast (R) from (Random unit from (Units of type Rogue))
Unit - Remove Metal Control (R) from (Random unit from (Units of type Rogue))
Unit - Remove Psi Explosion (R) from (Random unit from (Units of type Rogue))
Unit - Remove Regeneration (R) from (Random unit from (Units of type Rogue))
Unit - Remove Teleport (R) from (Random unit from (Units of type Rogue))
Unit - Remove Hugeness (R) from (Random unit from (Units of type Rogue))
Unit - Remove Fire Gust (R) from (Random unit from (Units of type Rogue))
Unit - Remove Earth Crack (R) from (Random unit from (Units of type Rogue))
Unit - Remove Card Toss (R) from (Random unit from (Units of type Rogue))
Unit - Remove Invulnerable Skin (R) from (Random unit from (Units of type Rogue))
Unit - Remove Tounge (R) from (Random unit from (Units of type Rogue))
Unit - Remove Metal Skin (R) from (Random unit from (Units of type Rogue))
Special Effect - Create a special effect at (Position of (Random unit from (Units of type Rogue))) using Abilities\Spells\Undead\DeathPact\DeathPactCaster.mdl
Gambit Target
Events
Unit - A unit Is issued an order targeting an object
Conditions
(Unit-type of (Triggering unit)) Equal to Remy Lebeau
Actions
Set Variable Set GambitTarget = (Target unit of issued order)
Gambit Cast
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Charge
Actions
Unit Group - Add GambitTarget to GamitObjects
Unit - Pause GambitTarget
Unit - Add Detonation to GambitTarget
Unit - Make GambitTarget Invulnerable
Animation - Change GambitTarget 's vertex coloring to ( 100 %, 0.00 %, 0.00 %) with 0 % transparency
Special Effect - Create a special effect attached to the torso (Unexpected type: 'attachpoint') of GambitTarget using Abilities\Spells\Orc\LightningShield\LightningShieldBuff.mdx
Gambit Blow
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Detonate (G)
Actions
Unit Group - Pick every unit in GamitObjects and do (Actions)
Loop - Actions
Unit - Unpause (Picked unit)
Unit - Order (Picked unit) to Orc Tauren Chieftain - War Stomp .
Special Effect - Create a special effect at (Position of (Picked unit)) using Objects\Spawnmodels\Other\NeutralBuildingExplosion\NeutralBuildingExplosion.mdx
Wait 0.01 seconds
Unit Group - Pick every unit in GamitObjects and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Bite
Events
Unit - A unit Begins casting an ability
Conditions
((Ability being cast) Equal to Bite (B)) or ((Ability being cast) Equal to Bite (T))
Actions
Animation - Play (Casting unit) 's channel animation
Onslaught Revive
Events
Unit - A unit Dies
Conditions
((Triggering unit) is A Hero) Equal to True
(Unit-type of (Triggering unit)) Equal to Mutant
(Owner of (Triggering unit)) Equal to Player 11 (Dark Green)
(Onslaught HQ 0704 <gen> is alive) Equal to True
Actions
Game - Display to (Player group((Owner of (Triggering unit)))) the text: Your Mutant died,but never fear.The mutant will be revived in 15 seconds.
Wait 15.00 seconds
Camera - Pan camera for (Owner of (Triggering unit)) to (Center of Onslaught_HQ <gen>) over 0 seconds
Hero - Instantly revive (Triggering unit) at (Center of Onslaught_HQ <gen>) , Show revival graphics
Xavier Revive
Events
Unit - A unit Dies
Conditions
((Triggering unit) is A Hero) Equal to True
((Owner of (Triggering unit)) Equal to Player 1 (Red)) or (((Owner of (Triggering unit)) is in (All allies of Player 1 (Red).).) Equal to True)
(Xavier School 0493 <gen> is alive) Equal to True
Actions
Game - Display to (Player group((Owner of (Triggering unit)))) the text: Your Mutant died, but never fear. The mutant will be revived in 15 seconds.
Wait 15.00 seconds
Camera - Pan camera for (Owner of (Triggering unit)) to (Center of Xavier_School <gen>) over 0 seconds
Hero - Instantly revive (Triggering unit) at (Center of Xavier_School <gen>) , Show revival graphics
Magneto Revive
Events
Unit - A unit Dies
Conditions
((Triggering unit) is A Hero) Equal to True
((Owner of (Triggering unit)) Equal to Player 2 (Blue)) or (((Owner of (Triggering unit)) is in (All allies of Player 2 (Blue).).) Equal to True)
(Magneto's Lair 0492 <gen> is alive) Equal to True
Actions
Game - Display to (Player group((Owner of (Triggering unit)))) the text: Your Mutant died, but never fear. The mutant will be revived in 15 seconds.
Wait 15.00 seconds
Camera - Pan camera for (Owner of (Triggering unit)) to (Center of Magnetos_Lair <gen>) over 0 seconds
Hero - Instantly revive (Triggering unit) at (Center of Magnetos_Lair <gen>) , Show revival graphics
Human Revive
Events
Unit - A unit Dies
Conditions
((Triggering unit) is A Hero) Equal to True
(Unit-type of (Triggering unit)) Equal to Nick Fury
(Owner of (Triggering unit)) Equal to Player 12 (Brown)
(Shield Agency HQ 0472 <gen> is alive) Equal to True
Actions
Game - Display to (Player group(Player 12 (Brown))) the text: Colonel Striker died, but never fear. He will be revived in 15 seconds.
Wait 15.00 seconds
Camera - Pan camera for Player 12 (Brown) to (Center of Human_HQ <gen>) over 0 seconds
Hero - Instantly revive (Triggering unit) at (Center of Human_HQ <gen>) , Show revival graphics
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.