Dakpyro2 Posted June 21, 2016 Share Posted June 21, 2016 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 And my compiler error: 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 StatSetupI'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. Link to comment Share on other sites More sharing options...
Dakpyro2 Posted June 21, 2016 Author Share Posted June 21, 2016 I just realized that there's a Skyrim mods section. Please delete this so that I can move it! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now