F4llfield Posted June 7, 2024 Share Posted June 7, 2024 Hi, There is a command to force a refresh of a script, but the properties attached to that script are not refreshed. Is the a command to refresh a property instead of having to start a new game ? Link to comment Share on other sites More sharing options...
LarannKiar Posted June 7, 2024 Share Posted June 7, 2024 You mean resetting the variable that a script property currently points to to the one defined in the editor? I don't know of any but you can change a non Const property both in the Console (SetPapyrusVar or SetPV) and from a Papyrus script (theScript.propertyName = newVariable). Link to comment Share on other sites More sharing options...
F4llfield Posted June 7, 2024 Author Share Posted June 7, 2024 Thanks for your reply, I forgot to mention that the property I created is a strings array. It's working but then I added more strings into the array, but of course they are not showing up in game. So I was wondering if there was a command something like ReloadProperty "Scriptname:Propertyname". Link to comment Share on other sites More sharing options...
LarannKiar Posted June 7, 2024 Share Posted June 7, 2024 I see. Unfortunately I don't know of any. You'll need to have a Papyrus script for that. Link to comment Share on other sites More sharing options...
F4llfield Posted June 7, 2024 Author Share Posted June 7, 2024 thanks! Link to comment Share on other sites More sharing options...
RaidersClamoring Posted June 22, 2024 Share Posted June 22, 2024 ReloadScript *should* work but sometimes the game will keep the old values and trace something akin to "values in property x does not match values on y. Using version from save." In that case a reinitiation i.e. leaving and returning to cell should work. You can also manually re-inject the ref using 'APS "Scriptpath:Scriptname" ' on a selected or PRID:ed ref. That usually works. 1 Link to comment Share on other sites More sharing options...
F4llfield Posted June 24, 2024 Author Share Posted June 24, 2024 Thanks RaidersClamorin! Link to comment Share on other sites More sharing options...
RaidersClamoring Posted June 24, 2024 Share Posted June 24, 2024 You're welcome. Which one did you end up using? Link to comment Share on other sites More sharing options...
Recommended Posts