Using NJG MiniMap with the Dialogue System

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
Tony Li
Posts: 22106
Joined: Thu Jul 18, 2013 1:27 pm

Using NJG MiniMap with the Dialogue System

Post 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.
wioluskaelk
Posts: 31
Joined: Fri Oct 02, 2015 6:01 pm
Location: Netherland/Poland
Contact:

Re: Using NJG MiniMap with the Dialogue System

Post by wioluskaelk »

;)
User avatar
Tony Li
Posts: 22106
Joined: Thu Jul 18, 2013 1:27 pm

Re: Using NJG MiniMap with the Dialogue System

Post 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+.
Post Reply