NPC with dialogues [Bridgehaven]

Hi, i released a script allowing to make dialogues with dialogue trees.

The messages property array contains your messages.

Messages[1]= Text Hi, this is something a NPC says…/Options *1OK *2Hmm *999Bye
Messages[2]= Text this is the npc reaction to your Hmm…/Options *1Blub *2Blab *999Bye

This was an example how the property array could look like.
The dialogue would go like this:

NPC: Hi, this is something a NPC says…
Player replies with “OK”(*1), “Hmm”(*2) or “Bye”(*999).
Player: OK (*1)
NPC: Hi, this is something a NPC says… (*1)
Player replies with “OK”, “Hmm” or “Bye”.
Player: Hmm (*2)
NPC: this is the npc reaction to your Hmm…
Player replies with “Blub”(*1), “Blab”(*2) or “Bye”(*999).
Player: Bye (*999)
Dialogue ends

*X (with X~=999 and X<=#Messages) means that if this reply is selected, then it will trigger the message in Messages[X] with its options.
*X (with X=999) means that if this reply is selected, then the dialogue will end.
*X (with X~=999 and X>#Messages) means that the script will throw an error.

Have fun.

2 Likes

What depth of interaction could you create with this?

It’s the most limited kind of dialogues, that have no other purpose than informing players. They don’t trigger any events or influence the game environment (other than with the power of words :rofl:).
This was based on the dialogues i used in Bridgehaven, but i basically removed all kinds of functionality (for accessibility reasons, i had a whole quest system etc tied to that).
I have a couple other dialogue scripts that do all of this, but it’s not accessible at all (despite being not public, they also require a lot of coding for events, dialogue box appearence, highlighting the speaking character, playing sounds etc). You could check Artifact Hunter, but i think ppl that can’t code won’t have any benefit from it without me making tons of adjustment :sweat_smile:.

Edt.: You are basically the first one showing interest in that, so i didn’t think publishing a more functional dialogue package would benefit anyone, but will think about it after finishing my current project :+1:.