• Check out the results of the Techtree Contest #19!
  • 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Solved] defend+mana shield

Status
Not open for further replies.
Level 13
Joined
Feb 13, 2012
Messages
427
hello i want to combin the "Defend" ability with "Mana Shield" so that when you use "magicel defend" (the name i want to call it) the unit is slowed and the ability cost mana and stopd when the mana is depleted becuas the shilde last as long there is mana and when the unit take dameg when its activ the dameg gos to the mana bar
pleass help
 
Use Mana Shield as the core ability, use triggers to detect when it's turned on/off, and add/remove the Elune's Grace ability in response.

Add the ability when it's turned on:
  • Events
    • Unit - A unit is issued an order with no target
  • Conditions
    • (Issued order) Equal to (Order(manashieldon))
    • (Level of Mana Shield for (Triggering unit) Greater than 0)
  • Actions
    • Unit - Add Elune's Grace to (Triggering unit)
Then remove it once it's turned off:
  • Events
    • Unit - A unit is issued an order with no target
  • Conditions
    • (Issued order) Equal to (Order(manashieldoff))
    • (Level of Mana Shield for (Triggering unit) Greater than 0)
  • Actions
    • Unit - Remove Elune's Grace from (Triggering unit)
Elune's Grace should be able to do everything that Defend can do. To hide Elune's Grace, set it's Art Button positions to 0, -11 (hold shift when opening a field to allow negative values).
 
Last edited:
Use Mana Shield as the core ability, use triggers to detect when it's turned on/off, and add/remove the Elune's Grace abilities in response.

Add the ability when it's turned on:
  • Events
    • Unit - A unit is issued an order with no target
  • Conditions
    • (Issued order) Equal to (Order(manashieldon))
    • (Level of Mana Shield for (Triggering unit) Greater than 1)
  • Actions
    • Unit - Add Elune's Grace to (Triggering unit)
Then remove it once it's turned off:
  • Events
    • Unit - A unit is issued an order with no target
  • Conditions
    • (Issued order) Equal to (Order(manashieldoff))
    • (Level of Mana Shield for (Triggering unit) Greater than 1)
  • Actions
    • Unit - Remove Elune's Grace from (Triggering unit)
Elune's Grace should be able to do everything that Defend can do. To hide Elune's Grace, set it's Art Button positions to 0, -11 (hold shift when opening a field to allow negative values).
thx i will check it out
 
Status
Not open for further replies.
Back
Top