JadeKnightblazer Posted January 22, 2015 Share Posted January 22, 2015 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 Link to comment https://forums.kleientertainment.com/forums/topic/49550-multiple-stat-upgrades-with-different-items/ Share on other sites More sharing options...
chromiumboy Posted January 23, 2015 Share Posted January 23, 2015 Yes, you can add extra levels in that manner. So for example you could havelocal function onsave(inst, data)data.level_from_carrots = inst.level_from_carrotsdata.level_from_berries = inst.level_from_berriesetcendand it would save the associated values. Link to comment https://forums.kleientertainment.com/forums/topic/49550-multiple-stat-upgrades-with-different-items/#findComment-605003 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