Jump to content

Settings script


McclaudEagle

Recommended Posts

Hi.

 

A while back, I explained that I was having trouble make gun condition damage penalties to not affect the damage the gun does. The settings changes I make don't work, and I tried doing it in the GECK and FNVEdit to no success. Now unless Obsidian finally fix the settings, all I can hope for is that my last idea works. I would like a script that alters the setting.

 

The settings that need to be changed are:

 

fDamageGunWeapCondBase

fDamageGunWeapCondMult

 

I need the script to make it so that when the game is started (or save is started), the script forces the setting changes, and as such, remove the condition penalty from the game.

 

Anyone able to help?

Link to comment
Share on other sites

Make a simple quest script. The code will run exactly once when a game session is started, or a save is loaded.

I'm pretty sure this is the correct syntax. I'm not at home to check some scripts I did before with con_SetGameSetting

 

 

scn MyWeaponSettingQuestScript


; tick the box to run when game starts

BEGIN GAMEMODE

if (GetGameLoaded)
	con_SetGameSetting fDamageGunWeapCondBase "1"   ;use a string in quotes for the value, not a numeric
	con_SetGameSetting fDamageGunWeapCondMult "1"
endif

END

Link to comment
Share on other sites

Ah, no I did not. I did try to make my own script which did save, but didn't do anything ingame. It went a little like this:

 

scn FNVCRSettingsScript

 

SetGameSettings fDamageGunWeapCondBase 1

SetGameSettings fDamageGunWeapCondMult 1

 

End

 

I'll retry yours with NVSE.

Link to comment
Share on other sites

Well, I tried your script using NVSE, but still no results I wanted. Here's what I've done so far...

 

Quest: Made a quest with Start Game Enabled ticked, set its priority to 90 and added the Quest Script. Default Script delay is ticked too.

 

Script:

 

scn FNVCRSettingsScript

 

Begin GameMode

 

if (GetGameLoaded)

con_SetGameSetting fDamageGunWeapCondBase 1.0000

con_SetGameSetting fDamageGunWeapCondMult 1.0000

endif

 

End

 

Anything you can spot is wrong?

Link to comment
Share on other sites

Yeah, I think I'm the problem ;)

 

Try using SetNumericGameSetting instead.

 

scn FNVCRSettingsScript

Begin GameMode

if (GetGameLoaded)
SetNumericGameSetting fDamageGunWeapCondBase 1.0000
SetNumericGameSetting fDamageGunWeapCondMult 1.0000
endif

End

 

http://fose.silverlock.org/fose_command_doc.html#SetNumericGameSetting

http://cs.elderscrolls.com/constwiki/index.php/SetNumericGameSetting

Link to comment
Share on other sites

Well, that didn't work either. I guess we have to concede that both those settings are actually broken and there's nothing that can be done to change them. GECK, FNVEdit and scripts don't work. Only option is to hope that Obsidian decide to fix it.

 

Thanks for the help.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...