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

Sher'Tul control orb text correctly translates when you speak Sher'Tul

git-svn-id: http://svn.net-core.org/repos/t-engine4@4202 51575b47-30f0-44d4-a5cc-537603b46e54
parent 5be73382
No related branches found
No related tags found
No related merge requests found
......@@ -20,11 +20,12 @@
local has_rod = function(npc, player)
return player:findInAllInventoriesBy("define_as", "ROD_OF_RECALL") and not player:isQuestStatus("shertul-fortress", engine.Quest.COMPLETED, "butler")
end
local read = player:attr("speaks_shertul")
newChat{ id="welcome",
text = [[*#LIGHT_GREEN#This orb seems to represent the world of Eyal as a whole. It is also probably used for controlling the fortress.
You do not understand the inscriptions there.#WHITE#*
Rokzz krilt copru.]],
]]..(not read and [[You do not understand the inscriptions there.#WHITE#*
#{italic}#"Rokzan krilt copru."#{normal}#]] or [[#WHITE#*#{italic}#"Insert control rod."#{normal}#]]),
answers = {
{"[Examine the orb]", jump="examine", cond=has_rod},
-- {"[Fly the fortress]", action=function(npc, player) player:hasQuest("shertul-fortress"):fly() end},
......
......@@ -43,7 +43,7 @@ newEntity{
always_remember = true,
block_move = function(self, x, y, e, act, couldpass)
if e and e.player and act then
local chat = require("engine.Chat").new("shertul-fortress-command-orb", self, e)
local chat = require("engine.Chat").new("shertul-fortress-command-orb", self, e, {player=e})
chat:invoke()
end
return true
......
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