Leodriz Posted March 10, 2022 Posted March 10, 2022 Hi, First of I'm new to scripting with Creation Kit (SSE) and I'm serching the net for tips end examples. I have managed to get a few simple scripts to work and i move along with a slow pace. At the moment I´m trying to play around with mody morps (RaceMenu/NiOverride) through scripting but i can´t find any information on what bsa-files i need to load in CK or what the commandos for morps are. For example I'm trying the following short script to make body changes when equipping an item: Scriptname SetBodytest extends ObjectReference float breast = 50.0 ;Comment, yeah I have no idea of what values are proper to use float waist = 75.0 Event OnEquipped(Actor akActor) nioverride.setMorphValue(akActor, breast, "BreastsFantasy") nioverride.setMorphValue(akActor, -breast, "BreastsSmall") nioverride.setMorphValue(akActor, breast*0.25, "BreastPerkiness") nioverride.setMorphValue(akActor, breast*0.5, "NippleLength") nioverride.setMorphValue(akActor, waist, "Waist") nioverride.setMorphValue(akActor, -waist*1.50, "WideWaistLine") nioverride.setMorphValue(akActor, -waist*1.50, "ChubbyWaist") nioverride.setMorphValue(akActor, -waist*2.00, "Back") nioverride.setMorphValue(akActor, -waist, "BigBelly") endEvent When trying to compile i get : D:\Sexlab\Stock Game\Data\Source\Scripts\temp\tokrSetBodytest.psc(9,2): variable nioverride is undefined D:\Sexlab\Stock Game\Data\Source\Scripts\temp\tokrSetBodytest.psc(9,13): none is not a known user-defined type D:\Sexlab\Stock Game\Data\Source\Scripts\temp\tokrSetBodytest.psc(10,2): variable nioverride is undefined D:\Sexlab\Stock Game\Data\Source\Scripts\temp\tokrSetBodytest.psc(10,13): none is not a known user-defined type ..... This sounds to me like i either have have a mod loaded with nioverride as a property or something or that i need to define the variable myself. But i Can find no info on what needs to be done. I would allso like to be able tu ger information about the nodes of an actor, like a getMorphValue, or something. But i can´t find information of what is used by RaceMenu/NiOverride. Can anyone give me some tips or point me in the right direction?
Andy14 Posted March 11, 2022 Posted March 11, 2022 14 hours ago, Leodriz said: Can anyone give me some tips or point me in the right direction? Scriptname SetBodytest extends ObjectReference import nioverride ....
Leodriz Posted March 11, 2022 Author Posted March 11, 2022 Nope, I just get the message " unable to locate script nioverride" I guess i need to load some other bsa-file into CK. I just dont know witch one.
Andy14 Posted March 11, 2022 Posted March 11, 2022 34 minutes ago, Leodriz said: Nope, I just get the message " unable to locate script nioverride" I guess i need to load some other bsa-file into CK. I just dont know witch one. The script (and source script) is part of the RaceMenu.bsa. You have to unpack the script and the source script from the bsa and copy them to your skyrim as loose files. Data\scripts\ Data\scripts\source\ PS: In order to compile scripts, all source scripts are always required as loose files.
Leodriz Posted March 11, 2022 Author Posted March 11, 2022 Hmm, I use MO2 and in the "mods/RaceMenu SE/ directory I got "/scripts" and "/scripts/source/" In the source directory i got: chargen.psc nioverride.psc racemenu.psc racemenubase.psc racemenuload.psc racemenuplugin.psc I allso tried copying the scripts folder directly to the data folder in the base game but i still get the "unable to locate script nioverride" message.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.