Tathrin Posted July 28, 2019 Share Posted July 28, 2019 I am trying to built a quest off of the Chaurus Pie: A Recipe book wherein you actually have to bake and consume a chaurus pie according to the recipe therein (or as close as in-game ingredients will allow lol). So far I have created the pie, come up with a recipe, placed a few in world, and attached the start-quest script to the book on-read. All those stages have been tested, including actually baking the pie at the oven. So far, so good. I even have the quest advancing to the next stage when you add a pie to your inventory (so you can either bake it or steal one of Nils's from Candlehearth Hall; I couldn't figure out how to do it just on baking, but I'm not too fussed about which the player chooses to do there tbh so if they "cheat" and steal one okay nbd).Where I'm running into trouble is completing the quest. I want to end it with the player actually eating the pie...but I cannot for the life of me find any tutorial or script list or anything that triggers upon item consumption. Does anyone know how I can do that? Thanks very much for any help! Link to comment Share on other sites More sharing options...
IsharaMeradin Posted July 29, 2019 Share Posted July 29, 2019 You can test and see if the OnEquip event gets triggered. Don't think it does but worth a test. The reason for the suggestion is that Use / Eat / Read / Equip in the inventory all use the same key bind. Another sure possibility is to add an additional effect to the food item. This effect would have a script attached to it which uses the OnEffectStart event to first check if the quest is running and if at an appropriate stage (or stages) and if everything is how it should be set the stage appropriately so that the quest can continue on and complete. However, this approach means that this effect will always be present on every instance of the food item. Appropriate conditioning may be necessary to ensure that it does not process any more than necessary after that stage has been reached. Another possibility is to use that last approach but have two separate recipes. One for a specific item that completes the quest and one for a general version of the item. Condition the first recipe to only be available during the quest while the second is conditioned to be available after the quest. If the pre-placed items are of the general version, then the specific version is effectively available by crafting only and thus the quest requires actually baking the item as well. Link to comment Share on other sites More sharing options...
Tathrin Posted August 4, 2019 Author Share Posted August 4, 2019 Hey I know it's been a while but I just wanted to thank you for the help! I've kind of given up on the mod for now until I learn more about quest mods in general, because it turns out I had accomplished much less than I thought I had and it's going to take some more work to get to the point of being able to pull this off, but I will be coming back it eventually when my skills are up to the task and I am absolutely certain that your advice will be invaluable to me when I start working on it again, thank you so much. Link to comment Share on other sites More sharing options...
Recommended Posts