• 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.

[Solved] defend+mana shield

Status
Not open for further replies.
Level 12
Joined
Feb 13, 2012
Messages
426
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
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,872
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:
Level 12
Joined
Feb 13, 2012
Messages
426
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.
Top