capturetheflag/mods/ctf/ctf_inventory/init.lua

64 lines
2 KiB
Lua
Raw Normal View History

color = "#66A0FF"
2015-11-29 00:34:51 +00:00
local items = {
"",
color .. "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.",
"* Look for weapons and other resources in chests, or mine and use furnaces to make swords.",
2017-10-06 00:44:28 +00:00
"* Good swords do more damage than guns, but need to be used at close range.",
2018-11-18 13:15:32 +00:00
"* Use medkits to replenish health gradually.",
2018-01-02 20:13:30 +00:00
"* Gain more score by killing more than you die, or by capturing the flag.",
"* Players are immune for 5 seconds after they respawn.",
2021-05-27 10:51:20 +00:00
"* Access the pro section of the chest by achieving 10k+ score and either",
" killing 3 people for every 2 deaths and capturing the flag at least 10 times",
" or killing as many people as you die, capturing the flag on every 3rd attempt",
" and at least 30 times.",
2017-10-06 00:44:28 +00:00
"",
color .. "Team Co-op",
2017-10-06 00:44:28 +00:00
"",
2016-02-15 01:27:20 +00:00
"* Your team has a chest near your flag.",
"* 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
"",
color .. "Player Rankings",
2017-10-06 00:44:28 +00:00
"",
"* 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.",
"",
color .. "Contact Moderators",
2017-10-06 00:44:28 +00:00
"",
2021-05-27 10:51:20 +00:00
"* Report people using /report.",
"",
color .. "Other",
"",
2022-01-07 14:32:44 +00:00
"* Git repository of this server: https://git.sp-codes.de/minetest/capturetheflag",
"",
"* Official CaptureTheFlag Matrix Room (not related to this server):",
2022-01-07 14:32:44 +00:00
" https://matrix.to/#/#capturetheflag:matrix.org",
"",
"* Capture the Flag v2 Matrix Room of this server: ",
2022-01-07 14:32:44 +00:00
" https://matrix.to/#/#ctf:matrix.sp-codes.de",
"",
2021-05-27 10:51:20 +00:00
"* Capture The Flag Discord (not related to this server): https://discord.gg/vcZTRPX",
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
})