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

@@ -4529,6 +4529,9 @@ screen.
uses a timer-based delay.
The default is on if configured into the program.)
Persistent.
.lp "tips "
Show some helpful tips during gameplay (default on).
Persistent.
.lp tombstone
Draw a tombstone graphic upon your death (default on).
Persistent.

View File

@@ -4957,6 +4957,9 @@ screen. (Applies to ``tty'' and ``curses'' interfaces only; ``X11'' interface a
uses a timer-based delay. The default is on if configured into the
program.) Persistent.
%.lp
\item[\ib{tips}]
Show some helpful tips during gameplay (default on). Persistent.
%.lp
\item[\ib{tombstone}]
Draw a tombstone graphic upon your death (default on). Persistent.
%.lp

View File

@@ -1977,6 +1977,8 @@ have 'I u' mention whether there are any unpaid items on the floor (unusual
but not impossible); it doesn't itemize them or show shop price
add items given a Japanese name when playing as a Samurai to discoveries list
make music improvisations more varied and interesting, as well as useful
give a helpful tip when first entering "farlook" mode
add a boolean option tips to disable all of the helpful tips
Platform- and/or Interface-Specific New Features

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.