BetonQuest Dialogue

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 so2
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.
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% doneRead more about BetonQuest integration here.
Last updated
