I was wondering if someone could help me with trying to find out if its possible for me, to not have one of my settings get overwritten by another mod?
The script that I want to "overwrite" ( don't know the proper terminology) another mods settings is:
My settings.lua code:
Code: Select all
data:extend({
{
type = "bool-setting",
name = "vanilla-flashlight",
setting_type = "startup",
default_value = false,
order = "j"
},
})
Code: Select all
if settings.startup["vanilla-flashlight"].value then
data.raw["character"]["character"]["light"] = off
end
The code works fine when I load it by it self, or with mods that don't interfere with the
Code: Select all
data.raw["character"]["character"]["light"] = off
Cheers,