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.