Talk:IsSpellTarget

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search

Any idea why if IsSpellTarget 0100C25A || IsSpellTarget 0100C259 || IsSpellTarget 0100C25C is always returning false for me? The calling object should have at least ONE of those enchantments :/

Oh, and I tried adding the refs, and it just bitched at me. It hates 0100C258 for some strange reason.. --MaXiMiUS 00:42, 13 April 2006 (EDT)

--Mrflippy 00:48, 13 April 2006 (EDT): You should use an actual editor ID in scripts. (Not Form ID)
--MaXiMiUS 13:32, 14 April 2006 (EDT): I tried this, but it still wouldn't work properly, so I just worked around it.
--JOG 18:54, 14 April 2006 (EDT)
The argument is the Editor ID of a spell/potion/enchantment
If player.Isspelltarget StandardBoundArmorBootsNovice
  message "what a nice pair of boots"

IF player.Isspelltarget DrinkAle
  message "BUUURRRP"