BombardmentPigs Posted April 12, 2022 Share Posted April 12, 2022 (edited) I am making a modded food item. When you eat it, it is supposed to drop another modded item in the player's inventory. However, I have tried putting multiple scripts in the "oneaten" function, and none of them work. Any help would be greatly appreciated! Full item script attached below. "oneaten" function is empty. This script is for DST. Not DS. snack.lua I just need the script for giving an item to the player's inventory. The rest I can handle. Edited April 14, 2022 by BombardmentPigs Link to comment https://forums.kleientertainment.com/forums/topic/139063-solved-help-with-giving-items-once-a-food-item-is-eaten/ Share on other sites More sharing options...
BombardmentPigs Posted April 13, 2022 Author Share Posted April 13, 2022 Unfortunately I plan to finish this quickly, so if anyone can give me a response that would be very helpful, even if it's just speculation. Link to comment https://forums.kleientertainment.com/forums/topic/139063-solved-help-with-giving-items-once-a-food-item-is-eaten/#findComment-1557302 Share on other sites More sharing options...
kipper0k Posted April 13, 2022 Share Posted April 13, 2022 snack.lua 1 Link to comment https://forums.kleientertainment.com/forums/topic/139063-solved-help-with-giving-items-once-a-food-item-is-eaten/#findComment-1557389 Share on other sites More sharing options...
BombardmentPigs Posted April 13, 2022 Author Share Posted April 13, 2022 Thanks. I will test that today. Link to comment https://forums.kleientertainment.com/forums/topic/139063-solved-help-with-giving-items-once-a-food-item-is-eaten/#findComment-1557464 Share on other sites More sharing options...
BombardmentPigs Posted April 14, 2022 Author Share Posted April 14, 2022 It works! Thanks so much! Link to comment https://forums.kleientertainment.com/forums/topic/139063-solved-help-with-giving-items-once-a-food-item-is-eaten/#findComment-1557854 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