Gudalskaross Posted January 2, 2016 Share Posted January 2, 2016 This is my first time doing anything with a mod. I have just been attempting to edit a pre-existing mod, however I can't seem to get the "level up" function to work, it use to be "MEAT" and I want to change it to "honey" but it's not working. I added some stats to the level up, not sure if that would effect anything. Attached is what the character.lua looks like, feel free to tell how stupid I am, I really am not sure what I'm doing. Thanks! haruz.lua Link to comment https://forums.kleientertainment.com/forums/topic/61777-first-mod-help/ Share on other sites More sharing options...
DarkXero Posted January 3, 2016 Share Posted January 3, 2016 @Gudalskaross, honey is FOODTYPE.GENERIC so it would beif food and food.components.edible and food.components.edible.foodtype == "GENERIC" thenhowever this would include some crock pot recipes. The check in oneat can beif food and food.prefab == "honey" thenwhich would pass strictly for honey. Link to comment https://forums.kleientertainment.com/forums/topic/61777-first-mod-help/#findComment-704697 Share on other sites More sharing options...
Gudalskaross Posted January 3, 2016 Author Share Posted January 3, 2016 It works thank you so much! Link to comment https://forums.kleientertainment.com/forums/topic/61777-first-mod-help/#findComment-704946 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