1
0
mirror of https://github.com/TeTpaAka/quests.git synced 2024-11-14 06:20:35 +01:00

Add quests.show_formspec(playername)

This commit is contained in:
TeTpaAka 2015-03-02 15:14:39 +01:00
parent 7a41a2a8ad
commit 29be1e0908
2 changed files with 8 additions and 0 deletions

3
README
View File

@ -63,3 +63,6 @@ quests.show_hud(playername)
quests.hide_hud(playername)
-- hides the hud for player playername
quests.show_formspec(playername)
-- shows the player playername his/her questlog

View File

@ -422,6 +422,11 @@ function quests.create_info(playername, questname)
return formspec
end
-- show the player playername his/her questlog
function quests.show_formspec(playername)
minetest.show_formspec(playername, "quests:questlog", quests.create_formspec(playername))
end
-- chatcommand to see a full list of quests:
minetest.register_chatcommand("quests", {
params = "",