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

[JASS] Retrieve the buff used by an ability ?

Status
Not open for further replies.

Ardenian

A

Ardenian

Can I , using Jass, retrieve what buff is used by a specific ability ?

Example:

Ability X uses buff Y. Y is the buff shown when the ability is casted on a unit

Can I get Y without using globals for Y when X is a global/available value ?
 

Ardenian

A

Ardenian

store the buff ID's in a hashtable for each spell, and then check if the unit has the buff or not.
Yes, that is exactly what I would like to aim for :)

I already have so many things to manually store in globals, I hoped I can retrieve the buff directly from the ability somehow.

I assume it is the same story for ability orders ?
 
Yeah. It is the same way with most object editor data.

Basically, if you want to be able to retrieve some unit-type's data, you would have to store it in a hashtable (with the unit-type as one of the keys). Sadly there isn't an easier way to do it, it is a manual process.

There might have been some utilities in the past to help with this (e.g. one by PurplePoot/BoboTheKodo on wc3c, and perhaps GMSI on wc3c?), but I haven't tried them. Usually you only need to enter it for the characters/spells you actually use in your map.
 
Status
Not open for further replies.
Top