Referencing Game-play Settings via Script

Post » Mon Jan 03, 2011 12:19 pm

Is it possible to reference or modify game-play settings via a script?

In particular I am looking to write a script that will modify fBarterSellMult & fBarterBuyMult based on different conditions.

I can't seem to find any info on this.
User avatar
marie breen
 
Posts: 3388
Joined: Thu Aug 03, 2006 4:50 am

Post » Mon Jan 03, 2011 5:53 pm

It can be done, but requires NVSE. Here's a link to the FOSE documentation for http://fose.silverlock.org/fose_command_doc.html#SetNumericGameSetting. Not all of the commands from FOSE have made it over into the current NVSE beta yet, but setNumericIniSetting has, and the documentation/usage is the same.
User avatar
gemma
 
Posts: 3441
Joined: Tue Jul 25, 2006 7:10 am

Post » Mon Jan 03, 2011 3:39 am

It can be done, but requires NVSE. Here's a link to the FOSE documentation for http://fose.silverlock.org/fose_command_doc.html#SetNumericGameSetting. Not all of the commands from FOSE have made it over into the current NVSE beta yet, but setNumericIniSetting has, and the documentation/usage is the same.


I will check that out thank you
User avatar
Farrah Lee
 
Posts: 3488
Joined: Fri Aug 17, 2007 10:32 pm

Post » Mon Jan 03, 2011 10:44 am

GMST's, when altered in game, will revert to their default values upon restarting the game. To ensure your changes are re-applied once per save load, until GetGameLoaded is fixed, you can use a http://geck.gamesas.com/index.php/Globals 'bGetGameLoaded' global set to 1 and set it to 0 in GameMode right before all your SetNumericGameSetting/Con_SetGameSetting uses. Otherwise, you'll find the alterations won't stick.
User avatar
BRAD MONTGOMERY
 
Posts: 3354
Joined: Mon Nov 19, 2007 10:43 pm


Return to Fallout: New Vegas