Difference between revisions of "Questions"

Jump to navigation Jump to search
489 bytes added ,  20:03, 12 June 2006
imported>Omzy
imported>Jduvall
Line 795: Line 795:


Using IsSpellTarget not only requires the ID of the spell within the command itself, but only returns whether or not the player is being affected by the specified spell. I suppose I could write if/then statements for every single spell, but that would be very time consuming, as there are some few hundred spells. Also, this would only allow my mod to work for spells that are already created. I'm thinking of using an OnMagicEffectHit block with no specified spellID, but I've been stumped at what kind of code I would need to put inside to find the spellID. --[[User:Omzy|Omzy]] 15:27, 12 June 2006 (EDT)
Using IsSpellTarget not only requires the ID of the spell within the command itself, but only returns whether or not the player is being affected by the specified spell. I suppose I could write if/then statements for every single spell, but that would be very time consuming, as there are some few hundred spells. Also, this would only allow my mod to work for spells that are already created. I'm thinking of using an OnMagicEffectHit block with no specified spellID, but I've been stumped at what kind of code I would need to put inside to find the spellID. --[[User:Omzy|Omzy]] 15:27, 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)
Anonymous user

Navigation menu