• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[Solved] defend+mana shield

Status
Not open for further replies.
Level 12
Joined
Feb 13, 2012
Messages
403
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 64
Joined
Aug 10, 2018
Messages
6,577
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
403
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