// creator  : weidu.exe (version 23600)
// argument : CENTEO.DLG
// game     : .
// source   : ./override/CENTEO.DLG
// dialog   : lang\en_us/dialog.tlk
// dialogF  : (none)

BEGIN ~CENTEO~
//////////////////////////////////////////////////
// WARNING: this file contains non-trivial WEIGHTs
//////////////////////////////////////////////////

IF WEIGHT #2 /* Triggers after states #: 7 9 even though they appear after this state */
~  NumberOfTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #964 /* ~Kill the meat, my pets.~ */
  IF ~~ THEN REPLY #6075 /* ~Send those spiders to their deaths, there aren't any arachnophobes here.~ */ GOTO 1
  IF ~~ THEN REPLY #6076 /* ~Please let us live! We've done nothing to you.~ */ GOTO 1
  IF ~~ THEN REPLY #6077 /* ~Hey, wait! We've come here... to... to benefit from your divine wisdom. Let us speak.~ */ GOTO 2
  IF ~Global("X#CENTEO0","GLOBAL",0)
InParty("viconia")
InMyArea("viconia")
!StateCheck("viconia",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#CENTEO0","GLOBAL",1)~ EXTERN ~VICONJ~ 243
  IF ~Global("X#CENTEO0","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#CENTEO0","GLOBAL",1)~ EXTERN ~XANJ~ 275
END

IF ~~ THEN BEGIN 1 // from: 0.1 0.0
  SAY #6078 /* ~Shut up and die!~ */
  IF ~~ THEN DO ~ForceSpellPoint([526.384],SPIDER_SUMMON)
ForceSpellPoint([635.376],SPIDER_SUMMON)
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 2 // from: 0.2
  SAY #6079 /* ~You've come here to learn from my infinite wissssdom. Sssspeak quickly!~ */
  IF ~~ THEN REPLY #6080 /* ~We want to know why you're so fat?~ */ GOTO 3
  IF ~~ THEN REPLY #6081 /* ~How have you come to dwell here, in this dreary abode?~ */ GOTO 6
  IF ~~ THEN REPLY #6082 /* ~What's your name?~ */ GOTO 5
  IF ~~ THEN REPLY #6083 /* ~Could you tell us about the Iron Throne?~ */ GOTO 4
  IF ~Global("X#XanCenteol2","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#XanCenteol2","GLOBAL",1)~ EXTERN ~XANJ~ 132
END

IF ~~ THEN BEGIN 3 // from: 5.0 2.0
  SAY #6084 /* ~Your humor doesn't amuse me. Die!~ */
  IF ~~ THEN DO ~ForceSpellPoint([526.384],SPIDER_SUMMON)
ForceSpellPoint([635.376],SPIDER_SUMMON)
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 4 // from: 5.1 2.3
  SAY #6085 /* ~I know nothing of this "Iron Throne." You sshall now all die!~ */
  IF ~~ THEN DO ~ForceSpellPoint([526.384],SPIDER_SUMMON)
ForceSpellPoint([635.376],SPIDER_SUMMON)
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 5 // from: 2.2
  SAY #6086 /* ~My name isss... isss... Centeol, yesss, that is my name.~ */
  IF ~~ THEN REPLY #6087 /* ~So why are you so fat? Not to pry or anything...~ */ GOTO 3
  IF ~~ THEN REPLY #6088 /* ~Do you know anything about the Iron Throne?~ */ GOTO 4
  IF ~~ THEN REPLY #6089 /* ~How is it that you came to live in this place?~ */ GOTO 6
END

IF ~~ THEN BEGIN 6 // from: 5.2 2.1
  SAY #6090 /* ~I am cursssed. The archmage, Jon Irenicus, cursed me for indignities done to him and his wife by me. I loved Jon, but now I hate him, as I hate you and everything. Spiderssss... kill them all.~ */
  IF ~~ THEN DO ~ForceSpellPoint([526.384],SPIDER_SUMMON)
ForceSpellPoint([635.376],SPIDER_SUMMON)
Enemy()
~ EXIT
END

IF WEIGHT #1 /* Triggers after states #: 9 even though they appear after this state */
~  StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 7 // from:
  SAY #6106 /* ~I can tell you of my curse, for that is all I remember anymore. I used to be beautiful and powerful. An exotic sorceress, with many powers at my command and suitors at my door. But I only had eyes for one man, Jon Irenicus. He was a great and powerful wizard, the only man worthy of my affections, or so I thought. Though I lusted for Jon, he cared little for me, for he had another to whom he was married, Lady Tanova. So I plotted and schemed, and finally came up with a plan to rid the world of Tanova. When the deed was done and Tanova lay dead, I was exultant, but not for long. Jon went mad with fury, and using his powerful magics, divined the identity of his wife's murderer. He arrived at my tower, and I allowed him entry, desirous to finally consummate our love. Jon disabled me with his spells, then he cursed me to this body and set spiders to feed me and keep me alive. So you see, if you were my friend, you would kill me.~ */
  IF ~~ THEN SOLVED_JOURNAL #26909 /* ~Centeol's Sad Story
When we charmed the huge bloated creature that called herself Centeol, we were told an interesting story. It seems she was cursed to her current shape by a powerful mage named Jon Irenicus. Hah! Only a fool would run afoul of a mage like that.~ */ EXIT
END

IF ~~ THEN BEGIN 8 // from:
  SAY #6107 /* ~You have defeated my ssspidersss, there is nothing I can do. Kill me! Kill me!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~  Global("P#Rain","GLOBAL",1)
~ THEN BEGIN 9 // from:
  SAY #48157 /* ~Wait... I will not resist. Kill me, but first I want to tell you of my curse - to take it off my chest.~ */
  IF ~~ THEN GOTO 10
END

IF ~~ THEN BEGIN 10 // from: 9.0
  SAY #48158 /* ~My curse - that is all I remember now. I used to be beautiful and powerful.~ */
  IF ~~ THEN GOTO 11
END

IF ~~ THEN BEGIN 11 // from: 10.0
  SAY #48159 /* ~An exotic sorceress, with many powers at my command, and suitors at my door. But I only had eyes for one man, Jon Irenicus. He was a great and powerful wizard, the only man worthy of my affections, or so I thought. Though I lusted for Jon, he cared little for me, for he had another to whom he was married, lady Tanova.~ */
  IF ~  OR(3)
!InParty("xan")
!InMyArea("xan")
StateCheck("xan",CD_STATE_NOTVALID)
~ THEN REPLY #48160 /* ~Please, go on, that's quite a story!~ */ DO ~SetGlobal("P#Rain","GLOBAL",2)
~ GOTO 12
  IF ~  OR(3)
!InParty("xan")
!InMyArea("xan")
StateCheck("xan",CD_STATE_NOTVALID)
~ THEN REPLY #48161 /* ~Jon was married?! I... I think I heard about him. I thought he was in love with Ellesime, and then he lost his er... zest for women's charms...~ */ DO ~SetGlobal("P#Rain","GLOBAL",2)
~ GOTO 14
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("P#Rain","GLOBAL",2)
~ EXTERN ~XANJ~ 164
END

IF ~~ THEN BEGIN 12 // from: 11.0
  SAY #48162 /* ~So I plotted and schemed, and finally came up with a plan to rid the world of Tanova. When the deed was done, and Tanova lay dead, I was exultant, but not for long. Jon went mad with fury, and using his powerful magics, divined the identity of his wife's murderer. ~ */
  IF ~~ THEN GOTO 13
END

IF ~~ THEN BEGIN 13 // from: 12.0
  SAY #48163 /* ~He arrived at my tower, and I allowed him entry, desirous to finally consummate our love. Jon disabled me with his spells, and then he cursed me to this body, and set spiders to feed me and keep me alive. So you see, if you were my friend, you would kill me. ~ */
  IF ~~ THEN JOURNAL #48164 /* ~Centeol's Story

When we charmed the huge bloated creature that called herself Centeol, we were told an interesting story. It seems she was cursed to her current shape by a powerful mage called Jon Irenicus. The exact role of Tanova is unclear.~ */ EXIT
END

IF ~~ THEN BEGIN 14 // from: 11.1
  SAY #48165 /* ~Jon lost his zest?! *she laughs bitterly* Please...~ */
  IF ~~ THEN GOTO 15
END

IF ~~ THEN BEGIN 15 // from: 14.0
  SAY #48166 /* ~He had plenty and to spare... for Tanova. So I plotted and schemed, and finally came up with a plan to rid the world of Tanova. When the deed was done, and Tanova lay dead, I was exultant, but not for long. Jon went mad with fury, and using his powerful magics, divined the identity of his wife's murderer. ~ */
  IF ~~ THEN GOTO 16
END

IF ~~ THEN BEGIN 16 // from: 15.0
  SAY #48167 /* ~He arrived at my tower, and I allowed him entry, desirous to finally consummate our love. Jon disabled me with his spells, and then he cursed me to this body, and set spiders to feed me and keep me alive. So you see, if you were my friend, you would kill me.~ */
  IF ~~ THEN REPLY #48168 /* ~I... I see.~ */ JOURNAL #48164 /* ~Centeol's Story

When we charmed the huge bloated creature that called herself Centeol, we were told an interesting story. It seems she was cursed to her current shape by a powerful mage called Jon Irenicus. The exact role of Tanova is unclear.~ */ EXIT
  IF ~~ THEN REPLY #48169 /* ~It's not what we were led to believe by a... uhm... different source.~ */ JOURNAL #48164 /* ~Centeol's Story

When we charmed the huge bloated creature that called herself Centeol, we were told an interesting story. It seems she was cursed to her current shape by a powerful mage called Jon Irenicus. The exact role of Tanova is unclear.~ */ EXIT
END

IF ~~ THEN BEGIN 17 // from:
  SAY #48172 /* ~So I plotted and schemed, and finally came up with a plan to rid the world of Tanova. When the deed was done, and Tanova lay dead, I was exultant, but not for long.~ */
  IF ~~ THEN EXTERN ~XANJ~ 165
END

IF ~~ THEN BEGIN 18 // from:
  SAY #48174 /* ~Jon went mad with fury, and using his powerful magics, divined the identity of his wife's murderer. ~ */
  IF ~~ THEN EXTERN ~XANJ~ 166
END

IF ~~ THEN BEGIN 19 // from:
  SAY #48176 /* ~He arrived at my tower, and I allowed him entry, desirous to finally consummate our love.~ */
  IF ~~ THEN EXTERN ~XANJ~ 167
END

IF ~~ THEN BEGIN 20 // from:
  SAY #48178 /* ~Jon disabled me with his spells, and then he cursed me to this body, and set spiders to feed me and keep me alive. So you see, if you were my friend, you would kill me. ~ */
  IF ~~ THEN EXTERN ~XANJ~ 168
END

IF ~~ THEN BEGIN 21 // from:
  SAY #48181 /* ~Could you... do that thing? O, please, my lord! Please...~ */
  IF ~~ THEN EXTERN ~XANJ~ 170
END

IF ~~ THEN BEGIN 22 // from:
  SAY #48183 /* ~Of course it would. It will give me back my life!~ */
  IF ~~ THEN EXTERN ~XANJ~ 171
END

IF WEIGHT #3 ~  Global("P#SpeakUp","GLOBAL",2)
~ THEN BEGIN 23 // from:
  SAY #48185 /* ~My body... O, I am beautiful again! I am gorgeous...~ [ELFFF03] */
  IF ~~ THEN GOTO 24
END

IF ~~ THEN BEGIN 24 // from: 23.0
  SAY #48186 /* ~The storm is gathering to match my fury... The rain is crying for my hurts...~ */
  IF ~~ THEN GOTO 25
END

IF ~~ THEN BEGIN 25 // from: 24.0
  SAY #48187 /* ~Revenge is all I have now. There is nothing else beyond it. Revenge for what Jon did to me.~ */
  IF ~~ THEN GOTO 26
END

IF ~~ THEN BEGIN 26 // from: 25.0
  SAY #48188 /* ~And.. I... WILL... HAVE IT!~ */
  IF ~~ THEN DO ~SetGlobal("P#SpeakUp","GLOBAL",3)
~ EXTERN ~XANJ~ 172
END
