Thanks.indriApollo wrote:This is a very nice mod ! thank you TeTpaAka
I had to take a break due to my exams, but now I could continue working on this.
The newest update includes the option to automaticly hide the HUD.
Thanks.indriApollo wrote:This is a very nice mod ! thank you TeTpaAka
First, you register a quest on load time of the mod, like you would do with a node/item/entity:Aryandil wrote:I have a question. I'm rather new to computer skills when it comes to coding and all that and only just figured out where to put mods and maps. If you could explain how to use API, that would be great. Thank you!
Code: Select all
quests.register_quest("yourmod:quest", {
title = "Awesome quest",
description = "blablabla",
max = 10,
autoaccept = true,
callback = function(playername, questname)
minetest.chat_send_all(playername .. " has beaten " .. questname .."!")
end
}
Code: Select all
quests.start_quest("singleplayer", "yourmod:quest")
Code: Select all
quests.update_quest("singleplayer", -- or any other player
"yourmod:quest", 1) -- 1 or the amount of update
This mod is designed as a foundation for other mods to work on. It is not directly for the end user as it is useless on it's own, only for mod creators.amadin wrote:It is great mod, but i know to create many quests without gui interface is too long time and difficult for most peoples.
Code: Select all
2015-07-06 22:49:45: ERROR[main]: ServerError: /home/amaz/.minetest/mods/quests/core.lua:113: attempt to index field '?' (a nil value)
2015-07-06 22:49:45: ERROR[main]: stack traceback:
2015-07-06 22:49:45: ERROR[main]: /home/amaz/.minetest/mods/quests/core.lua:113: in function 'accept_quest'
2015-07-06 22:49:45: ERROR[main]: /home/amaz/.minetest/mods/quests/core.lua:89: in function 'update_quest'
2015-07-06 22:49:45: ERROR[main]: /home/amaz/.minetest/mods/sample_quest/init.lua:74: in function '?'
2015-07-06 22:49:45: ERROR[main]: /usr/local/share/minetest/builtin/game/register.lua:341: in function </usr/local/share/minetest/builtin/game/register.lua:329>
Writing quests to file
Code: Select all
015-07-06 22:53:52: ERROR[main]: ServerError: /home/amaz/.minetest/mods/quests/formspecs.lua:182: attempt to index field '?' (a nil value)
2015-07-06 22:53:52: ERROR[main]: stack traceback:
2015-07-06 22:53:52: ERROR[main]: /home/amaz/.minetest/mods/quests/formspecs.lua:182: in function '?'
2015-07-06 22:53:52: ERROR[main]: /usr/local/share/minetest/builtin/game/register.lua:341: in function </usr/local/share/minetest/builtin/game/register.lua:329>
It should be stable now, though it still needs a lot of testing. The only things I plan to add are in the TODO list in the first post. After that, I will bump the version to 1.0. The functionality should be given and the API shouldn't change.Minetestforfun wrote:Hi,
Can you share with use when you think your mod will be 1.0/stable version ?
Thank you in advance
Minetestforfun wrote:Version 1.0, Congratulation ! :p
Now need a xpframework/skillframework to work with this for create a RPG based server :)
Thanks you two.Wuzzy wrote:Great! Contratulations for reaching the 1.0 milestone. Now I just need to find an use case for this mod. xD
Users browsing this forum: Ahrefs [Bot] and 16 guests