This would not compile, error message "not a spell":
Scroll Property aadpHolyWater Auto
if me.GetEquippedspell(0) != aadpHolyWater
if (me.GetEquippedspell(0) != (aadpHolyWater)as spell)
Spell MyHolyWaterScrollSpell = (MyHolyWaterScroll As Form) As Spell
Spell myHolyWaterScrollSpell = (MyHolyWaterScroll As Form) As Spell
Event OnObjectUnequipped(Form akBaseObject, ObjectReference akReference)if akBaseObject.gettype() == 23 ;-- scroll itemint itemcount = me.getitemcount(akBaseObject)if ItemCount == 1 if me.GetEquippedspell(1) != (aadpHolyWater)as spell) && (me.GetEquippedspell(0) != (aadpHolyWater)as spell) me.RemoveItem(aadpHolyWater) endif elseif iItemCount == 2 if (me.GetEquippedspell(0) != aadpHolyWater) && (me.GetEquippedSpell(1) != aadpHolyWater) me.RemoveItem(aadpHolyWater, 2) elseif (me.GetEquippedspell(0) != aadpHolyWater) || (me.GetEquippedSpell(1) != aadpHolyWater) me.RemoveItem(aadpHolyWater) endif endifendifendevent
Spell Property LeftHandSpell AutoSpell Property RightHandSpell AutoLeftHandSpell = Player.GetEquippedSpell(0)RightHandSpell = Player.GetEquippedSpell(1)Spell MySpell = (MyScroll As Form) As SpellIf LeftHandSpell = MySpell MsgThisWorked.Show()EndIfBut when I tried it in the game, the message showed up no matter what I had in my hand (even if it was empty). That svcks.