- Joined
- Jun 7, 2008
- Messages
- 440
Maker said:You would have to first manually configure the type of each spell. There are three types of spells, point targeted, unit targeted and instant cast. Each requires a different function to be called.
You could store the spell type or function to call into a hashtable and then load it when needed. Use the ability id as parent key.
I had asked a question a while back (Is there a way to get a dummy unit to cast a spell that a random enemy unit casts at it?),to which Maker responded with the quote above. My question is; How do you call the ability id (or the string order for that matter) after it is stored inside the hashtable? There are over 300 possible abilties able to be cast. Thanks again.