Jump to content

Recommended Posts

As you can tell I am a new modder in need of some help. So I'll try to describe my character the best I can and if you have any ideas, tips, and/or advice it'll be greatly appreciated.

 

Winter the Princess

  • Friends with most animals
  • Fragile, but ladylike
  • Innocent and pure heart

 

  • Max Health - 150
  • Max Hunger - 100
  • Max Sanity - 250

Typical princess character, makes loads of fairy tale references. Not a hard hitter, but can make friends with neutral mobs easier (rabbits, pig men, rabbit men, beefalo, etc). Loses sanity when attacking neutral mobs. Hunger decreases slower than other characters, gains sanity during the day.

 

Thanks in advanced!

To manipulate hunger rate , use :  inst.components.hunger:SetRate(TUNING.WILSON_HUNGER_RATE)  (wilson tuning is just an example).

 

To manipulate  damage : use  inst.components.combat.damagemultiplier = put the value here .

To  make her lose sanity when attacking mobs you can use this event listener : 

 inst:ListenForEvent("onhitother", function(inst,data) --put all the code here end) 

But how to detect the mob attacked i don't know how to do it yet. I think kramped.lua can help you with that.

 

 

 

Edited by TheShadeofTheNorth

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