camupod Posted May 15, 2014 Share Posted May 15, 2014 Is it possible to have an eaten item give temporary status effects (e.g., temporary sanity buff or something) that lasts for some amount of seconds? I know you can set edible.sanityvalue and whatnot, but I'd like to have it increase (or decrease) during the duration of the status. Is this possible? Link to comment https://forums.kleientertainment.com/forums/topic/36459-question-temporary-status-effects/ Share on other sites More sharing options...
chromiumboy Posted May 15, 2014 Share Posted May 15, 2014 Yes, it possible. The glow berry! It should be under worm_light.lua. It uses a component called spell.lua to set up the effect, keep track of it and remove it when finished. Link to comment https://forums.kleientertainment.com/forums/topic/36459-question-temporary-status-effects/#findComment-481851 Share on other sites More sharing options...
camupod Posted May 17, 2014 Author Share Posted May 17, 2014 Thanks! That's very helpful. It doesn't modify the sanity or any of that stuff during the spell, though (just adds a light, as far as I can tell). Do you know how that could be achieved? For example, I might like to have it constantly increasing sanity value and decreasing hunger value for the duration of the spell. Also, I might like to add other effects, like accidentally dropping weapons/tools as if they are slippery. Do you think that is possible? Link to comment https://forums.kleientertainment.com/forums/topic/36459-question-temporary-status-effects/#findComment-483157 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