Hiya!
I'm trying desperately to become a new modder in the Skyrim community, but I'm having a hard time wrapping my head around the reference architecture of the Creation Kit and how scripts and objects interact with one another. I've read through all of Bethesda's beginner tutorials and their Papyrus primer, and the syntax makes plenty of sense, but the way things interact is just beyond me. Before I started making any mods, I figured I'd mess around with some of the basic processes that I'd need to learn how to do for the mod I have in mind, but I'm coming across a compiler error which I can only possibly attribute to an issue in the way that I'm referencing what I'm working with.
Essentially, I have an actor in a testing Cell. He has his Activate Parent set to a pullbar over on the wall. I want to make it so that when the pullbar is pulled, it will set one of the actor's stats to a specific value and then give me a debug notification with the finished stat. Here's my code:
Scriptname StatSetup extends ObjectReference
ActorBase Property debugApprentice auto
Event OnActivate(ObjectReference akActionRef)
debugApprentice.SetActorValue("smithing", 15)
debug.notification("Smithing is " + (debugApprentice.GetActorValue("smithing") As String))
EndEvent
Starting 1 compile threads for 1 files...
Compiling "StatSetup"...
C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\StatSetup.psc(6,17): SetActorValue is not a function or does not exist
C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\StatSetup.psc(7,53): GetActorValue is not a function or does not exist
No output generated for StatSetup, compilation failed.
Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on StatSetup
I've been unable to find any other threads explaining why this is wrong, or any tutorials on the reference structure of Skyrim that makes any sense to me, so I figured I'd share this here and hope that somebody could explain to me just what I'm doing wrong.