Minecraft Mod: Custom NPC's - Tutorial #1: Dialogs.
Today, I'm gonna show you 2 things.
1) How to add NPC's with the Minecraft mod, Custom NPC's.
2) How to add dialogs, and give it to said NPC's.
What you need to do first is to crack an egg into a pan and......wait, that's not right. Let's start over.
Go into creative mode, and open up your inventory. Search for NPC or NPC Wand(if you want to be more specific). It should look like a darker verison of the hoe.
Right click the ground with it and you should see a pop-up box, like this one:
Go to the Global tab, and select Dialogs:
These are the categories for the Dialogs your NPC's can have.
Click Add to add a new Dialog category, name it what you want, then select it and click on the Dialog button.
Click Add to make your first NPC Dialog.
Type in something that you can remember as the start of the dialog.
Click Edit next to Dialog Text. This is what the NPC will say.
Click close when you are done typing in what you want. It's time to test it.
Go to the Advanced tab, and click on Dialogs. You will get something that looks like this:
Click select option next to Number 0. And select the newly made dialog called '1st Quest' inside Yodason45's Quest or whatever you named yours.
Close the pop-up screen and right click your NPC(without the NPC Wand).
Okay time to add some options to say to him.
Right click him again with the NPC Wand, go to the Global tab and open up dialogs. Basically go back to this screen:
After that, Add another Dialog, and for this example, I'm gonna title it 'I'm good.', in response to the NPC's 'Hi. How are you?'.(The title doesn't show, it's just for you to remember what the Dialog text says, like a summary of sorts.)
I'm gonna edit the Dialog Text to make the NPC say, 'That's good to hear.'.
Now, these are two separate Dialog strings. I'm gonna attach the newly created one as an option to say, in the first one.
So select '1st Quest' or whatever you named the previous one and click the Edit button next to Dialog options.
Click Edit on the Number 1.
Title it according to what you want the option to display and click the button next to Option Type till it reads Dialog.
Then click Select Dialog and find the newly created Dialog, 'I'm good' or whatever you named yours.
Click done on all open pop-ups and close the NPC pop-up.
Right click your NPC(without the NPC Wand) and you should have the newly created option appear.
Add more options to it and you got an entire conversation.
That's it for Tutorial #1 for the Minecraft Mod: Custom NPC's.
Hope you learnt something.