capturetheflag/mods/ctf_inventory/init.lua

48 lines
1.4 KiB
Lua
Raw Normal View History

2015-11-29 00:34:51 +00:00
local items = {
2017-10-06 00:44:28 +00:00
minetest.colorize("#66a0ff", "Game Play"),
2016-02-15 01:27:20 +00:00
"",
2017-10-06 00:44:28 +00:00
"* Capture an enemy's flag by walking up to it, punching it, then",
" running and punching your team's flag.",
2016-02-15 01:27:20 +00:00
"* Look for guns, grenades and other resources in chests.",
"* Guns can destroy blocks.",
2017-10-06 00:44:28 +00:00
"* Good swords do more damage than guns, but need to be used at close range.",
"* If the match is getting boring, type /vote, then /yes to vote yes.",
"* Use apples to replenish health.",
"",
minetest.colorize("#66a0ff", "Team Co-op"),
"",
2016-02-15 01:27:20 +00:00
"* Your team has a chest near your flag.",
" Be warned that other teams can steal from it.",
"* Your team name is displayed in the top left.",
2015-11-29 00:34:51 +00:00
" to talk with only your team, type: /t message",
2017-10-06 00:44:28 +00:00
"",
minetest.colorize("#66a0ff", "Player Rankings"),
"",
"* See the league table by typing /rankings",
"* See your position in it by typing /rankings me",
"* Get to the top by capturing lots of flags, and having a high K/D ratio.",
"",
minetest.colorize("#66a0ff", "Contact Moderators"),
"",
2016-02-15 01:27:20 +00:00
"* Report people who sabotage using /report."
2015-11-29 00:34:51 +00:00
}
for i = 1, #items do
2016-02-15 01:27:20 +00:00
items[i] = minetest.formspec_escape(items[i])
2015-11-29 00:34:51 +00:00
end
2017-10-06 00:35:51 +00:00
local fs = [[
textlist[0,0;7.85,8.5;help;
]] .. table.concat(items, ",") .. "]"
2016-02-15 01:27:20 +00:00
sfinv.register_page("ctf_inventory:help", {
title = "Help",
2017-10-06 00:35:51 +00:00
get = function(self, player, context)
return sfinv.make_formspec(player, context, fs, false)
2016-02-15 01:27:20 +00:00
end
})
2015-11-29 00:34:51 +00:00
2015-12-07 23:00:32 +00:00
dofile(minetest.get_modpath("ctf_inventory") .. "/give_initial_stuff.lua")