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

Get Order of Ability

Status
Not open for further replies.
Level 14
Joined
Apr 20, 2009
Messages
1,543
Can you get the order string of an ability through RAW?

I need to link ability RAW codes so that units can cast a spell towards a target by using RAW instead of order strings.
I'm thinking about an inituitive system that allows custom virtual non existing items to cause a unit to cast spells.

Does anyone have a good idea on how to approach this?
I could use the order string as parameter for my function, but that will be less user friendly.
 
Level 14
Joined
Apr 20, 2009
Messages
1,543
well yeah, I suppose I could use:
JASS:
GetObjectName()
But then I am limited in having custom ability names, which is quite a drawback I suppose.

Either ways, this problem is not a necessity anymore for me because I decided to take a different approach to my system. Instead of using something like the phoenix fire ability (which adds attacks to the carrier of an item), my intention was to create a item which could cause the unit to cast any custom abilities with an interval instead. My new approach will use dummy units that have and casts these ability's instead of the carrier of the item with auto-casting.

I also wanted to add these items virtually to my inventory system, which is why I wanted to add any spell RAW code to the struct of the virtual item in order to cast them all separately with an interval.
But since I'm now using dummy units for each individual spell it's not necessary for me anymore to do anything inside the inventory system with the towers. Since all they need to do is display some simple data like the name of the item and what it does etc...
Adding RAW codes of abilities is of no use to me anymore.

Thanks for the idea though gorillabull! +rep
 
Status
Not open for further replies.
Top