๐Ÿ’ฌ
Conversation Wiki
  • ๐Ÿ’ฌConversation
  • ๐Ÿ“–Basics
    • Folder
    • File
    • Step Architecture
  • ๐ŸชœSteps
    • ConsoleCommandStep
    • ForcePlayerCommand
    • ActionBarStep
    • ChatClickChoiceTextStep
    • ClickTextStep
    • DelayTextStep
    • MovementChoiceTextStep
    • StartConversationStep
    • PlayerPlaySound
  • ๐Ÿ“•Conditions
    • PAPICondition
    • PermissionCondition
  • ๐ŸชTriggers
    • BlockTrigger
    • NpcTrigger
  • โš™๏ธOptions
    • CancelCommandOption
    • EndStepOption
    • HideChatOption
    • MoveAwayToEndConversationOption
    • NoDamageOption
    • PositionLockOption
    • RotationLockOption
    • ShiftToEndConversationOption
  • ๐Ÿ› ๏ธAPI
    • Implemented in your project
    • Simple case with the API
    • Adding a custom module with the API
Powered by GitBook
On this page
  1. Basics

File

In one file you can put multiple conversations

Jim:
#....conversation content
JimBrother:
#....conversation content
JimHouseSign:
#....conversation content

A conversation is separated in several parts

Steps

Step represent an action in the conversation, the step can lead to another step or to several other steps and thus create branches.

With this you can for exemple, display text, execute a command, display clickable text etc...

Exemple:

    hello:
      type: delayed-text
      delay: 10
      text:
        - "{name}"
        - "ยง7Bonjour %player_name%, comment vas tu ?"
      next: d

Conditions

The conditions are as the name indicates conditions necessary to either execute a step or an entire conversation

Exemple:

  conditions:
    papi:
      - "%player_health% > 10"

Triggers

Triggers allow you to trigger a conversation based on something, for example clicking on an npc or a block or passing by an npc or a block

Exemple:

  triggers:
    npc:
      id: 7
      triggers:
        - rightclick
        - around{r=2}

Options

The options allow you to have an effect during the entire conversation. For example stop the player's movement, stop the conversation when the player moves away from the place of the conversation or make the player immortal during the conversation.

Exemple:

  options:
    - moveawaytoend{r=4}
    - shifttoend
    - endstep{s=end}
    - hideChat
PreviousFolderNextStep Architecture

Last updated 2 years ago

๐Ÿ“–