After a few hours of trials, tribulations, and misreading instructions, I am at a loss of what to do. I've tried the script provided, modifying it, and even other scripts I could find online; but not having the item needed in the inventory doesn't stop the spell from casting, and casting the spell doesn't remove the item from the inventory when it is present. The spell won't deal damage when the needed item isn't present, so that's a plus, but it still isn't what I want from the spell. This is my current script I compiled after finding a similar topic: Scriptname RailgunSpellScript extends activemagiceffect Conditional'Casting this spell removes a gold coin from the player'{Scriptname RailgunSpellScript extends ActiveMagicEffect MiscObject property Gold001 AutoInt GoldCount = akCaster.GetItemCount(Gold001)'if player has 0 gold, spell can't be cast'if GoldCount == 0 akCasster.InterruptCast()else'if spell is cast, remove a gold coin from player inventory' Game.getPlayer().RemoveItem(Gold001, 1)endifEndEvent}