This macro pops a message up that slides out from the right side of the screen, a short notification that's less distracting than a dialog or alert, for things like inventory changes, experience gains, or even achievements.
This macro pops a message up that slides out from the right side of the screen, a short notification that's less distracting than a dialog or alert, for things like inventory changes, experience gains, or even achievements.
📝 Note:
Unlike most of my code, this macro requires you to install the CSS code as well in your story's Stylesheet section.
⚠️ Attention:
Note that giving the player unlimited control over these notifications, or trying to show several at once or right after each other will cause them to trip over themselves as they try to animate, so try to keep them spaced out, and don't assign them to links or buttons you expect the player to press repeatedly.
Live demo
Demo Twee code:
:: Start
<<notify 5s 'inventory-update'>>Example notification.<</notify>>\
<<link 'Notify me!'>><<notify 2s 'inventory-update'>>You have been notified.<</notify>><</link>>