This macro set helps you work with SugarCube's Dialog API without having to touch any JavaScript.
Overview
This macro set helps you work with SugarCube's Dialog API without having to touch any JavaScript.
Macros
<<dialog>>
<<onopen>>
<<onclose>>
<<dialogclose>>
Live demo
Demo Twee code:
:: Start
<<link 'Open dialog!'>>
<<dialog 'Greetings'>>\
<<set _hi to ['Hello!', 'Welcome.', 'Greetings!', 'Hi there!', 'Good day.']>> The computer says "<<= _hi.random()>>"
<</dialog>>
<</link>>