ssod

Toast Message Guide

Toasts are optional visual overlays that appear beneath the rest of the game content in Seven Spells of Destruction. Use them to provide narrative flavour, humorous feedback, or highlight minor events.

πŸ›‘ Toasts are for occasional use only. Overusing them may annoy players or reduce their narrative impact.


πŸ“¦ What is a Toast?

A toast is a temporary message shown to the player in a small visual box, with a thumbnail image and short block of text. It appears below the current paragraph content.

They are not interactive β€” they are purely informational.


πŸ§ͺ Example

toast("You have drank the 'ad jui'!\n\nThe label originally read 'mad juice'... This was quite a bad idea.", "adjui.png");
add_stamina(-8);
add_skill(-6);
add_speed(-4);
add_luck(-5);
add_sneak(-4);

This snippet shows a toast with a funny warning and applies several negative stat changes.


πŸ”§ Syntax

toast(text, thumbnail_filename);

Parameters:

⚠️ The image must be uploaded to the GitHub repo’s resources/ folder and will be served via CDN.


✨ Best Practices


πŸ›  Troubleshooting


βœ… Summary

Toasts are an effective way to create lightweight flavour moments. Use them alongside stat changes, achievements, or transformations to let the player feel the consequences of their actions β€” without breaking the flow of gameplay.