I am trying to create a simple script that will activate a button when a spell is cast. The trouble is that i only have a very elementary proficiency with scripting. I'm really bad.
Here is the script that I have tried out (with no effect of course)
Scriptname TestActivateScript extends activemagiceffect
ObjectReference Property PortcullisButton auto
Event OnEffectFinish(Actor target, Actor caster)
target.Activate(PortcullisButton)
EndEvent
For some strange reason, this script compiles fine with no errors, but as I said it does nothing.
I tried deleting the (actor target, actor caster) portion of the script and it compiled with the following errors;
c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TestActivateScript.psc(5,20): mismatched input '\\r\\n' expecting LPAREN
c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TestActivateScript.psc(0,0): error while attempting to read script TestActivateScript: Object reference not set to an instance of an object.
No output generated for TestActivateScript, compilation failed.
Many of you very talented people will be shaking your heads at this I'm sure, but any help would be much appreciated.