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
(2)secretvalley.w3x
Variables
Initialization
README
Credits 1
Credits 2
Credits 3
Melee Initialization
ManapureInit
MPInit
MPInitLore
ManapureAbilities
Structure Abilities
MPBuilding
MPGuardian
MPHarvestGold
MPHarvestGoldCancel
MPHarvestGoldSelect
MPHarvestGoldLoop
MPHarvestGoldCheck
MPHarvestWoodSetup
MPHarvestWood
MPManaShop
Unit Abilities
MPBorrow
MPSteal
MPConvert
MPDeconstruct
MPHeal
MPDischarge
MPDischargeAuto
MPAutoShield
MPHostOfAstral
Hero Abilities
MPHeroManaspawn
MPHeroSpectralRise
MPHeroSpectralReturn
MPHeroMothersLove
MPHeroEnvy
MPHeroDifference
MPHeroManaOrbs
MPHeroManaOrbsAttack
MPHeroManaSphere
Item Abilities
MPManaSphere
ManapureOther
MPCommandShipyard
MPBlueSpirit
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
mp_tmp_float
real
No
mp_tmp_group
group
No
mp_tmp_group2
group
No
mp_tmp_player_group
force
No
mp_tmp_point
location
No
mp_tmp_point2
location
No
mp_tmp_region
rect
No
mp_tmp_unit
unit
No
Entry for the HIVE's "Techtree Contest #17 - Swarm" - Manapure by Ceterai
All race-related triggers are stored in the folders with a "Manapure" prefix.
All race-related triggers have a "MP" prefix.
All race-related variables have a "mp_" prefix.
alfredx_sotn - WaterElemental (Fountain Guardian) - https://www.hiveworkshop.com/threads/waterelemental.47544/
-Grendel - Assailant Spire (Magic Spire) - https://www.hiveworkshop.com/threads/assailant-spire.201264/
kangyun - Archmage Aethas (Artist of the Enchanted) - https://www.hiveworkshop.com/threads/archmage-aethas.285634/
PROXY - Hero_Huntress (Protector) - https://www.hiveworkshop.com/threads/hero_huntress.238378/
PROXY - Dael'Barun the Guardian (Librarian) - https://www.hiveworkshop.com/threads/daelbarun-the-guardian.175285/
Tranquil - Generators - Magic Orb (Mana Generator) - https://www.hiveworkshop.com/threads/generators.277141/
Ujimasa Hojo - Barrow Den and Derivatives (Harvester) - https://www.hiveworkshop.com/threads/barrow-den-and-derivatives.229880/
Ujimasa Hojo - Mage Tower and Derivatives (Enchanted Temple) - https://www.hiveworkshop.com/threads/mage-tower-and-derivatives.224835/
Ujimasa Hojo - Roost (Chimaera) and Derivatives (Thunder Pillar) - https://www.hiveworkshop.com/threads/roost-chimaera-and-derivatives.237465/
Ujimasa Hojo - Shipyard (Night Elf) and Derivatives (Manapure Shipyard) - https://www.hiveworkshop.com/threads/shipyard-night-elf-and-derivatives.230445/
Ujimasa Hojo - Altar of Kings and Derivarives (Altar of Magic) - https://www.hiveworkshop.com/threads/altar-of-kings-and-derivarives.233461/
xYours Trulyx - Sentinel Shrine (Mana Well) - https://www.hiveworkshop.com/threads/sentinel-shrine.324442/
Icons:
Artork312 - BTNWC1WaterElementalRemastered (Energy Sphere) - https://www.hiveworkshop.com/threads/btnwc1waterelementalremastered.325824/
Blizzard Entertainment - Fade Bolt (Lifesteal) - https://www.hiveworkshop.com/threads/fade-bolt.311711/
Blizzard Entertainment - Spell Steal (Spellsteal) - https://www.hiveworkshop.com/threads/spell-steal.311713/
Blizzard Entertainment - Arcane Barrage (Enchanted Spells) - https://www.hiveworkshop.com/threads/arcane-barrage.307419/
EternalOne - Blink (Remnant) - https://www.hiveworkshop.com/threads/blink.329283/
IanMarty - Thunder Lance (Upgrade) (Adept Thunder Training) - https://www.hiveworkshop.com/threads/thunder-lance-upgrade.326557/
maddeem - Mana Gem (Enchanted Materials) - https://www.hiveworkshop.com/threads/mana-gem.326123/
Murlocologist - Death Knight (Wither) - https://www.hiveworkshop.com/threads/death-knight.329910/
MyPad - Orb Generator (Mana Generator) - https://www.hiveworkshop.com/threads/orb-generator.318986/
Mythic - Shadow Orb (Aura of Purity) - https://www.hiveworkshop.com/threads/shadow-orb.314782/
rept - Dark Enhancement (Spectral Shield) - https://www.hiveworkshop.com/threads/dark-enhancement.320058/
Sun gate - Wave of Terror (Spectral Return) - https://www.hiveworkshop.com/threads/wave-of-terror.326520/
Sun gate - Nether Swap (Spectral Rise) - https://www.hiveworkshop.com/threads/nether-swap.326522/
Sun gate - Vengeance Aura (Manaburn, Manasteal) - https://www.hiveworkshop.com/threads/vengeance-aura.326521/
Sun gate - Mana Break (Spectral Bounds) - https://www.hiveworkshop.com/threads/mana-break.326528/
Icons 2:
Darkfang - Destroyer Orb (Fountain Guardian) - https://www.hiveworkshop.com/threads/destroyer-orb.320134/
Darkfang - Feral Spirit Ultimate (Wolf Form) - https://www.hiveworkshop.com/threads/feral-spirit-ultimate.306028/
PrinceYaser - BTNMoongladeArmor (Enchanted Protection) - https://www.hiveworkshop.com/threads/btnmoongladearmor.308543/
PrinceYaser - BTNSteelArmor (Spectral Protection) - https://www.hiveworkshop.com/threads/btnsteelarmor.308781/
San - Void Reflection (Envy) - https://www.hiveworkshop.com/threads/void-reflection.308749/
San - Nucleus (Magic Signal) - https://www.hiveworkshop.com/threads/nucleus.308802/
The Panda - BTNPlasmaBarrage (Spectral Spells) - https://www.hiveworkshop.com/threads/btnplasmabarrage.327884/
The Panda - BTNFairyWings (Call of the Wild) - https://www.hiveworkshop.com/threads/btnfairywings.307573/
The Panda - BTNLightningOrb (Overload) - https://www.hiveworkshop.com/threads/btnlightningorb.305956/
The Panda - BTNEvolveExplode (Insensetivity) - https://www.hiveworkshop.com/threads/btnevolveexplode.308486/
The Panda - BTNEternalCombustion (Mother's Love) - https://www.hiveworkshop.com/threads/btneternalcombustion.312922/
All other icons were made either by me, or by BE.
Default melee game initialization for all players
Melee Initialization
Events
Map initialization
Conditions
Actions
Melee Game - Use melee time of day (for all players)
Melee Game - Limit Heroes to 1 per Hero-type (for all players)
Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)
Melee Game - Set starting resources (for all players)
Melee Game - Remove creeps and critters from used start locations (for all players)
Melee Game - Create starting units (for all players)
Melee Game - Run melee AI scripts (for computer players)
Trigger - Run MPInit <gen> (checking conditions)
Main initialization trigger for the Manapure race.
This is the only trigger that needs to be called in the init script.
MPInit
Events
Conditions
Actions
Set Variable Set mp_tmp_player_group = (All players matching ((((Matching player) controller) Equal to User) and ((Race of (Matching player)) Equal to Night Elf)).)
Player Group - Pick every player in mp_tmp_player_group and do (Actions)
Loop - Actions
Set Variable Set mp_tmp_group = (Units owned by (Picked player) of type Tree of Life)
Unit Group - Pick every unit in mp_tmp_group and do (Actions)
Loop - Actions
Unit - Replace (Picked unit) with a Pure Mana Fountain (Manapure) using The old unit's relative life and mana
Set Variable Set mp_tmp_point = (Position of (Picked unit))
Set Variable Set mp_tmp_point2 = (mp_tmp_point offset by (0, -100.00))
Unit - Create 1 . Manaspawn (Manapure) for (Picked player) at mp_tmp_point2 facing Default building facing degrees
Trigger - Run MPInitLore <gen> (checking conditions)
This trigger adds lore to the quest section. Because why not.
MPInitLore
Events
Conditions
Actions
Quest - Create a Required quest titled Manapure with the description Welcome! This map is an entry for the HIVE's 17th Techtree contest. Enjoy!Listed above are some useful tips for you. Good Luck! , using icon path ReplaceableTextures\CommandButtons\BTNAvengingWatcher2.blp
Quest - Create a quest requirement for (Last created quest) with the description all units can exchange their mana (D)
Quest - Create a quest requirement for (Last created quest) with the description gold is harvested through main building
Quest - Create a quest requirement for (Last created quest) with the description wood - through manaspawns (trained in harvester)
Quest - Create a quest requirement for (Last created quest) with the description captured 2nd mine? Buy an Ivory Well in Manashop!
Quest - Create a Optional quest titled Manapure Lore with the description A brief lore of the race:In the depths of subterranian abyss, deep under the grounds of Dalaran, rests the slowly growing outcome of pure magic energy overflows from the surface, with its excesses slowly soaking into the ground, bonding, intertwining, and saturating the abyss with pure mana.This mixture of remnants of spells and auras, so dense and unpredictable, is what was the birth of Pure Mana.And after years of silent growing, becoming stronger with each spell, it can no longer be contained by the underground spaces it occupied. It has to grow and expand past its home, it has to go to the surface.And everyone in its path will either kneel or fall, be purified or turned into dust... , using icon path ReplaceableTextures\CommandButtons\BTNSorceressMaster.blp
Listed below are triggers related to buildings and building abilities.
The trigger for the building ability of manapure structures.
MPBuilding
Events
Unit - A unit Is issued an order targeting a point
Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of (Ordered unit)) Equal to Pure Mana Fountain (Manapure)
(Unit-type of (Ordered unit)) Equal to Pure Mana Geyser (Manapure)
(Unit-type of (Ordered unit)) Equal to Pure Mana Fall (Manapure)
(Unit-type of (Ordered unit)) Equal to Mana Well (Manapure)
Or - Any (Conditions) are true
Conditions
(Issued order) Equal to (Order(custom_n00A))
(Issued order) Equal to (Order(custom_n00B))
(Issued order) Equal to (Order(custom_n00C))
(Issued order) Equal to (Order(custom_e00A))
(Issued order) Equal to (Order(custom_e002))
(Issued order) Equal to (Order(custom_e007))
(Issued order) Equal to (Order(custom_h007))
(Issued order) Equal to (Order(custom_h006))
(Issued order) Equal to (Order(custom_h005))
(Issued order) Equal to (Order(custom_h002))
(Issued order) Equal to (Order(custom_h001))
Actions
Set Variable Set mp_tmp_point = (Position of (Ordered unit))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Ordered unit)) Equal to Mana Well (Manapure)
Then - Actions
Set Variable Set mp_tmp_region = (Region centered at mp_tmp_point with size (1800.00, 1800.00))
Else - Actions
Set Variable Set mp_tmp_region = (Region centered at mp_tmp_point with size (2400.00, 2400.00))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(mp_tmp_region contains (Target point of issued order)) Equal to True
Then - Actions
Unit - Create 1 . Building (Dummy) (Manapure) for (Owner of (Ordered unit)) at (Target point of issued order) facing Default building facing degrees
Wait 0.01 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Issued order) Equal to (Order(custom_n00A))
Then - Actions
Unit - Order (Last created unit) to build a Pure Mana Fountain (Manapure) at (Target point of issued order)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Issued order) Equal to (Order(custom_e002))
Then - Actions
Unit - Order (Last created unit) to build a Thunder Pillar (Manapure) at (Target point of issued order)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Issued order) Equal to (Order(custom_h006))
Then - Actions
Unit - Order (Last created unit) to build a Harvester (Manapure) at (Target point of issued order)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Issued order) Equal to (Order(custom_h002))
Then - Actions
Unit - Order (Last created unit) to build a Mana Generator (Manapure) at (Target point of issued order)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Issued order) Equal to (Order(custom_n00C))
Then - Actions
Unit - Order (Last created unit) to build a Enchanted Temple (Manapure) at (Target point of issued order)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Issued order) Equal to (Order(custom_h001))
Then - Actions
Unit - Order (Last created unit) to build a Mana Well (Manapure) at (Target point of issued order)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Issued order) Equal to (Order(custom_h005))
Then - Actions
Unit - Order (Last created unit) to build a Altar Of Magic (Manapure) at (Target point of issued order)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Issued order) Equal to (Order(custom_h007))
Then - Actions
Unit - Order (Last created unit) to build a Manashop (Manapure) at (Target point of issued order)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Issued order) Equal to (Order(custom_n00B))
Then - Actions
Unit - Order (Last created unit) to build a Manatower (Manapure) at (Target point of issued order)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Issued order) Equal to (Order(custom_e00A))
Then - Actions
Unit - Order (Last created unit) to build a Manapure Shipyard (Manapure) at (Target point of issued order)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Issued order) Equal to (Order(custom_e007))
Then - Actions
Unit - Order (Last created unit) to build a Magic Spire (Manapure) at (Target point of issued order)
Else - Actions
Wait 0.50 seconds
Unit - Remove (Random unit from (Units owned by (Owner of (Ordered unit)) of type Building (Dummy) (Manapure))) from the game
Unit - Add a 60.00 second Generic expiration timer to (Last created unit)
Unit - Order (Attacking unit) to Attack . (Last created unit)
Unit - Set the custom value of (Attacked unit) to 1
Wait 180.00 seconds
Unit - Set the custom value of (Attacked unit) to 0
Trigger for the gold harvesting ability.
MPHarvestGold
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Harvest gold (Manapure)
Actions
Set Variable Set mp_tmp_point = (Position of (Triggering unit))
Set Variable Set mp_tmp_region = (Region centered at mp_tmp_point with size (2000.00, 2000.00))
Set Variable Set mp_tmp_group = (Units in mp_tmp_region matching (((Unit-type of (Matching unit)) Equal to Gold Mine) and (((Matching unit) is alive) Equal to True)))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in mp_tmp_group) Greater than 0
Then - Actions
Set Variable Set mp_tmp_point2 = (Position of (Random unit from mp_tmp_group))
Set Variable Set mp_tmp_group2 = (Units within 100.00 of mp_tmp_point2 matching ((Unit-type of (Matching unit)) Equal to Goldmine (Dummy) (Manapure)).)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in mp_tmp_group2) Equal to 0
Then - Actions
Unit - Remove Harvest gold (Manapure) from (Casting unit)
Unit - Add Harvest gold (Loop) (Manapure) to (Triggering unit)
Unit - Create 1 . Goldmine (Dummy) (Manapure) for Neutral Passive at mp_tmp_point2 facing Default building facing degrees
Unit - Set the custom value of (Last created unit) to (Player number of (Owner of (Triggering unit)))
Unit - Order (Triggering unit) to Human Dragonhawk Rider - Aerial Shackles . (Last created unit)
Trigger that restores fountain to normal after harvesting.
MPHarvestGoldCancel
Events
Unit - A unit Is issued an order targeting a point
Unit - A unit Is issued an order targeting an object
Unit - A unit Is issued an order with no target
Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of (Ordered unit)) Equal to Pure Mana Fountain (Manapure)
(Unit-type of (Ordered unit)) Equal to Pure Mana Fall (Manapure)
(Unit-type of (Ordered unit)) Equal to Pure Mana Geyser (Manapure)
And - All (Conditions) are true
Conditions
(Issued order) Not equal to (Order(roar))
(Issued order) Not equal to (Order(channel))
(Issued order) Not equal to (Order(magicleash))
Actions
Unit - Remove Harvest gold (Loop) (Manapure) from (Ordered unit)
Unit - Add Harvest gold (Manapure) to (Ordered unit)
Wait 0.25 seconds
Set Variable Set mp_tmp_group = (Units owned by Neutral Passive matching (((Unit-type of (Matching unit)) Equal to Goldmine (Dummy) (Manapure)) and (((Matching unit) has buff Aerial Shackles (Manapure)) Equal to False)).)
Unit Group - Pick every unit in mp_tmp_group and do (Actions)
Set Variable Set mp_tmp_group = (Units of type Goldmine (Dummy) (Manapure))
Unit Group - Pick every unit in mp_tmp_group and do (Actions)
Loop - Actions
Set Variable Set mp_tmp_float = "5.00"
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player((Custom value of (Picked unit)))) Food used) Greater than 80
Then - Actions
Set Variable Set mp_tmp_float = (mp_tmp_float x 0.40)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player((Custom value of (Picked unit)))) Food used) Greater than 50
Then - Actions
Set Variable Set mp_tmp_float = (mp_tmp_float x 0.70)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Current research level of R00J (Unexpected type: 'techcode') for (Player((Custom value of (Picked unit))))) Equal to 2
Then - Actions
Set Variable Set mp_tmp_float = (mp_tmp_float + 1.00)
Else - Actions
Set Variable Set mp_tmp_float = (mp_tmp_float + (Real((Current research level of R00J (Unexpected type: 'techcode') for (Player((Custom value of (Picked unit))))))))
Set Variable Set mp_tmp_point = (Position of (Picked unit))
Set Variable Set mp_tmp_point2 = (mp_tmp_point offset by (-25.00, -25.00))
Floating Text - Create floating text that reads (+ + (String((Integer(mp_tmp_float))))) at mp_tmp_point2 with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 0.00 %), and 25.00 % transparency
Floating Text - Set the velocity of (Last created floating text) to 30.00 towards 90 degrees
Floating Text - Change (Last created floating text) : Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 0.00 seconds
Player - Add (Integer(mp_tmp_float)) to (Player((Custom value of (Picked unit)))) . Current gold
Set Variable Set mp_tmp_group2 = (Units within 100.00 of mp_tmp_point matching ((Unit-type of (Matching unit)) Equal to Gold Mine).)
Neutral Building - Add ((Integer(mp_tmp_float)) x -1) gold to (Random unit from mp_tmp_group2)
Trigger - Run MPHarvestGoldCheck <gen> (checking conditions)
Checks all goldmines, goldmine dummies and fountains and acts depending on their state.
MPHarvestGoldCheck
Events
Conditions
Actions
Set Variable Set mp_tmp_group = (Units in (Playable map area) matching ((((Matching unit) has buff Aerial Shackles (Manapure)) Equal to False) and ((Unit-type of (Matching unit)) Equal to Goldmine (Dummy) (Manapure))))
Unit Group - Pick every unit in mp_tmp_group and do (Actions)
Set Variable Set mp_tmp_group = (Units in (Playable map area) matching ((((Current order of (Matching unit)) Equal to (Order())) and ((Level of Harvest gold (Manapure) for (Matching unit)) Equal to 0)) and ((Unit-type of (Matching unit)) Equal to Pure Mana Fountain (Manapure))))
Unit Group - Pick every unit in mp_tmp_group and do (Actions)
Loop - Actions
Unit - Remove Harvest gold (Loop) (Manapure) from (Picked unit)
Unit - Add Harvest gold (Manapure) to (Picked unit)
Unit - Order (Picked unit) to Night Elf Druid Of The Claw - Roar .
Set Variable Set mp_tmp_group = (Units in (Playable map area) matching ((((Current order of (Matching unit)) Equal to (Order())) and ((Level of Harvest gold (Manapure) for (Matching unit)) Equal to 0)) and ((Unit-type of (Matching unit)) Equal to Pure Mana Geyser (Manapure))))
Unit Group - Pick every unit in mp_tmp_group and do (Actions)
Loop - Actions
Unit - Remove Harvest gold (Loop) (Manapure) from (Picked unit)
Unit - Add Harvest gold (Manapure) to (Picked unit)
Unit - Order (Picked unit) to Night Elf Druid Of The Claw - Roar .
Set Variable Set mp_tmp_group = (Units in (Playable map area) matching ((((Current order of (Matching unit)) Equal to (Order())) and ((Level of Harvest gold (Manapure) for (Matching unit)) Equal to 0)) and ((Unit-type of (Matching unit)) Equal to Pure Mana Fall (Manapure))))
Unit Group - Pick every unit in mp_tmp_group and do (Actions)
Loop - Actions
Unit - Remove Harvest gold (Loop) (Manapure) from (Picked unit)
Unit - Add Harvest gold (Manapure) to (Picked unit)
Unit - Order (Picked unit) to Night Elf Druid Of The Claw - Roar .
Set Variable Set mp_tmp_group = (Units in (Playable map area) matching (((Resource quantity contained in (Matching unit)) Less than or equal to 0) and ((Unit-type of (Matching unit)) Equal to Gold Mine)))
Unit Group - Pick every unit in mp_tmp_group and do (Actions)
Loop - Actions
Unit - Kill (Picked unit)
Set Variable Set mp_tmp_point = (Position of (Picked unit))
Set Variable Set mp_tmp_group2 = (Units within 100.00 of mp_tmp_point matching ((Unit-type of (Matching unit)) Equal to Goldmine (Dummy) (Manapure)).)
Unit - Remove (Random unit from mp_tmp_group2) from the game
The trigger for the Harvester's mana replenishing ability - setting up tracking for the manaspawn.
MPHarvestWoodSetup
Events
Unit - A unit Is issued an order targeting an object
Conditions
(Unit-type of (Triggering unit)) Equal to Manaspawn (Manapure)
(Issued order) Equal to (Order(resumeharvesting))
(Unit-type of (Target unit of issued order)) Equal to Harvester (Manapure)
Actions
Unit - Set the custom value of (Triggering unit) to 1
The trigger for the Harvester's mana replenishing ability.
MPHarvestWood
Events
Unit - A unit Is issued an order targeting an object
Conditions
(Unit-type of (Triggering unit)) Equal to Manaspawn (Manapure)
(Issued order) Equal to (Order(harvest))
(Custom value of (Triggering unit)) Equal to 1
Actions
Unit - Set the custom value of (Triggering unit) to 0
Set Variable Set mp_tmp_point = (Position of (Triggering unit))
Set Variable Set mp_tmp_group = (Units within 250.00 of mp_tmp_point matching ((((Matching unit) belongs to an ally of (Owner of (Triggering unit)).) Equal to True) and ((Unit-type of (Matching unit)) Equal to Harvester (Manapure))).)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in mp_tmp_group) Greater than 0
Then - Actions
Set Variable Set mp_tmp_unit = (Random unit from mp_tmp_group)
Unit - Set mana of mp_tmp_unit to ((Mana of mp_tmp_unit) + 5.00)
Set Variable Set mp_tmp_group = (Units owned by (Owner of (Casting unit)) matching (((Mana of (Matching unit)) Greater than or equal to mp_tmp_float) and ((Unit-type of (Matching unit)) Equal to Faceless Gatherer (Manapure))).)
If ((Number of units in mp_tmp_group) Greater than 0) then do (Set VariableSet mp_tmp_unit = (Random unit from mp_tmp_group)) else do (Do nothing)
Set Variable Set mp_tmp_group = (Units owned by (Owner of (Casting unit)) matching (((Mana of (Matching unit)) Greater than or equal to mp_tmp_float) and ((Unit-type of (Matching unit)) Equal to Manaspawn (Manapure))).)
If ((Number of units in mp_tmp_group) Greater than 0) then do (Set VariableSet mp_tmp_unit = (Random unit from mp_tmp_group)) else do (Do nothing)
Set Variable Set mp_tmp_group = (Units owned by (Owner of (Casting unit)) matching (((Mana of (Matching unit)) Greater than or equal to mp_tmp_float) and ((Unit-type of (Matching unit)) Equal to Pure Mana Geyser (Manapure))).)
If ((Number of units in mp_tmp_group) Greater than 0) then do (Set VariableSet mp_tmp_unit = (Random unit from mp_tmp_group)) else do (Do nothing)
Set Variable Set mp_tmp_group = (Units owned by (Owner of (Casting unit)) matching (((Mana of (Matching unit)) Greater than or equal to mp_tmp_float) and ((Unit-type of (Matching unit)) Equal to Pure Mana Fountain (Manapure))).)
If ((Number of units in mp_tmp_group) Greater than 0) then do (Set VariableSet mp_tmp_unit = (Random unit from mp_tmp_group)) else do (Do nothing)
Set Variable Set mp_tmp_group = (Units owned by (Owner of (Casting unit)) matching (((Mana of (Matching unit)) Greater than or equal to mp_tmp_float) and ((Unit-type of (Matching unit)) Equal to Pure Mana Fall (Manapure))).)
If ((Number of units in mp_tmp_group) Greater than 0) then do (Set VariableSet mp_tmp_unit = (Random unit from mp_tmp_group)) else do (Do nothing)
Set Variable Set mp_tmp_group = (Units owned by (Owner of (Casting unit)) matching (((Mana of (Matching unit)) Greater than or equal to mp_tmp_float) and ((Unit-type of (Matching unit)) Equal to Manashop (Manapure))).)
If ((Number of units in mp_tmp_group) Greater than 0) then do (Set VariableSet mp_tmp_unit = (Random unit from mp_tmp_group)) else do (Do nothing)
Set Variable Set mp_tmp_group = (Units owned by (Owner of (Casting unit)) matching (((Mana of (Matching unit)) Greater than or equal to mp_tmp_float) and ((Unit-type of (Matching unit)) Equal to Mana Well (Manapure))).)
If ((Number of units in mp_tmp_group) Greater than 0) then do (Set VariableSet mp_tmp_unit = (Random unit from mp_tmp_group)) else do (Do nothing)
Set Variable Set mp_tmp_group = (Units owned by (Owner of (Casting unit)) matching (((Mana of (Matching unit)) Greater than or equal to mp_tmp_float) and ((Unit-type of (Matching unit)) Equal to Harvester (Manapure))).)
If ((Number of units in mp_tmp_group) Greater than 0) then do (Set VariableSet mp_tmp_unit = (Random unit from mp_tmp_group)) else do (Do nothing)
Set Variable Set mp_tmp_group = (Units owned by (Owner of (Casting unit)) matching (((Mana of (Matching unit)) Greater than or equal to mp_tmp_float) and ((Unit-type of (Matching unit)) Equal to Fountain Guardian (Manapure))).)
If ((Number of units in mp_tmp_group) Greater than 0) then do (Set VariableSet mp_tmp_unit = (Random unit from mp_tmp_group)) else do (Do nothing)
Listed below are triggers related to heros and hero abilities.
Trigger for Manamother's "Manaspawn" ability.
MPHeroManaspawn
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Manaspawn (Manapure)
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Mana of (Target unit of ability being cast)) Greater than or equal to (45.00 + (5.00 x (Real((Level of (Ability being cast) for (Casting unit))))))
Then - Actions
Unit - Set mana of (Target unit of ability being cast) to ((Mana of (Target unit of ability being cast)) - (45.00 + (5.00 x (Real((Level of (Ability being cast) for (Casting unit)))))))
Set Variable Set mp_tmp_point = (Position of (Target unit of ability being cast))
Unit - Create 1 . Manaspawn (Manapure) for (Owner of (Casting unit)) at mp_tmp_point facing Default building facing degrees
Unit - Add a (15.00 + (15.00 x (Real((Level of (Ability being cast) for (Casting unit)))))) second Generic expiration timer to (Last created unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Target unit of ability being cast) belongs to an ally of (Owner of (Casting unit)).) Equal to False
Then - Actions
Unit - Cause (Casting unit) to damage (Target unit of ability being cast) , dealing (60.00 + (20.00 x (Real((Level of (Ability being cast) for (Casting unit)))))) damage of attack type Spells and damage type Magic
Else - Actions
Trigger for Manamother's "Spectral Rise" ability.
MPHeroSpectralRise
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Spectral Rise (Manapure)
Actions
Set Variable Set mp_tmp_point = (Position of (Casting unit))
Set Variable Set mp_tmp_group = (Units within (300.00 + (200.00 x (Real((Level of (Ability being cast) for (Casting unit)))))) of mp_tmp_point matching (((Unit-type of (Matching unit)) Equal to Manaspawn (Manapure)) and ((Owner of (Matching unit)) Equal to (Owner of (Casting unit)))).)
Unit Group - Pick every unit in mp_tmp_group and do (Actions)
Loop - Actions
Unit - Set mana of (Picked unit) to ((Mana of (Picked unit)) + (10.00 + (10.00 x (Real((Level of (Ability being cast) for (Casting unit)))))))
Trigger for Manamother's "Spectral Return" ability.
MPHeroSpectralReturn
Events
Unit - A unit Dies
Conditions
(Unit-type of (Dying unit)) Equal to Manaspawn (Manapure)
Actions
Set Variable Set mp_tmp_group = (Units owned by (Owner of (Dying unit)) of type Manamother (Manapure))
Unit Group - Pick every unit in mp_tmp_group and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Spectral Return (Manapure) for (Picked unit)) Greater than 0
Then - Actions
Set Variable Set mp_tmp_point = (Position of (Picked unit))
Set Variable Set mp_tmp_region = (Region centered at mp_tmp_point with size ((600.00 + (400.00 x (Real((Level of Spectral Return (Manapure) for (Picked unit)))))), (600.00 + (400.00 x (Real((Level of Spectral Return (Manapure) for (Picked unit))))))))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(mp_tmp_region contains (Dying unit)) Equal to True
Then - Actions
Unit - Set mana of (Picked unit) to ((Mana of (Picked unit)) + (Mana of (Dying unit)))
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (15.00 + (15.00 x (Real((Level of Spectral Return (Manapure) for (Picked unit)))))))
(Ability being cast) Not equal to Borrow (Manapure)
Actions
Set Variable Set mp_tmp_point = (Position of (Casting unit))
Set Variable Set mp_tmp_group = (Units within 700.00 of mp_tmp_point matching ((((Matching unit) belongs to an enemy of (Owner of (Casting unit)).) Equal to True) and ((Unit-type of (Matching unit)) Equal to Wither (Manapure))).)
Unit Group - Pick every unit in mp_tmp_group and do (Actions)
Loop - Actions
Unit - Set mana of (Picked unit) to ((Mana of (Picked unit)) + (5.00 x (Real((Level of Envy (Manapure) for (Picked unit))))))
Unit - Set mana of (Casting unit) to ((Mana of (Casting unit)) - (5.00 x (Real((Level of Envy (Manapure) for (Picked unit))))))
This trigger regens mana for the "Remnant" ability.
MPHeroManaOrbsAttack
Events
Unit - A unit Is attacked
Conditions
(Level of Remnant (Manapure) for (Attacking unit)) Greater than 0
Actions
Set Variable Set mp_tmp_point = (Position of (Attacking unit))
Set Variable Set mp_tmp_group = (Units within 600.00 of mp_tmp_point matching (((Matching unit) belongs to an ally of (Owner of (Attacking unit)).) Equal to True).)
Unit Group - Pick every unit in mp_tmp_group and do (Actions)
Loop - Actions
Unit - Set mana of (Picked unit) to ((Mana of (Picked unit)) + (0.00 + (1.00 x (Real((Level of Remnant (Manapure) for (Attacking unit)))))))
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.