Commit 2ed3c14c92891e407f59da4fb1f47966fd0bc7c3

Authored by DarkGod
1 parent f176c98a

Added text to antimagic quest to explain why Ogres can do it

@@ -17,10 +17,15 @@ @@ -17,10 +17,15 @@
17 -- Nicolas Casalini "DarkGod" 17 -- Nicolas Casalini "DarkGod"
18 -- darkgod@te4.org 18 -- darkgod@te4.org
19 19
  20 +local ogretext = ""
  21 +if player.descriptor and player.descriptor.subrace == "Ogre" then
  22 + ogretext = "\n\n#{italic}##LIGHT_GREEN#*As you drink the potion, your runes start to burn as they fade away, and a terrible agony seems to sink through your skin to your bones, muscles, and heart. You black out from the pain, and come to a bit later, the runes gone forever. You feel very ill, and yet... cleansed.*#{normal}##WHITE#"
  23 +end
  24 +
20 newChat{ id="welcome", 25 newChat{ id="welcome",
21 - text = [[Excellent! You truly prove that no mage-wrought flame or storm can stand against blade and arrow! Come, learn our ways. You are ready. 26 + text = ([[Excellent! You truly prove that no mage-wrought flame or storm can stand against blade and arrow! Come, learn our ways. You are ready.
22 #LIGHT_GREEN#*he gives you a potion.*#WHITE# 27 #LIGHT_GREEN#*he gives you a potion.*#WHITE#
23 -Drink this. We extract it from a very rare kind of drake. It will grant you powers to fight and cancel magic, but never again will you be able to use magic.]], 28 +Drink this. We extract it from a very rare kind of drake. It will grant you powers to fight and cancel magic, but never again will you be able to use magic.%s]]):format(ogretext),
24 answers = { 29 answers = {
25 {"Thank you. I shall not let magic triumph! #LIGHT_GREEN#[you drink the potion]", action=function(npc, player) player:setQuestStatus("antimagic", engine.Quest.COMPLETED) end}, 30 {"Thank you. I shall not let magic triumph! #LIGHT_GREEN#[you drink the potion]", action=function(npc, player) player:setQuestStatus("antimagic", engine.Quest.COMPLETED) end},
26 } 31 }
@@ -81,12 +81,20 @@ newChat{ id="testko", @@ -81,12 +81,20 @@ newChat{ id="testko",
81 } 81 }
82 } 82 }
83 83
  84 +local ogretext = ""
  85 +if player.descriptor and player.descriptor.subrace == "Ogre" then
  86 + ogretext = "\nWorry not, though, Ogre - we can replace your unclean runes with a newly-discovered mixture of infusions, eliminating your dependence on them. The process will feel... unpleasant, and will dramatically shorten your lifespan, but you will finally be free from the addictive grip of the arcane!\n"
  87 + if player.descriptor.subclass == "Oozemancer" then
  88 + ogretext = ogretext.."We'll also reinforce the infusions you've been granted to replace your runes - the newest mixture should give you about five years of your life that the initial mixture took from you.\n"
  89 + end
  90 +end
  91 +
84 newChat{ id="testok", 92 newChat{ id="testok",
85 - text = [[Very well. Before you start, we will make sure no magic can help you: 93 + text = ([[Very well. Before you start, we will make sure no magic can help you:
86 - You will not be able to use any spells or magical devices 94 - You will not be able to use any spells or magical devices
87 - Any worn objects that are powered by the arcane will be unequipped 95 - Any worn objects that are powered by the arcane will be unequipped
88 -  
89 -Are you ready, or do you wish to prepare first?]], 96 +%s
  97 +Are you ready, or do you wish to prepare first?]]):format(ogretext),
90 answers = { 98 answers = {
91 {"I am ready", jump="test", action=remove_magic}, 99 {"I am ready", jump="test", action=remove_magic},
92 {"I need to prepare."}, 100 {"I need to prepare."},