• 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.
  • It's time for the first HD Modeling Contest of 2025. Join the theme discussion for Hive's HD Modeling Contest #7! Click here to post your idea!

ability based off the casters own stats

Status
Not open for further replies.
Level 10
Joined
Apr 3, 2006
Messages
535
Just wondering how you do a spell based off the casters own stats. Eg a spell that recovers 50% of the casters life or mana, rather than a fixed amount
 
  • Trigger
  • Events
    • Unit - A unit starts the effect of an ability
  • Conditions
    • Ability being cast Equal to >Your ability<
  • Actions
    • Unit - Set life of (Triggering unit) to (((Life of (Triggering unit)) + (((Life of (Triggering unit) * 0.5))) - This will recover half of the current health.
    • Unit - Set mana of (Triggering unit) to (((Mana of (Triggering unit)) + (((Mana of (Triggering unit) * 0.5)))
Unit - Set life of (Triggering unit) to (((Max Life of (Triggering unit)) * 0.5) > This will recover the unit's health to 50% of it's max health, though, if the unit has full life, it will damage it instead, so i would use the trigger for recovering half of current health.
 
Level 9
Joined
Dec 4, 2007
Messages
562
This will recover the unit's health to 50% of it's max health, though, if the unit has full life, it will damage it instead.

Lol, that could almost be a nice spell :p except it whould be better like if the target has over 70% hp it will damage the unit, and I know that it is possible to create such spell but you gave me the idea. And still I wont use it :D....Or maybe I did some month ago......anyways.
 
Status
Not open for further replies.
Top