inferjus4 Posted June 9, 2019 Share Posted June 9, 2019 What would I have to do to like change the recipe (not add new one) of existing DS item/object or how add new loot that drops when killing existing mob? Link to comment https://forums.kleientertainment.com/forums/topic/107338-how-change-the-scipr-of-existing-ds-thing/ Share on other sites More sharing options...
Ultroman Posted June 24, 2019 Share Posted June 24, 2019 In order to overwrite an existing recipe, all you have to do is call Recipe() with the first parameter being the name of the prefab whose recipe you want to change. It's the same as when you add a new recipe. It just overwrites the original recipe. You seem to be asking two very different questions here. Changing what loot drops from certain mobs/entities is a subjective matter, as the lootdropper-component can be set up in various ways. Some have random drops, some have weighted drops, some have static drops, some have state-based drops etc.. Look at the lootdropper-component. Read the code there. Go to the prefab you want to change, and see how it sets up its lootdropper-component. Return with questions Search for lootdropper on the modding forums (see my newcomer post for tips on how to search this forum properly) Link to comment https://forums.kleientertainment.com/forums/topic/107338-how-change-the-scipr-of-existing-ds-thing/#findComment-1213618 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