Page 1 of 1

Using NJG MiniMap with the Dialogue System

Posted: Fri Mar 04, 2016 9:57 am
by Tony Li
A designer had a good question about using the Dialogue System's NJG MiniMap support. I'm posting the info here, too, in case it's helpful to others:

The Dialogue System's NJG MiniMap Support lets you control map items.

In NJG MiniMap, you can add map items to a GameObject such as an NPC. These map items appear on the mini map. You can add multiple map items to a GameObject. For example, you could add Question Mark, Exclamation Mark, and Hostile map items to an NPC. (Those are just example names. You can name markers however you want.)

In the Dialogue System, use the NJGMapItem() sequencer command to hide and show map items.

For example, to mark a dragon hostile on the mini map:

Code: Select all

NJGMapItem(Hostile, Dragon)
There are three places where you will usually use this command:
  1. In the Sequence field in conversations. For example, hide the NPC's quest mini map marker when the player turns in a quest.
  2. In a Sequence Trigger. For example, change a mother bear's marker to Hostile when the player enters the cave where her babies are.
  3. When abandoning a quest. When you edit a quest in the Dialogue Editor, you can add a custom field named "Abandon Sequence". If this field exists, the Dialogue System will play it when the player abandons a quest. You can use this sequence to change the quest-related map markers.

She also shared this helpful tip about the latest version of NJG MiniMap: If you get an error about duplicate scripts when importing NJG MiniMap, the developer moved the Lean Tween folder. Remove the one inside the Ninjutsu Games folder.

Re: Using NJG MiniMap with the Dialogue System

Posted: Fri Mar 04, 2016 10:13 am
by wioluskaelk
;)

Re: Using NJG MiniMap with the Dialogue System

Posted: Fri Mar 04, 2016 8:23 pm
by Tony Li
NJG MiniMap 1.6.0+ introduced an API change. The Dialogue System's support package has been updated to handle the change. You can download it from the Dialogue System Extras page. Note that the latest version of NJG MiniMap requires Unity 5.3.2+.