Generating a quest with specific rewards and giver?

Started by TheOnly8Z, September 26, 2020, 05:18:47 PM

Previous topic - Next topic

TheOnly8Z

Hi all, I'm making my first C# mod which allows you to use the comms console to get a quest just like trade caravans. I've made the dialog option using Harmony, but I can't find the relevant functions and classes that quests need.

I would appreciate help with what specific functions I should call to generate a quest. I know the Quest class exists, but is creating a new one sufficient? And how would I go about choosing its type? Also, how can I make sure the points value used in the quest is correct to the player's colony (or optionally greater/lesser than it)?