doraexplora Posted August 16, 2024 Share Posted August 16, 2024 How do I make my food, for example, have my character regen +3 sanity in the time span of 2 minutes (basically the jelly beans code, but for sanity) Link to comment https://forums.kleientertainment.com/forums/topic/159058-how-to-make-your-custom-food-have-a-jelly-beans-type-of-effect-when-eaten/ Share on other sites More sharing options...
Haruhi Kawaii Posted August 19, 2024 Share Posted August 19, 2024 On 8/16/2024 at 9:39 PM, doraexplora said: How do I make my food, for example, have my character regen +3 sanity in the time span of 2 minutes (basically the jelly beans code, but for sanity) Try to create a buff similar to sweettea_buff in the forgetmelots file and add that buff when players eat your food Link to comment https://forums.kleientertainment.com/forums/topic/159058-how-to-make-your-custom-food-have-a-jelly-beans-type-of-effect-when-eaten/#findComment-1741375 Share on other sites More sharing options...
doraexplora Posted August 21, 2024 Author Share Posted August 21, 2024 On 8/19/2024 at 11:36 AM, Haruhi Kawaii said: Try to create a buff similar to sweettea_buff in the forgetmelots file and add that buff when players eat your food I mean, I tried it, copied the code and everything, but it's not working I'm new to modding so I have no idea if I'm putting a code in the wrong place and such, so yea I don't think it's gonna work lol 19 minutes ago, doraexplora said: I mean, I tried it, copied the code and everything, but it's not working I'm new to modding so I have no idea if I'm putting a code in the wrong place and such, so yea I don't think it's gonna work lol here's the code btwyellow_cap.lua Link to comment https://forums.kleientertainment.com/forums/topic/159058-how-to-make-your-custom-food-have-a-jelly-beans-type-of-effect-when-eaten/#findComment-1741572 Share on other sites More sharing options...
Haruhi Kawaii Posted August 21, 2024 Share Posted August 21, 2024 1 hour ago, doraexplora said: I mean, I tried it, copied the code and everything, but it's not working I'm new to modding so I have no idea if I'm putting a code in the wrong place and such, so yea I don't think it's gonna work lol here's the code btwyellow_cap.lua I fixed it a bit, added a buff when the player eats it and changed sweettea_buff to sweettea_buff_mod to avoid overwriting the game's default buff yellow_cap.lua Link to comment https://forums.kleientertainment.com/forums/topic/159058-how-to-make-your-custom-food-have-a-jelly-beans-type-of-effect-when-eaten/#findComment-1741585 Share on other sites More sharing options...
doraexplora Posted August 21, 2024 Author Share Posted August 21, 2024 9 hours ago, Haruhi Kawaii said: I fixed it a bit, added a buff when the player eats it and changed sweettea_buff to sweettea_buff_mod to avoid overwriting the game's default buff yellow_cap.lua 3.45 kB · 0 downloads thank you sm it worked! Link to comment https://forums.kleientertainment.com/forums/topic/159058-how-to-make-your-custom-food-have-a-jelly-beans-type-of-effect-when-eaten/#findComment-1741626 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