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

Portal to Angolwen will be disabled if you use antimagic

The mage apprentice will have an appropriate reaction when meeting an antimagic character


git-svn-id: http://svn.net-core.org/repos/t-engine4@2518 51575b47-30f0-44d4-a5cc-537603b46e54
parent c921d3ab
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,22 @@
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
local p = game.party:findMember{main=true}
if p:attr("forbid_arcane") then
newChat{ id="welcome",
text = [[#LIGHT_GREEN#*Before you stands a young man, a novice mage by his looks*#WHITE#
Good day to yo...#LIGHT_GREEN#*He stares at you and starts to run away fast!*#WHITE#
Do not kill me please!]],
answers = {
{"...", action = function(npc, player) npc:die() end,
},
}
}
return "welcome"
end
newChat{ id="welcome",
text = [[#LIGHT_GREEN#*Before you stands a young man, a novice mage by his looks*#WHITE#
Good day to you, fellow traveler!]],
......
......@@ -83,7 +83,7 @@ quickEntity('rel-tunnel', {always_remember = true, show_tooltip=true, name="Tunn
-- Angolwen is only know from the start to mages
if game.player:knowTalent(game.player.T_TELEPORT_ANGOLWEN) then
quickEntity('angolwen', {always_remember = true, show_tooltip=true, name="Angolwen, the hidden city of magic", desc="Secret place of magic, set apart from the world to protect it.\nLead by the Supreme Archmage Linaniil.", display='*', color=colors.WHITE, back_color=colors.UMBER, image="terrain/town1.png", notice = true, change_level=1, change_zone="town-angolwen"})
quickEntity('angolwen-teleport', {always_remember = true, show_tooltip=true, name="Hidden teleportation portal to Angolwen, the hidden city of magic", display='&', color=colors.LIGHT_BLUE, back_color=colors.DARK_GREEN, image="terrain/grass.png", add_displays = {mod.class.Grid.new{image="terrain/maze_teleport.png"}}, notice = true, change_level=1, change_zone="town-angolwen"})
quickEntity('angolwen-teleport', {always_remember = true, show_tooltip=true, name="Hidden teleportation portal to Angolwen, the hidden city of magic", display='&', color=colors.LIGHT_BLUE, back_color=colors.DARK_GREEN, image="terrain/grass.png", add_displays = {mod.class.Grid.new{image="terrain/maze_teleport.png"}}, notice = true, change_level=1, change_zone="town-angolwen", change_level_check = function() local p = game.party:findMember{main=true} if p:attr("forbid_arcane") then game.log("The portal fizzles.") return true end return false end})
else
quickEntity('angolwen', '^')
quickEntity('angolwen-teleport', '.')
......
......@@ -134,7 +134,8 @@ access_angolwen = function(self, player)
desc="The city of magic lies inside the mountains to the west. Either a spell or a portal is needed to access it.",
display='*', color=colors.VIOLET, image = "terrain/grass.png", add_displays = {mod.class.Grid.new{image="terrain/maze_teleport.png"}},
notice = true,
change_level=1, change_zone="town-angolwen"
change_level=1, change_zone="town-angolwen",
change_level_check = function() local p = game.party:findMember{main=true} if p:attr("forbid_arcane") then game.log("The portal fizzles.") return true end return false end
}
g:resolve() g:resolve(nil, true)
p:resolve() p:resolve(nil, 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