Added the start for a quest log
parent
021ec9d982
commit
7679a57abe
15
Book.lua
15
Book.lua
|
@ -15,4 +15,17 @@ for name,story in pairs(adventures.registered_books) do
|
||||||
minetest.show_formspec(user:get_player_name(), nam, showBookFormspec(name, story))
|
minetest.show_formspec(user:get_player_name(), nam, showBookFormspec(name, story))
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local function showQuestLog()
|
||||||
|
local str = ""
|
||||||
|
return str
|
||||||
|
end
|
||||||
|
minetest.register_tool("adventures:questLog", {
|
||||||
|
description = "Quest Log",
|
||||||
|
inventory_image = "default_book.png",
|
||||||
|
stack_max = 1,
|
||||||
|
on_use = function(itemstack, user, pointed_thing)
|
||||||
|
minetest.show_formspec(user:get_player_name(), "adventures:questLog", showQuestLog())
|
||||||
|
end,
|
||||||
|
})
|
Loading…
Reference in New Issue