VirtualSpace Posted March 6, 2011 Share Posted March 6, 2011 Why doesn't this simple validation check return true? SCN aaaScript REF Target BEGIN ScriptEffectStart SET Target TO GetActionRef IF (Target.IsGuard == 1) Target.Kill ELSE Message "Nope." ENDIF End I use the spell on an Imperial Guard, which of course is of the Guard class, so why won't this script kill the guard? Link to comment Share on other sites More sharing options...
The_Vyper Posted March 6, 2011 Share Posted March 6, 2011 Why doesn't this simple validation check return true? *snip* The problem is most likely due to using GetActionRef, which is mostly just useful in OnTrigger and OnActivate blocks . Try using GetSelf instead, like this: SCN aaaScript REF Target BEGIN ScriptEffectStart SET Target TO GetSelf IF (Target.IsGuard == 1) Target.Kill ELSE Message "Nope." ENDIF End Link to comment Share on other sites More sharing options...
VirtualSpace Posted March 6, 2011 Author Share Posted March 6, 2011 Thanks Vyper, that worked perfectly. Link to comment Share on other sites More sharing options...
The_Vyper Posted March 7, 2011 Share Posted March 7, 2011 Thanks Vyper, that worked perfectly.You're welcome! :D Glad I could help. Link to comment Share on other sites More sharing options...
Recommended Posts