I am trying to get the following script to work:
Scriptname myweaponscript extends activemagiceffect
int weaponvalue = http://forums.bethsoft.com/topic/1351312-script-works-except-for-one-flaw/100
Event OnEffectStart(Actor Target, Actor Caster) ;; script triggers on every hit
weaponvalue = http://forums.bethsoft.com/topic/1351312-script-works-except-for-one-flaw/weaponvalue - 10 ;; on every hit the value has 10 removed from it (this does not happen when it should)
if weaponvalue =http://forums.bethsoft.com/topic/1351312-script-works-except-for-one-flaw/= 0 ;; when the value reaches 0 it executes a command
wepdrop.show() ;; shows a message (property)
endif
EndEvent
The script does exactly what it should do with 1 exeption, on every hit a value (weaponvalue) is supposed to have 10 removed from it (starts at 100) but this doesn't seem to happen, anyone have any ideas why?


