jbfilms1 Posted January 14, 2017 Share Posted January 14, 2017 I'm trying to make a script that when I push a button I added to the editor testing hall 1 vampire lord perk point gets added, but can't get it to compile. Code:Scriptname testscript01 extends ObjectReference {testscript01}Event OnActivate(ObjectReference akActionRef) float DLC1VampirePerkPoints.Mod(1) debug.messagebox("1 vampire lord perk point added")EndEvent Error:Starting 1 compile threads for 1 files...Compiling "testscript01"...C:\Games\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\testscript01.psc(5,28): no viable alternative at input '.'C:\Games\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\testscript01.psc(5,28): required (...)+ loop did not match anything at input '.'No output generated for testscript01, compilation failed.Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on testscript01 Thanks Link to comment Share on other sites More sharing options...
NexusComa Posted January 14, 2017 Share Posted January 14, 2017 Scriptname testscript01 extends ObjectReference GlobalVariable Property DLC1VampirePerkPoints Auto ; Event OnInit() GoToState("Done") EndEvent ;--------------------------- Event OnActivate(ObjectReference akActionRef) DLC1VampirePerkPoints.Mod(1) debug.messagebox("1 vampire lord perk point added") EndEvent ;--------------------------- State Done ; do nothing EndState After you compile this you need to use auto fill from the CK to set up the Property. If that is the correct name you could use ... GlobalVariable Property DLC1VampirePerkPoints Auto Hidden Never tested this just off the top of my head so i hope t works for you. Link to comment Share on other sites More sharing options...
Recommended Posts