Difference between revisions of "Questions"
→Getting the spellID of a spell casted on the player
imported>Jduvall |
imported>Omzy |
||
Line 797: | Line 797: | ||
*I'm still learning myself, but I'm pretty sure there is no way to get a collection of all the spells effecting the player at any given moment (since in 99% of such cases you would be testing it against a specific spell anyway). I'm wondering what you are trying to do generally. There may be some other way to achieve what you are after without getting a list of all the spells affecting the player. What's the end result you are after? [[User:Jduvall|Jduvall]] 20:03, 12 June 2006 (EDT) | *I'm still learning myself, but I'm pretty sure there is no way to get a collection of all the spells effecting the player at any given moment (since in 99% of such cases you would be testing it against a specific spell anyway). I'm wondering what you are trying to do generally. There may be some other way to achieve what you are after without getting a list of all the spells affecting the player. What's the end result you are after? [[User:Jduvall|Jduvall]] 20:03, 12 June 2006 (EDT) | ||
:Well, for now this is a secret project, but for this specific aspect, I need to determine the id of the spell that is casted on the player at the moment it hits. So, basically, I need the id of the spell at the ScriptEffectStart block. I've been pondering whether I should add a script block to every castable spell in the ScriptEffectStart that sets a global variable to a specific number that corresponds with the spell. That would be incredibly time consuming, but I could pay my little brother =P |