Jump to content

Editing GameSettings from Papyrus?


eltucu

Recommended Posts

Hi!

 

I was trying to test a few things for a quest mod that i wanted to do, its kinda crucial for the mod editing GameSettings on the fly.

 

There is a way to edit any GameSettings from Papyrus? Or i'd need to use SKSE? Maybe a .bat file?

 

PD: By GameSettings i mean the variables that are displayed in Gameplay>Settings in the CreationKit. I thought those were Globals but it seems they're a different kind of data >_<

Edited by eltucu
Link to comment
Share on other sites

Why not just edit the values from within the game settings window? Scripting would only be necessary if you want game settings to be changing during runtime. If you're seeking to tweek the settings more permanently, then just go into the game settings menu and change the values and save the plugin.
Link to comment
Share on other sites

Scripting would only be necessary if you want game settings to be changing during runtime.
Thats exactly what i meant by "its crucial for my mod editing GameSettings on the fly" :D Edited by eltucu
Link to comment
Share on other sites

Scripting would only be necessary if you want game settings to be changing during runtime.
Thats exactly what i meant by "its crucial for my mod editing GameSettings on the fly" :D

lol i don't know how i missed that, i need to get my eyes checked...

Anyways, all i can think of are the game script functions, or a good imagination...

Link to comment
Share on other sites

lol i don't know how i missed that, i need to get my eyes checked...

Anyways, all i can think of are the game script functions

Which ones? I cant find one, thats the point. GetValue or SetValue dont work because those are just to edit globals, not GameSettings.

 

EDIT: Found these three:

; Obtains the value of a game setting - one for each type of game setting
float Function GetGameSettingFloat(string asGameSetting) native global
int Function GetGameSettingInt(string asGameSetting) native global
string Function GetGameSettingString(string asGameSetting) native global

But, no set, just get :(

Edited by eltucu
Link to comment
Share on other sites

It looks like it isnt possible : / Luckily for what i wanted to do (edit enchantment power) there are perks and probably abilities that can affect it. I just wanted to edit the gamesettings so the change isnt noticed by the player. Though i did made a perk and a lever that added it to the player and didnt worked at all for some reason, started a thread about it but no one answered me.
Link to comment
Share on other sites

  • 5 weeks later...

Thanks but as i said, i wanted it to be changed on the fly with Papyrus. Its for a mod so i cant tell the player "hey, when you complete the quest, put this on the console!"

 

Well, i can do that but it would be a horrible design for a quest lol

 

Anyway, i found a work around with Perks and i havent been doing anything else since i dont have much time now.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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