1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
-- Ingame contextual help
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
-----------------------Here comes the definition of help-----------------------
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
ingame_help
{
["callback"] = "monster_chat",
["desc"] =
{
"Somebody is speaking to you it seems. You can talk back with the Y key.",
"This can lead to quests. You can also give items to 'monsters' with the y key.",
}
}
ingame_help
{
["no_test"] = TRUE,
["callback"] = "select_context",
["fct"] = function(typ, name)
-- list of files for classes, { filename, anchor }
local t =
{
["ability"] =
{
["Spread blows"] = { "ability.txt", 02 },
["Tree walking"] = { "ability.txt", 03 },
["Perfect casting"] = { "ability.txt", 04 },
["Extra Max Blow(1)"] = { "ability.txt", 05 },
["Extra Max Blow(2)"] = { "ability.txt", 06 },
["Ammo creation"] = { "ability.txt", 07 },
["Touch of death"] = { "ability.txt", 08 },
["Artifact Creation"] = { "ability.txt", 09 },
["Far reaching attack"] = { "ability.txt", 10 },
["Trapping"] = { "ability.txt", 11 },
["Undead Form"] = { "ability.txt", 12 },
},
}
if t[typ][name] then ingame_help_doc(t[typ][name][1], t[typ][name][2])
else ingame_help_doc("help.hlp", 0)
end
end,
}
|