Tips and option to disable them

Adds a more general way to handle gameplay tips, and adds
a boolean option "tips", which can be used to disable all
tips.  Adds a helpful longer message when the game goes
into the "farlook" mode.

Also adds a lua binding to easily show multi-line text
in a menu window.

Breaks save compat.
This commit is contained in:
Pasi Kallinen
2023-02-19 15:44:29 +02:00
parent 80842979aa
commit 5d659cf1f6
16 changed files with 131 additions and 16 deletions

View File

@@ -384,6 +384,15 @@ Example:
nh.stop_timer_at({x=5,y=6}, "melt-ice");
=== text
Show long texts in a menu window. Wordwraps automatically.
Example:
nh.text("long long long string\nwith newlines too.");
=== variable
Set or get a global variable. These are persistent, saved and restored along with the game.