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

binding ties

git-svn-id: http://svn.net-core.org/repos/t-engine4@4170 51575b47-30f0-44d4-a5cc-537603b46e54
parent ebb09f6e
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,7 @@
newChat{ id="welcome",
text = [[What may I do for you?]],
answers = {
{"Lady Aeryn, at last I am back home! [tell her your story]", jump="return", cond=function(npc, player) return player:hasQuest("start-sunwall") and not player:isQuestStatus("start-sunwall", engine.Quest.COMPLETED, "return") end, action=function(npc, player) player:setQuestStatus("start-sunwall", engine.Quest.COMPLETED, "return") end},
{"Tell me more about the Gates of Morning.", jump="explain-gates", cond=function(npc, player) return player.faction ~= "sunwall" end},
{"Before I came here, I happened upon members of the Sunwall in Maj'Eyal. Do you know of this?.", jump="sunwall_west", cond=function(npc, player) return game.state.found_sunwall_west and not npc.been_asked_sunwall_west end, action=function(npc, player) npc.been_asked_sunwall_west = true end},
{"I need help in my hunt for clues about the staff.", jump="clues", cond=function(npc, player) return game.state:isAdvanced() and not player:hasQuest("orc-pride") end},
......@@ -29,6 +30,14 @@ newChat{ id="welcome",
}
}
newChat{ id="return",
text = [[@playername@! We thought you had died in the portal explosion. I am glad we were wrong, you saved the sunwall.
The news about the staff is troubling. Ah well, please at least take time to rest for a while.]],
answers = {
{"I shall, thank you, my lady.", jump="welcome"},
},
}
newChat{ id="explain-gates",
text = [[There are two main groups in the population here, Humans and Elves.
Humans came here in the Age of Pyre. Our ancestors were part of a Mardrop expedition to find what had happened to the Naloren lands that sunk under the sea. Their ship was wrecked and the survivors landed on this continent.
......
......@@ -20,7 +20,8 @@
newChat{ id="welcome",
text = [[Thank you, @playername@. I hate to admit it, but you saved my life.]],
answers = {
{"At your service. But may I ask what you were doing in this dark place?", jump="what"},
{"At your service. But may I ask what you were doing in this dark place?", jump="what", cond=function(npc, player) return not player:hasQuest("start-sunwall") end},
{"At your service. I have been gone for months, but I can feel it, at last this is my homeland!", jump="back", cond=function(npc, player) return player:hasQuest("start-sunwall") end},
}
}
......@@ -40,4 +41,13 @@ Tell High Sun Paladin Aeryn that you met me. I'll send word to let you pass.]],
}
}
newChat{ id="back",
text = [[Gone? Wait, this face.. you are @playername@! We thought you died in the naga portal explosion!
Thanks to your courrage the Gates of Morning still stand.
You should go there at once.]],
answers = {
{"Sadly I am the bringer of bad news, the orcs are planning something. Good luck, my lady."},
}
}
return "welcome"
......@@ -22,7 +22,13 @@ desc = function(self, who)
local desc = {}
desc[#desc+1] = "Nagas are invading the slazish fens. The Sunwall can not fight on two fronts, you need to stop the invaders before it is too late.\n Locate and destroy the invader's portal."
if self:isCompleted("slazish") then
desc[#desc+1] = "#LIGHT_GREEN#* .#WHITE#"
desc[#desc+1] = "#LIGHT_GREEN#* You have destroyed the naga portal, the invasion is stopped.#WHITE#"
if self:isCompleted("return") then
desc[#desc+1] = "#LIGHT_GREEN#* You are back in Var'Eyal, the Far East as the people from the west call it.#WHITE#"
else
desc[#desc+1] = "#SLATE#* However you were teleported to a distant land, you must find a way back to the Gates of Morning.#WHITE#"
end
else
desc[#desc+1] = "#SLATE#* You must stop the nagas.#WHITE#"
end
......@@ -31,7 +37,7 @@ end
on_status_change = function(self, who, status, sub)
if sub then
if self:isCompleted("slazish") then
if self:isCompleted("return") then
who:setQuestStatus(self.id, engine.Quest.DONE)
who:grantQuest(who.celestial_race_start_quest)
end
......
......@@ -68,6 +68,7 @@ newEntity{ base="BOGWATER",
if cnt > max then
game.log("#VIOLET#The portal starts to break down, run!")
self.broken = true
who:setQuestStatus("start-sunwall", engine.Quest.COMPLETED, "slazish")
game:onTickEnd(function()
local sx, sy = util.findFreeGrid(x, y, 10, true, {[engine.Map.ACTOR]=true})
local npc = game.zone:makeEntityByName(game.level, "actor", "ZOISLA")
......
......@@ -17,7 +17,7 @@
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
load("/data/general/objects/objects-maj-eyal.lua")
load("/data/general/objects/objects-far-east.lua")
for i = 1, 3 do
newEntity{ base = "BASE_LORE",
......
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