This scene contains an example that integrates Quest Machine, Dialogue System, and Invector:
QM_DS_Invector_Example_2022-01-09.unitypackage
The scene demonstrates how to pause the player and show the mouse cursor when viewing the quest journal and when running conversations. (The conversation gives a quest, but the scene is not set up to complete the quest.)
It was set up using the steps below. These steps are also in the _README.txt file in the same folder as the example scene.
1. Import Quest Machine, Dialogue System, and Invector
2. Import:
- Common / Third Party Support / Invector Support
- Dialogue System / Third Party Support / Invector Support
- Quest Machine / Third Party Support / Dialogue System Support & Invector Support
3. Dialogue System GameObject:
- Input Device Manager: Set Input Device to Mouse; optionally untick Control Cursor State
- Add: Dialogue System Quest Machine Bridge
- Add: Dialogue System Quest Generator Bridge (if using quest generator)
4. Quest Machine GameObject:
- Add: Dialogue System Quest Alert UI, Dialogue System Quest Dialogue UI
- Quest Machine Canvas > Quest Journal UI: Add QuestControl, configur OnOpen()/OnClose() events to QuestControl.SendToMessage System "Pause Player", "Unpause Player"
5. Player GameObject:
- Tag 'Player'
- Add: Quest Machine Pause Player, Dialogue System Invector Bridge, Quest Journal
- Add (optional): Invector Stats Saver, Invector Inventory Saver, Position Saver (set Keys)
(Note: No need to use separate GameObject for Quest Journal.)
6. NPC:
- Add: Quest Giver (set ID)
- Add: vTriggerGenericAction - configure to call QuestGiver.StartDialogueWithPlayer