summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-06-08 19:01:19 +0200
committerBardur Arantsson <bardur@scientician.net>2012-06-08 19:01:19 +0200
commite88d49b8c45f429589018b84b219b80caa66d44b (patch)
tree81015fecd3e4be62a0cbaa868ace763344d74d3b /src
parent5867e77c9fd84033ec54c565e0d0759860c2a2c1 (diff)
Lua: Move "game start" help to C
Diffstat (limited to 'src')
-rw-r--r--src/help.c52
1 files changed, 50 insertions, 2 deletions
diff --git a/src/help.c b/src/help.c
index 7e9b110f..d90ffe58 100644
--- a/src/help.c
+++ b/src/help.c
@@ -13,8 +13,8 @@
#include "angband.h"
-#define DESC_MAX 10
-#define TRIGGERED_HELP_MAX 12
+#define DESC_MAX 14
+#define TRIGGERED_HELP_MAX 14
#define HELP_VOID_JUMPGATE 0
#define HELP_FOUNTAIN 1
@@ -28,6 +28,8 @@
#define HELP_GET_TRAP_KIT 9
#define HELP_GET_DEVICE 10
#define HELP_WILDERNESS 11
+#define HELP_GAME_TOME 12
+#define HELP_GAME_THEME 13
/**
* Struct for help triggered by a boolean condition
@@ -112,6 +114,14 @@ static bool_ trigger_end_turn_wilderness(void *in, void *out) {
(!p_ptr->astral));
}
+static bool_ trigger_game_theme(void *in, void *out) {
+ return (game_module_idx == MODULE_THEME);
+}
+
+static bool_ trigger_game_tome(void *in, void *out) {
+ return (game_module_idx == MODULE_TOME);
+}
+
/**
* Trigger-based help items
*/
@@ -220,6 +230,44 @@ static triggered_help_type triggered_help[TRIGGERED_HELP_MAX] =
"To enter the overview mode, press < while in the wilderness.",
NULL
}
+ },
+ { HELP_GAME_TOME,
+ HOOK_END_TURN,
+ trigger_game_tome,
+ { "Welcome to ToME! I am the spirit of knowledge and my task is to help you",
+ "to get used to how to play. I have prepared a #vparchment#y for you to #vread#y.",
+ "Press r, then space then select it. You can also check the documentation",
+ "by pressing ? at (nearly) any time.",
+ "The first place you can explore is Barrow-downs. Go to the west of town",
+ "and you should see a #v>#y there.",
+ "If you miss any of this you can press ctrl+p to see your message log.",
+ "Now I must reveal your task here. You are on a quest to investigate",
+ "the dreadful tower of Dol Guldur in the Mirkwood forest to see what evil",
+ "lurks there, but beware, you are not yet ready.",
+ "If you do not want me to bother you any more with tips, press = then go",
+ "into the ToME options and deactivate the ingame_help option.",
+ "You can see your quest log by pressing ctrl+q. Now go to your destiny!",
+ NULL
+ }
+ },
+ { HELP_GAME_THEME,
+ HOOK_END_TURN,
+ trigger_game_theme,
+ { "Welcome to Theme! I am the spirit of knowledge and my task is to help you",
+ "to get used to how to play. I have prepared a #vparchment#y for you to #vread#y.",
+ "Press r, then space then select it. You can also check the documentation",
+ "by pressing ? at (nearly) any time.",
+ "The first place you can explore is Barrow-downs. Go to the west of town",
+ "and you should see a #v>#y there.",
+ "If you miss any of this you can press ctrl+p to see your message log.",
+ "Now I must reveal your task here. You are on a quest to investigate",
+ "the dreadful tower of Dol Guldur in the Mirkwood forest to see what evil",
+ "lurks there, but beware, you are not yet ready.",
+ "If you do not want me to bother you any more with tips, press = then go",
+ "into the ToME options and deactivate the ingame_help option.",
+ "You can see your quest log by pressing ctrl+q. Now go to your destiny!",
+ NULL
+ }
}
};