Tooltips
Discord
  • Tooltips
  • Start here
  • Support
  • Plugin
    • Features
    • Commands
    • FAQ
    • Guides
      • Clearing cache
      • Furniture shop
      • BetonQuest Dialogue
      • Languages
      • Manual width
  • Configuration
    • Theme
      • Theme textures
      • Making a custom theme
    • Icon
    • Preset
      • Conditions
      • Condition list
      • Show
      • Actions
        • Commands
      • Functions
      • Animations
      • Argument Types
  • Extra
    • Notable 2.0 Changes
    • Integrations
    • Variables
    • API
      • Custom Conditions
Powered by GitBook
On this page
  1. Plugin
  2. Guides

BetonQuest Dialogue

PreviousFurniture shopNextLanguages

Last updated 4 months ago

1

Configure BetonQuest

In order for Tooltips to be able to read BetonQuest dialogues, it has to be set as the conversationIO. This can be done in a conversation package:

conversations:
  Beton:
    quester: "Beton"
    first: "firstGreeting"
    interceptor: none # <-- This will allow chat to work
    conversationIO: tooltips # <-- Like so

2

Create the necessary presets

Here's a basic setup which supports animations. Put this into plugins/Tooltips/presets. The animations have to be defined in the BetonQuest config and must use the MiniMessage format.

dialogue.yml
speaking:
    priority: 1
    text:
    - $context(betonquest.npc)
    - $preprocess($context(betonquest.text))
    theme: default/five-line
    conditions:
    - betonquest REQUIRED
    - compare{1=$var(done)} CANCEL
    actions:
        right-click:
        - skip
        animation-finished:
        - delay 3 setvar %player% done true
        
done:
    priority: 2
    text:
    - $context(betonquest.npc)
    - $static($strip($context(betonquest.text)))
    - $static($if($context(betonquest.options[length]) > 0, "<green>» $context(betonquest.options[$context(betonquest.selected)])", ""))
    theme: default/five-line
    conditions:
    - betonquest REQUIRED
    - compare{1=$var(done)} REQUIRED
    actions:
        left-click:
        - nextoption
        - redisplay
        right-click:
        - selectoption $context(betonquest.selected)
        - delay 6 clearvar %player% done

Read more about .

3

Reload

Reload Tooltips using /tt reload

Reload BetonQuest using /bq reload

BetonQuest integration here