mirror of
https://github.com/TeTpaAka/quests.git
synced 2024-12-22 16:50:39 +01:00
Add quests.show_formspec(playername)
This commit is contained in:
parent
7a41a2a8ad
commit
29be1e0908
3
README
3
README
@ -63,3 +63,6 @@ quests.show_hud(playername)
|
|||||||
|
|
||||||
quests.hide_hud(playername)
|
quests.hide_hud(playername)
|
||||||
-- hides the hud for player playername
|
-- hides the hud for player playername
|
||||||
|
|
||||||
|
quests.show_formspec(playername)
|
||||||
|
-- shows the player playername his/her questlog
|
||||||
|
5
init.lua
5
init.lua
@ -422,6 +422,11 @@ function quests.create_info(playername, questname)
|
|||||||
return formspec
|
return formspec
|
||||||
end
|
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:
|
-- chatcommand to see a full list of quests:
|
||||||
minetest.register_chatcommand("quests", {
|
minetest.register_chatcommand("quests", {
|
||||||
params = "",
|
params = "",
|
||||||
|
Loading…
Reference in New Issue
Block a user