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

[General] detecting mana reduction

Status
Not open for further replies.
Level 4
Joined
May 21, 2015
Messages
70
is there any triggers or events that can detect mana reduction for example... 100 mana - 25 mana = 75 mana.. i want to detect the 25 mana.
 
Level 24
Joined
Aug 1, 2013
Messages
4,658
You are able to do this by calculating the difference between before and after cast.
What you have to do is start a timer that expires in 0 seconds on the event "A unit starts the effect of an ability".

When that timer expires, the mana has been taken, when you start that timer, the mana is not yet taken.
So you will store the mana amount when the timer starts and calculate the difference when it expires.

JASS is much more powerfull with timers than GUI can in its current state.
Do you have any experience with JASS?
 
Status
Not open for further replies.
Top