#(hiki2) Rpg Dialogue System
26 messages · Page 1 of 1 (latest)
(hiki2) Rpg Dialogue System
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.
!g npcs
View the guide page 'NPCs' at: https://guide.denizenscript.com/guides/npcs/index.html
That part of the guide isn't finished but you can find all relevant docs there ^
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
what's confusing?
there's a script that is drop-in-ready, and it tells you what command to run to try it
did you?
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.
I don't believe there was any disrespect given or intent, they're only asking what parts are confusing so they can clarify it.
Npcs with interact scripts are generally what you want, but for a choice of dialogue you'll want to consider chat triggers
!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
...
NPC Interact Scripts
queue
choose [<option>] [<cases>]
Chooses an option from the list of cases.
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...
But chat triggers are most likely what you want.