1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-18 08:10:38 +01:00
server-nalc/mods/pclasses/adventurer.lua
LeMagnesium 59c4c8e919
[mff_pclasses & pclasses] Enhance showcasing menus
- Remove the labels introduced last time and use the old line-wrapping
   textareas
 - Add showcase screenshots for the four classes presented
 - Add a little map of the spawn and both available class buildings
 - For #473
2016-09-24 15:14:35 +02:00

27 lines
1.1 KiB
Lua
Executable File

-----------------------------
-- Boilerplate class
--
pclasses.api.register_class("adventurer", {
switch_params = {
color = { r = 142, g = 64, b = 00},
tile = "wool_white.png",
holo_item = "unified_inventory:bag_large"
},
on_assigned = function(pname, inform)
if inform then
minetest.chat_send_player(pname, "You are now an adventurer")
end
end,
on_unassigned = function(pname)
end,
informations = pclasses.api.textify("Adventurer, the casual players, or hardcore players. Whatever end of the spectrum\n" ..
"you're in, adventurer will bring you what you want : no advantages, no help. Maybe you\n" ..
"don't want that if you just began playing. If that's the case.. just pick another tab and\n" ..
"read what's in it. You'll still be able to come back to this boilerplate class whenever you\n" ..
"want to (minus actual cooldown regulation of.. an hour between two changes) if you like\n" ..
"being hurt, or hardcore gaming, which, from afar, look alike.... The pedestal has a backpack\n" ..
"over it, because, yay adventures!") .. "image[2.4,5.6;6,4;pclasses_showcase_adventurer.png]"
})