Search the Community
Showing results for tags 'health'.
Found 6 results
-
Hello. What I want to do is, if the caster doesnt have 5 Spellenergy in his container, he loses 50 health. The code works perfectly with sanity but as soon as I put in health nothing happens anymore when not having enough Spell energy. Why does it work with Sanity and not with Health? local function onblink(inst, owner, caster) if inst.components.container:Has("spellenergy",5) then inst.components.container:ConsumeByName("spellenergy", 5) print('if') else caster.components.health:DoDelta(-50) -- swapping health for sanity works print('else') end end
-
Hey everybody! I'm once again asking for your professional support: I've finished my very first custom item. It doesn't crash the game, it has unique textures, very pretty overall. Now, it is the time to add some custom perks to it, the problem is, I'm not that experienced with custom items and with their coding. The goals I would like to achieve: I know, these are kinda tough for a first item, but life's short, isn't it?
-
I was wondering if there was a way for me to add wigfrid's ability to gain health and sanity on kill to a character i have. I have seen ones on the forums but they seen to be a flat bonus and not based on the mobs combat damage. If anyone would be able to separate that function from the battleborn one that she has or if they would be able to rewrite it out that would be greatly appreciated. Thank you very much for any assistance you can provide in advance.
-
Not too long ago, I planted 5 spider nests a bit away from my home. After I planted all of them, I heard this strange windy noise. Like when wind blows through a cave. It doesn't seem to occur with one or two nests together though. Anyone else notice this and/or can confirm it? I was in a savanna biome when it happened and don't have more nests to test it out.
-
Hi everyone, I am low on health, and I'm pretty sure that eating food gives you health, but what if I am full with hunger, 100 percent, and if I eat more, wont I faint or explode or something? How can I heal myself? Also, I built the second farm, the one that takes 4 poop, how do I use it? Lastly, I recently encountered a treeguard and it is sleeping now, if it somehow wakes up, will it kill me or will it wander around and help me kill bad monsters? Please help, thanks!
-
Hey Everyone, I started a new map for the naughty and nice update. Luckily it has 7 tall-birds, unfortunately it only has one beehive which I destroyed after capturing 6 killer bees... didn't realize they were different from regular old bees until it was too late and now I have no means to acquire honey. Being spoiled and addicted to honey, I'm not sure how to easily recover health without it. I have been using cooked tall bird eggs, but they are far from ideal (hard to harvest, not stack-able.) Anyone got any good ideas? Maybe an easy crock pot recipe that doesn't require honey but still packs on the health. Love, Me