Skip to content
Snippets Groups Projects
Commit 2b96fc5d authored by dg's avatar dg
Browse files

add mage apprentice quest (not availeble/done)

git-svn-id: http://svn.net-core.org/repos/t-engine4@570 51575b47-30f0-44d4-a5cc-537603b46e54
parent a3024be8
No related branches found
No related tags found
No related merge requests found
-- ToME - Tales of Middle-Earth
-- Copyright (C) 2009, 2010 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
--
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
newChat{ id="welcome",
text = [[#LIGHT_GREEN#*Before you stands a young man, a novice mage by his looks*#WHITE#
Good day to you fellow traveller!]],
answers = {
{"What brings an apprentice mage in the wilds?", cond=function(npc, player) return not player:hasQuest("mage-apprentice") end, jump="quest"},
{"Do you have any items to sell?", jump="store"},
{"Sorry I have to go!"},
}
}
newChat{ id="quest",
text = [[Ahh, that is my sad story ... but I would not bother you with it my friend.]],
answers = {
{"Please you do not.", jump="quest2"},
{"Ok, bye then!"},
}
}
newChat{ id="quest2",
text = [[Well if you insist...
I am a novice mage, as you might have noticed, and my goal is to be accepted by the elves of Angolwen to be taugth the secrets of the arcane.]],
answers = {
{"Who are the elves of Angolwen?", jump="quest3"},
{"Well good luck, bye!"},
}
}
newChat{ id="quest3",
text = [[The keepers of ar... err I do not think I am supposed to talk about them sorry my friend...
Anyway, I must collect 15 magic staves and I have yet to find one. If you could bring me some should you find any, I would be grateful]],
answers = {
{"I will keep that in mind", action=function(npc, player) player:grantQuest("mage-apprentice") end},
{"No way, bye!"},
}
}
return "welcome"
-- ToME - Tales of Middle-Earth
-- Copyright (C) 2009, 2010 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
--
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
name = "Apprentice Hardship"
desc = function(self, who)
local desc = {}
desc[#desc+1] = "You met a novice mage who was tasked to collect many staves."
desc[#desc+1] = "He asked for your help should you collect some that you do not use."
if self:isCompleted() then
else
desc[#desc+1] = "#SLATE#* "..self.nb_collect.."/15#WHITE#"
end
return table.concat(desc, "\n")
end
on_status_change = function(self, who, status, sub)
if self:isCompleted() then
end
end
on_grant = function(self, who)
self.nb_collect = 0
end
collect_staff = function(self, who, o)
self.nb_collect = self.nb_collect + 1
end
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment