arheidis Posted April 13, 2015 Share Posted April 13, 2015 Hello I'm having trouble figuring out how to define different variables that mode creators allow us to change. To give a clear example I've added the simple protection mod and need to add different parameters such as minimum player days, starting day etc. and I'm not sure how to do it. I opened modmain.lua but there's no place where all these are predefined to their default values so I can change them.I will continue with the example of the mod I've already mentioned. This is the first lines of code: local STRINGS = GLOBAL.STRINGS local IS_ROG_ENABLED = GLOBAL.kleifileexists("scripts/components/witherable.lua") local starting_day = GetModConfigData("starting_day")local min_days = GetModConfigData("min_days")local container_protection = GetModConfigData("container_protection")local stewer_protection = GetModConfigData("stewer_protection")local backpack_protection = GetModConfigData("backpack_protection")local ghost_protection = GetModConfigData("ghost_protection")local willow_love = GetModConfigData("willow_love")local bushes_protection = GetModConfigData("bushes_protection")local bushes_dig_protection = GetModConfigData("bushes_dig_protection")local fire_spread_protection = GetModConfigData("fire_spread_protection") I'm guessing the things above is the definition of the parameters used. So therefore, should I give the values in the form I've done below? Starting day = 10Minimum player days = 1 Ghost protection = Yes Chest protection = Yes Backpack protection = No Crock pot protection = Yes Bushes dig protection = No Willow protection = Yes // Sorry if my question is silly, but I'm not familiar with customizing mods via this way. I got my first dedicated server a few hours ago and still have trouble making the mods run without crashing the server Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now