#(hiki2) Rpg Dialogue System

26 messages · Page 1 of 1 (latest)

round sundial
#

Trying to discover a way to do it
A dialogue system where players can talk with the npc like:

Npc -> “says something”
Player -> “select answer 1”
-> “select answer 2”
Etc
And then execute certain actions if some dialogue path is taken

cobalt dirgeBOT
#

(hiki2) Rpg Dialogue System

cobalt dirgeBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

clear fiber
#

!g npcs

patent belfryBOT
clear fiber
#

That part of the guide isn't finished but you can find all relevant docs there ^

round sundial
#

Sorry but i still cant figure out how would i do it : (

#

any tips?

#

these kind of npc scripts are confusing for me

#

trying to understand but it is hard to

tame hearth
#

did you?

round sundial
#

I read all of it. Also, no need to talk like that, you’re being disrespectful.

#

I just didn’t figure out yet how to make a conversation with it

#

A real dialogue with player interaction
I did understand most of it, but couldn’t apply it to what i initially wanted to.
That’s why i asked for help.

heady rose
#

!l chat trigger

patent belfryBOT
# heady rose !l chat trigger

Chat Triggers are triggered when a player chats to the NPC (usually while standing close to the NPC and facing the NPC).

They can also be triggered by the command "/denizenclickable chat hello" (where 'hello' is replaced with the chat message). This is used for clickable triggers.
This option enforces all the same limitations as chatting directly, but unlike real chat, won't display the message in global chat when there's no match.
This requires players have the permission "denizen.clickable".

Interact scripts are allowed to define a list of possible messages a player may type and the scripts triggered in response.

Within any given step, the format is then as follows:


# Some identifier for the trigger, this only serves to make the sub-triggers unique, and sort them (alphabeticall

...

Group

NPC Interact Scripts

heady rose
#

Alternatively you could jsut..

#

!c choose

patent belfryBOT
# heady rose !c choose
Group

queue

Syntax

choose [<option>] [<cases>]

Short Description

Chooses an option from the list of cases.

Description

Chooses an option from the list of cases.
Intended to replace a long chain of simplistic if/else if or complicated script path selection systems.
Simply input the selected option, and the system will automatically jump to the most relevant case input.
Cases are given as a sub-set of commands inside the current command (see Usage for samples).

Optionally, specify "default" in place of a case to give a result when all other cases fail to match.

Cases must be static text. They may not contain tag...

heady rose
#

But chat triggers are most likely what you want.

round sundial
#

Yeah, was thinking something about it
Maybe something concrete will come in mind soon

#

Thanks

#

🤝🏻