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

achievement for the portal quest

git-svn-id: http://svn.net-core.org/repos/t-engine4@1271 51575b47-30f0-44d4-a5cc-537603b46e54
parent e8f72793
No related branches found
No related tags found
No related merge requests found
...@@ -113,3 +113,7 @@ newAchievement{ ...@@ -113,3 +113,7 @@ newAchievement{
name = "Curse Lifter", id = "CURSE_ERASER", name = "Curse Lifter", id = "CURSE_ERASER",
desc = [[Killed Ben Cruthdar the Cursed.]], desc = [[Killed Ben Cruthdar the Cursed.]],
} }
newAchievement{
name = "There and back again", id = "WEST_PORTAL",
desc = [[Opened a portal to Middle-earth from the Far East.]],
}
...@@ -116,14 +116,8 @@ This one seems to go near the town of Minas Tirith in the West.]], ...@@ -116,14 +116,8 @@ This one seems to go near the town of Minas Tirith in the West.]],
game.zone:addEntity(game.level, zemekkys, "actor", 41, 17) game.zone:addEntity(game.level, zemekkys, "actor", 41, 17)
game.zone:addEntity(game.level, g, "terrain", 41, 16) game.zone:addEntity(game.level, g, "terrain", 41, 16)
game.player:move(40, 16, true) player:move(40, 16, true)
end
on_status_change = function(self, who, status, sub) player:setQuestStatus(self.id, engine.Quest.DONE)
if sub then world:gainAchievement("WEST_PORTAL", game.player)
-- if self:isCompleted() then
-- who:setQuestStatus(self.id, engine.Quest.COMPLETED)
-- world:gainAchievement("ORC_PRIDE", game.player)
-- end
end
end end
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