Jump to content

Recommended Posts

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 by IronHunter
  • Like 1
  • Thanks 2

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

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...