Textdisplay Option
Option dialogue with Text Display
Campos
| Campo | Tipo | Padrão | Descrição | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
startTriggers | List<Ref<TriggerableEntry>> | empty | Triggers to fire when this dialogue starts. | ||||||||||||||||||||||||
endTriggers | List<Ref<TriggerableEntry>> | empty | Triggers to fire when this dialogue ends. | ||||||||||||||||||||||||
text | Var<String> | — | —PlaceholdersCoresVárias linhas | ||||||||||||||||||||||||
options | List<Option> | empty | —
|
| Campo | Tipo | Padrão | Descrição |
|---|---|---|---|
text | Var<String> | — | Text for this option.Várias linhas |
position | Var<Position> | ORIGIN | Optional position override for this option - when set it overrides the dialog's global position for this option. Use the position capture tool in-game. |
criteria | List<Criteria> | empty | The criteria that must be met for this option to show. |
modifiers | List<Modifier> | empty | The modifiers to apply when this option is chosen. |
triggers | List<Ref<TriggerableEntry>> | empty | The triggers to fire when this option is chosen. |
durationVar<Duration>ZEROsoundVar<Sound>EMPTYpositionVar<Position>ORIGINscaleVar<Double>1.0backgroundColorVar<Color>BLACK_BACKGROUNDtextOpacityVar<Double>1.0viewRangeVar<Double>64.0billboardVar<Boolean>trueshowBackgroundVar<Boolean>truespeakerBackgroundColorVar<Color>textBackgroundColorVar<Color>BLACK_BACKGROUNDselectedOptionBackgroundColorVar<Color>unselectedOptionBackgroundColorVar<Color>timerVar<Duration>ZEROcancelTriggersList<Ref<TriggerableEntry>>emptyCampos comuns do TypeWriter (criteria, modifiers, triggers, speaker)
| Campo | Tipo | Padrão | Descrição |
|---|---|---|---|
criteria | List<Criteria> | empty | — |
modifiers | List<Modifier> | empty | — |
triggers | List<Ref<TriggerableEntry>> | empty | — |
speaker | Ref<SpeakerEntry> | — | — |
How to use it
Each option has its own text, criteria, modifiers and triggers. Options whose criteria do not match are hidden, and the numbering follows the visible options.
- Choosing. Scroll the hotbar to move the highlight (it wraps around), then right-click in the air or on the floating text. Confirmation is only possible once the typing and the options have all appeared.
- Position. The text sits one block above the
speaker, or atposition. Options are stacked below the text. An optionpositionplaces that single option at an absolute point and removes it from the stack. - Timer. With
timerabove zero the dialogue is cancelled when it expires andcancelTriggersfire. Show the countdown with%typewriter_textdisplaydialogue_timer%intextor in an option text. - Selected option. The index of the highlighted option (starting at 1) is stored in the interaction context for other entries.
- Colours.
selectedOptionBackgroundColorandunselectedOptionBackgroundColorcolour the options.