Fuffles Posted November 13, 2016 Share Posted November 13, 2016 Hello Survivors, I got a tiny tainy question to you, could you get me the effect of the Jelly Beans? I would do it myself If I would know where to search, since there is no "jellybeans" prefab, and the "preparedfoods" file, which contents all the crock pot foods, sadly uses some sorts of data that I dont know how to acces, It would be neat to hear from you about this information Your beloved giant, Dragonfly Link to comment https://forums.kleientertainment.com/forums/topic/71665-in-the-need-of-the-jelly-beans-magic/ Share on other sites More sharing options...
Zeklo Posted November 13, 2016 Share Posted November 13, 2016 This should probably do it: inst.components.edible:SetOnEatenFn(function(inst, eater) if eater.components.debuffable ~= nil and not (eater.components.health ~= nil and eater.components.health:IsDead()) and not eater:HasTag("playerghost") then eater.components.debuffable:RemoveDebuff("healthregenbuff") eater.components.debuffable:AddDebuff("healthregenbuff", "healthregenbuff") end end) Link to comment https://forums.kleientertainment.com/forums/topic/71665-in-the-need-of-the-jelly-beans-magic/#findComment-837079 Share on other sites More sharing options...
Fuffles Posted November 13, 2016 Author Share Posted November 13, 2016 41 minutes ago, Zeklo said: This should probably do it: inst.components.edible:SetOnEatenFn(function(inst, eater) if eater.components.debuffable ~= nil and not (eater.components.health ~= nil and eater.components.health:IsDead()) and not eater:HasTag("playerghost") then eater.components.debuffable:RemoveDebuff("healthregenbuff") eater.components.debuffable:AddDebuff("healthregenbuff", "healthregenbuff") end end) What if I wanted to make it for a different stat aka Sanity Link to comment https://forums.kleientertainment.com/forums/topic/71665-in-the-need-of-the-jelly-beans-magic/#findComment-837104 Share on other sites More sharing options...
Zeklo Posted November 13, 2016 Share Posted November 13, 2016 3 minutes ago, DragonflyTheGiant said: What if I wanted to make it for a different stat aka Sanity Look for the prefab "healthregenbuff" and use it as a guideline for a sanity one. Link to comment https://forums.kleientertainment.com/forums/topic/71665-in-the-need-of-the-jelly-beans-magic/#findComment-837106 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