Shows multi-level dialog options. It will show the player all lines from the top level. After player chooses a line, the next level of dialog is displayed.
Author | hogart |
Website | https://github.com/hogart/sugar-cube-utils#dlg-level-and-line |
Story format | SugarCube 2 |
Last checked | Thu Sep 03 2020 |
License | MIT License |
Download | dlg.zip |
<<dlg>>
is split into <<level>>
s, which, in turn, consist of <<line>>
s. It will show the player all lines from given level. After player chooses a line, line's content gets appended and next level is displayed.
::Start
— Hi!
<<dlg "dlg" 0 "➤">>\
<<level 0>>\
<<line "— How are you" "☺ ">>
— Hi, how are you?
— Everything's great! You?
<</line>>
<<line "— Hi!" "👋 ">>
— Hi!
— How are you?
<</line>>
<</level>>\
<<level 1>>\
<<line "— Things are tough" "😢 ">>
— Things are tough, my pet hamster just died!:(
<</line>>
<<line "— Things are fine..." "❤ ">>
— Things are fine, wanna hang out?
<</line>>
<<line "— Time to go...">>
— Sry, playing new game, talk later!
<</line>>
<</level>>
<</dlg>>
Demo Twee code:
:: Start — Hi! <<dlg "dlg" 0 "➤">>\ <<level 0>>\ <<line "— How are you?" "🙂 ">> — //Hi, how are you?// — Everything's great! You? <</line>> <<line "— Hi!" "👋 ">> — //Hi!// — How are you? <</line>> <</level>>\ <<level 1>>\ <<line "— Things are tough" "😢 ">> — //Things are tough, my pet hamster just died! :(// <</line>> <<line "— Things are fine..." "💖 ">> — //Things are fine, wanna hang out?// <</line>> <<line "— Time to go...">> — //Sry, playing new game, talk later!// <</line>> <</level>>\ <</dlg>>\