Kuraikiba Posted May 30, 2011 Share Posted May 30, 2011 I basically need this script so instead of the spell being added and removed upon being put into and taken out of the inventory, I need the spell to be added only when the item in question is equipped and removed when the item is unequipped. scn AshGhoulRobeScript short hasKey2 Begin GameMode if ( player.GetDead == 0 ) if ( player.getitemcount AshGhoulRobe == 1 ) if ( player.isspelltarget ShaderLichNether == 0 ) player.addspell ShaderLichNether endif elseif ( player.getitemcount AshGhoulRobe == 0 ) if ( player.isspelltarget ShaderLichNether == 1 ) player.removespell ShaderLichNether endif endif endif End Link to comment Share on other sites More sharing options...
fg109 Posted May 30, 2011 Share Posted May 30, 2011 scn AshGhoulRobeScript Begin OnEquip player.addspell ShaderLichNether End Begin OnUnequip player.removespell ShaderLichNether End Link to comment Share on other sites More sharing options...
Kuraikiba Posted May 30, 2011 Author Share Posted May 30, 2011 Oh man, thanks a million! I was having to hide a file from public viewing because of this mess. Link to comment Share on other sites More sharing options...
Recommended Posts