nilead Posted August 8, 2022 Posted August 8, 2022 My fiddling hit a wall where to go further i need some sctipt wizardry. My intetion is to get some feedback from base game mechanics into sl scenes using SLSO. Initially having no scripting experience whatsoever, i failed miserably and laid idea off for later. After getting the basic helloworld tutorial done (not in Skyrim scripting), ive gained an unhealthy dose of hopium and decided to give it another shot. Initiall goal was picked small - change one variable, how hard can it be? After rolling in SLSO script files like a pig in a barn, the neccecery variable was found, that being NoOrgasm initialized in actorAlias.psc. Great, but.. well, CK reference states that to acess it from another script it needs to be a property. It is not. Comlication. Thankfully, there is also a function wich, judging by its name, is designed to do what is required. And CK reference says that functions from other scripts indeed can be called. Noice. Function is this one: Spoiler function DisableOrgasm(bool bNoOrgasm) if ActorRef NoOrgasm = bNoOrgasm endIf endFunction But ofcourse, there are issues. Im not well versed in elvish. What "if" condition checks for? Technicly, all i need to is to call that funciton, feed it "true", and im golden. For global funcitons, prefixing it with source sctipt name is sufficient. But this one is not global. How do i get acess to it? Moreover, while i can reasonably assume what is actor ref, compiler is unlikely to do so. It needs to be declared? Or i dont, since its for a function from another script that allready has it? So many questions. So, if looking for a script wizards willing (and, propbably, patient enough) to explain how its done.
traison Posted August 8, 2022 Posted August 8, 2022 If you can't find ActorRef defined anywhere in the script file you're looking at, my first guess would be that the script inherits another script: Scriptname SomeScript Extends SomeBaseScript
nilead Posted August 8, 2022 Author Posted August 8, 2022 9 minutes ago, traison said: f you can't find ActorRef defined anywhere in the script file you're looking at, my first guess would be that the script inherits another script: I guess its just me being daft, seeing as i wanted an effect attached to item, i thought to go about it by extending object effect. Thats how i went about it before anyway. Original indeed has a header of "scriptname sslActorAlias extends ReferenceAlias". So, with a header of "scriptname RubbishTestScript extends sslActorAlias, ill have all the variables and functions from both sslActorAlias and ReferenceAlias declared and ready for use?
traison Posted August 8, 2022 Posted August 8, 2022 That is my understanding yes. Might be one of the few things in papyrus that behave like they do in other programming languages. Remember to change sslActorAlias to your RubbishTestScript in the actual aliases in any relevant SL quests. 1
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