Sh0uter Posted July 14, 2021 Share Posted July 14, 2021 Hey, so Iâm trying to write a script where when you have 10 strength your body transforms into a more muscular form. I tried following the script from the Ghoulification mod by Highsight but the script wonât save. Any help is appreciated. The script btw:Scn HerculeanScript Begin GameMode If Player.GetPermanentActorValue Strength == 10 Player.matchrace HerculesRef EndifEnd Link to comment Share on other sites More sharing options...
GamerRick Posted July 17, 2021 Share Posted July 17, 2021 (edited) 1. Look in \Fallout New Vegas\EditorWarnings.log for the script errors. OR, much better, 2. Install the Geck Extender (if you haven't already), and change file \Fallout New Vegas\Data\nvse\Plugins\geckextender.ini and change this: [Script] ..... bScriptCompileWarningPopup=1 ....For starters tho, I would think you would only want to do that MatchRace command once, not every time the GameMode block runs. Edited July 17, 2021 by GamerRick Link to comment Share on other sites More sharing options...
Protostorm1701 Posted August 16, 2021 Share Posted August 16, 2021 Wouldn't EndifEndStop it from running every time GameMode runs? Feel like it worked that way for Oblivion. Link to comment Share on other sites More sharing options...
madmongo Posted August 16, 2021 Share Posted August 16, 2021 (edited) No. Begin GameMode //(anything here runs every time) If Player.GetPermanentActorValue Strength == 10 //(if the player's strength is 10 anything here also runs every time, if the player's strength is not 10 this is skipped) endif //(anything here runs every time) end Oblivion worked the same way. If you want it to dynamically update, you can do something like this: Scn MuscularScript int ThisCheck int LastCheck Begin GameMode Set ThisCheck to Player.GetPermanentActorValue Strength If ThisCheck!=LastCheck If ThisCheck == 10 Player.matchrace MuscularRaceGuyRef Else Player.matchrace WimpyRaceGuyRef Endif Endif ; end ThisCheck != LastCheck Set LastCheck to ThisCheck End Edited August 16, 2021 by madmongo Link to comment Share on other sites More sharing options...
Recommended Posts