Jump to content

Recommended Posts

I know it is easy to "Level up" a custom character using wx78 as a template however...

 

How can I make 3 items that increase Max health, Hunger, and sanity separately?

 

 

Wild example:

 

Eating carrots gives character +10 Max Health, able to eat 3 times.

Eating berries gives character +10 Max Hunger, able to eat 3 times.

Eating flowers gives character +10 Max Sanity, able to eat 3 times.

 

 

Atm all I see is inst.level (and using data.level for loading / saving). Which only 1 of the 3 Level types I need.

 

 

Is it possible to... inst.level2, inst.level3?  Or some other means to create custom levels.

 

Thanks :D

Yes, you can add extra levels in that manner.

 

So for example you could have

local function onsave(inst, data)data.level_from_carrots = inst.level_from_carrotsdata.level_from_berries = inst.level_from_berriesetcend

and it would save the associated values.

 

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...