script on Bound Armor
Posted: Sun Aug 09, 2009 1:23 pm
I'm having trouble with what I thought was going to be a simple check to see if bound armor pieces were equipped or not, but it doesn't appear that the script is activating at all when (in this case) the Bound Helm spell is cast. The script is attached to ID: bound_helm.
I figure that there would be trouble with the "not equipped" message box because the Bound Helm evaporates when the spell effect ends, but I should at least have gotten the "is equipped" message.
Begin BoundHelmCheckshort OnPCEquipshort doOnceshort doTwiceif ( OnPCEquip ) if ( doOnce < 1 ) set doOnce to 1 set doTwice to 0 messagebox "Bound Helm is equipped" endifelseif ( doTwice < 1 ) set doOnce to 0 set doTwice to 1 messagebox "Bound Helm is not equipped"endifEnd BoundHelmCheck
I figure that there would be trouble with the "not equipped" message box because the Bound Helm evaporates when the spell effect ends, but I should at least have gotten the "is equipped" message.