Context: This script is attached to a Magic Effect (Enchantment in this case) and is called whenever the weapon strikes another Actor.
This is the script I'm using: http://pastebin.com/f1QCjP1L
ScriptName YourScript extends WhateverGlobalVariable Property SomeGlobal AutoEvent SomeEvent() If (SomeGlobal.GetValue() == 1) SomeGlobal.SetValue(0) Else;If (SomeGlobal.GetValue() == 0) SomeGlobal.SetValue(1) EndIfEndEvent