Well-met Posted May 29, 2020 Share Posted May 29, 2020 Has anyone figured out how to use the new character menu for custom characters? So far I know the stuff are in tuning.lua and strings.lua but I'm not quite sure what to make of them Link to comment https://forums.kleientertainment.com/forums/topic/118588-new-menu-descriptions/ Share on other sites More sharing options...
IronHunter Posted May 30, 2020 Share Posted May 30, 2020 (edited) Its pretty straightforward for the most part: You need to add TUNING values for your character's --for example my character stats TUNING.WAFFE_HEALTH = 175 TUNING.WAFFE_HUNGER = 175 TUNING.WAFFE_SANITY = 100 TUNING.GAMEMODE_STARTING_ITEMS.DEFAULT.WAFFE = {"hat_waffe", "combatshovel","lifeinjector",} --this is a example from my character mod --Obviously change WAFFE to your character's name and the stats respectfully, you might even want to link the prefab SetHealth etc functions to them. --The GAMEMODE_STARTING_ITEMS table is for the list of starting items your character will display. local mymodstartingitems = {--you'll need to make a local table of your items inventoryimage atlas hat_waffe = {atlas = "images/inventoryimages/hat_waffe.xml"}, combatshovel = {atlas = "images/inventoryimages/combatshovel.xml"}, } --From widgets/redux/templates.lua --local override_item_image = TUNING.STARTING_ITEM_IMAGE_OVERRIDE[item] --local atlas = override_item_image ~= nil and override_item_image.atlas or GetInventoryItemAtlas(item..".tex") --local image = override_item_image ~= nil and override_item_image.image or (item..".tex") TUNING.STARTING_ITEM_IMAGE_OVERRIDE = type(TUNING.STARTING_ITEM_IMAGE_OVERRIDE) == "table" and GLOBAL.MergeMaps(TUNING.STARTING_ITEM_IMAGE_OVERRIDE, mymodstartingitems) or mymodstartingitems --To provide better mod compatibility we don't really want to override this table, so we merge our override table with the previous one if there is a existing one otherwise we create the original table. You'll also need to add a string for CHARACTER_SURVIVABILITY with your character's name lower cased STRINGS.CHARACTER_SURVIVABILITY.waffe = "Slim" Edited May 30, 2020 by IronHunter 1 2 Link to comment https://forums.kleientertainment.com/forums/topic/118588-new-menu-descriptions/#findComment-1337884 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now