aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
Diffstat (limited to 'example')
-rw-r--r--example/complete.yaml32
1 files changed, 22 insertions, 10 deletions
diff --git a/example/complete.yaml b/example/complete.yaml
index 31cea74..e8e36e1 100644
--- a/example/complete.yaml
+++ b/example/complete.yaml
@@ -10,7 +10,8 @@ App:
- mkdir %w/userdata/%u/ttyrec
Menus:
- - Banner: 'Shell Game Launcher - Anonymous access%n======================================'
+ anonymous:
+ Banner: 'Shell Game Launcher - Anonymous access%n======================================'
XOffset: 5
YOffset: 2
MenuEntries:
@@ -23,13 +24,11 @@ Menus:
- Key: w
Label: watch
Action: watch_menu
- - Key: s
- Label: scores
- Action: scores
- Key: q
Label: quit
Action: quit
- - Banner: 'Shell Game Launcher%n==================='
+ logged_in:
+ Banner: 'Shell Game Launcher%n==================='
XOffset: 5
YOffset: 2
MenuEntries:
@@ -38,13 +37,19 @@ Menus:
Action: play nethack3.7
- Key: o
Label: edit game options
- Action: options
+ Action: menu options
- Key: w
Label: watch
- Action: watch_menu
- - Key: s
- Label: scores
- Action: scores
+ Action: watch
+ - Key: r
+ Label: replay
+ Action: replay
+ - Key: c
+ Label: change password
+ Action: passwd
+ - Key: m
+ Label: change email
+ Action: chmail
- Key: q
Label: quit
Action: quit
@@ -53,4 +58,11 @@ Games:
nethack3.7:
ChrootPath: /opt/nethack
FileMode: "0666"
+ ScoreCommands:
+ - exec /games/nethack -s all
+ - wait
Commands:
+ - cp /games/var/save/%u%n.gz /games/var/save/%u%n.gz.bak
+ - exec /games/nethack -u %n
+ Env:
+ NETHACKOPTIONS: "@%ruserdata/%n/%n.nhrc"