Page 1 of 1

Start Quest on Event

Posted: Fri Mar 25, 2022 2:30 am
by ANoobOnVR
Hello,

I am developing a game in VR and don't want to use quest giver function. How do I change quest "Current status" from Inactive to Active using unity events?

I cant seem to get it working.

Re: Start Quest on Event

Posted: Fri Mar 25, 2022 1:32 pm
by Tony Li
Hi,

You can wrap the code in this article into a method, and then call that method from your UnityEvent.

Alternatively, if you don't want to do any scripting, let's say you have an enemy with an OnDeath() UnityEvent, and you want to give a quest when this UnityEvent is called. Add a Quest Giver component to the enemy, and add the quest to its Quests list. Configure OnDeath() to call QuestGiver.GiveAllQuestsToQuester. You can choose to give it to the player by assigning the player's GameObject or by the ID string assigned to the player's Quest Journal.