// creator  : weidu.exe (version 23100)
// argument : _VICONI.DLG
// game		 : .
// source	 : ./override/_VICONI.DLG
// dialog	 : ./DIALOG.TLK
// dialogF  : (none)

BEGIN ~_VICONI~

IF ~NumberOfTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #88114 /* ~Help me! If you don't help me, they'll kill me.~ */
  IF ~~ THEN REPLY #88115 /* ~Sorry lady, it's not our business.~ */ GOTO 2
  IF ~~ THEN REPLY #88116 /* ~Calm down, we'll help you.  Just tell us who you are.~ */ GOTO 1
  IF ~Global("X#SHARTEELVICONI1","GLOBAL",0)
InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#SHARTEELVICONI1","GLOBAL",1)~ EXTERN ~_SHARTJ~ 103
END

IF ~~ THEN BEGIN 1 // from: 17.1 0.1 _SHARTJ:104.1 _SHARTJ:103.1
  SAY #88117 /* ~My name is Viconia, I... I'm not from around here, thank you so much for helping.~ */
  IF ~~ THEN DO ~CreateCreature("_FLAM2",[605.901],0)
ActionOverride("flamingfist2",SetInterrupt(FALSE))
ActionOverride("flamingfist2",ChangeAIScript("_INITDLG",OVERRIDE))
ActionOverride("flamingfist2",MoveToPoint([507.806]))
ActionOverride("flamingfist2",SetInterrupt(TRUE))
~ EXIT
END

IF ~~ THEN BEGIN 2 // from: 17.0 0.0 _SHARTJ:104.0 _SHARTJ:103.0
  SAY #88131 /* ~I should have expected that from craven surface dwellers.  May you rot in all the hells.~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 3 // from:
  SAY #88132 /* ~They lie, I've done nothing wrong.~ */
  IF ~~ THEN REPLY #88133 /* ~If you want her, have her.  We won't get in your way.~ */ EXTERN ~_FLAM2~ 3
  IF ~~ THEN REPLY #88134 /* ~You'll have to get through us if you want her.~ */ EXTERN ~_FLAM2~ 2
  IF ~~ THEN REPLY #88135 /* ~What do you intend to do once you have her?~ */ EXTERN ~_FLAM2~ 1
END

IF ~~ THEN BEGIN 4 // from:
  SAY #88136 /* ~Just like surface dwellers, traitorous scum!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END

IF ~Dead("flamingfist2")
ReactionGT(LastTalkedToBy,NEUTRAL_UPPER)
~ THEN BEGIN 5 // from:
  SAY #88137 /* ~I thank you for risking yourselves on my behalf.  I know what you are thinking, you see my dark skin and won't trust me for it.  I am a dark elf, but I'm an outcast, I need your help.  I no longer receive my powers from the spider goddess you surface dwellers fear so; the Goddess Shar grants me wisdom, and she is a surface divinity.  If you'd let me join your group, I would be most grateful.  I have nowhere else to go.~ */
  IF ~~ THEN REPLY #88138 /* ~Sorry, we can't harbor a drow.~ */ GOTO 8
  IF ~~ THEN REPLY #88139 /* ~We don't judge someone by their race, we'll take you in.~ */ GOTO 9
  IF ~~ THEN REPLY #88140 /* ~It has nothing to do with race, we just don't need another person along to worry about.  Sorry.~ */ GOTO 8
  IF ~Global("X#JaheiraViconia2","GLOBAL",0)
InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#JaheiraViconia2","GLOBAL",1)~ EXTERN ~_JAHEIJ~ 80
END

IF ~Dead("flamingfist2")
ReactionLT(LastTalkedToBy,FRIENDLY_LOWER)
ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
~ THEN BEGIN 6 // from:
  SAY #88141 /* ~I thank you.  I know you may not be willing to give me a chance because of my dark skin.  I am a drow, but if you give me a chance you won't regret it.  Can I join with you?  I need friends, now more than ever.~ */
  IF ~~ THEN REPLY #88142 /* ~We'll never trust a dark elf, get out of our sight!~ */ GOTO 8
  IF ~~ THEN REPLY #88143 /* ~We need the extra help, so of course we'll take you in.~ */ GOTO 9
  IF ~~ THEN REPLY #88144 /* ~We can't afford any dead weight, sorry.~ */ GOTO 8
  IF ~Global("X#JaheiraViconia3","GLOBAL",0)
InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#JaheiraViconia3","GLOBAL",1)~ EXTERN ~_JAHEIJ~ 79
END

IF ~Dead("flamingfist2")
ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
~ THEN BEGIN 7 // from:
  SAY #88145 /* ~I thank you for your help, but more will be on their way, perhaps our paths will cross again.~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
  IF ~Global("X#JaheiraViconia4","GLOBAL",0)
InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#JaheiraViconia4","GLOBAL",1)~ EXTERN ~_JAHEIJ~ 78
END

IF ~~ THEN BEGIN 8 // from: 16.2 16.0 15.2 15.0 6.2 6.0 5.2 5.0
  SAY #88146 /* ~You surface dwellers are so weak, I should be glad that you turned me down.~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 9 // from: 16.1 15.1 6.1 5.1
  SAY #88147 /* ~I won't disappoint you, I promise.~ */
  IF ~~ THEN DO ~ReputationInc(-2)
JoinParty()
~ EXIT
  IF ~Global("X#VICONI9","GLOBAL",0)
InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#VICONI9","GLOBAL",1)~ GOTO 18
  IF ~Global("X#VICONI9","GLOBAL",0)
InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#VICONI9","GLOBAL",1)~ EXTERN ~_JAHEIJ~ 450
  IF ~Global("X#VICONI9","GLOBAL",0)
InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#VICONI9","GLOBAL",1)~ GOTO 20
  IF ~Global("X#VICONI9","GLOBAL",0)
InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#VICONI9","GLOBAL",1)~ EXTERN ~_AJANTJ~ 306
END

IF ~StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 10 // from:
  SAY #87023 /* ~I come from the city of Menzoberranzan.  My family was slaughtered, and I was forced to flee to the surface.  When I reached the realms of light, the traitor Lolth abandoned me.  I would have been lost had it not been for the divine Shar!  She took me in and gave me the will and strength to survive!  It makes me so happy that I have found friends such as you to make my acclimatization to the surface a little easier.~ */
  IF ~~ THEN EXIT
END

IF ~True()
~ THEN BEGIN 11 // from:
  SAY #88148 /* ~I am sorry to be so nervous, but the surface is so large, unending when compared to my homeland.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 12 // from:
  SAY #87021 /* ~A welcome release.  Your weakling surface ways have left a bitter taste in my mouth.  Perhaps I should seek shelter back under the cover of the earth.  I understood my fellows there.~ */
  IF ~~ THEN DO ~LeaveParty()
EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 13 // from:
  SAY #87022 /* ~You have been very kind to me in this strange and lighted world. Perhaps you are right, though. The drow were meant to be a race apart... Take care of yourselves, alright?~ */
  IF ~~ THEN DO ~LeaveParty()
SetDialogue("None")
~ EXIT
END

IF ~~ THEN BEGIN 14 // from:
  SAY #98550 /* ~Your underlings lack... respect for you, rivvin, to speak out of turn... pfft...~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 15 // from:
  SAY #98550 /* ~Your underlings lack... respect for you, rivvin, to speak out of turn... pfft...~ */
  IF ~~ THEN REPLY #88142 /* ~We'll never trust a dark elf, get out of our sight!~ */ GOTO 8
  IF ~~ THEN REPLY #88143 /* ~We need the extra help, so of course we'll take you in.~ */ GOTO 9
  IF ~~ THEN REPLY #88144 /* ~We can't afford any dead weight, sorry.~ */ GOTO 8
END

IF ~~ THEN BEGIN 16 // from:
  SAY #98550 /* ~Your underlings lack... respect for you, rivvin, to speak out of turn... pfft...~ */
  IF ~~ THEN REPLY #88138 /* ~Sorry, we can't harbor a drow.~ */ GOTO 8
  IF ~~ THEN REPLY #88139 /* ~We don't judge someone by their race, we'll take you in.~ */ GOTO 9
  IF ~~ THEN REPLY #88140 /* ~It has nothing to do with race, we just don't need another person along to worry about.  Sorry.~ */ GOTO 8
END

IF ~~ THEN BEGIN 17 // from: _SHARTJ:104.2 _SHARTJ:103.2
  SAY #99828 /* ~Rivvin, in the Underdark a weak-spirited drow dies. The strong one lives, and I am not yet a rotting corpse.~ */
  IF ~~ THEN REPLY #88115 /* ~Sorry lady, it's not our business.~ */ GOTO 2
  IF ~~ THEN REPLY #88116 /* ~Calm down, we'll help you.  Just tell us who you are.~ */ GOTO 1
END

IF ~~ THEN BEGIN 18 // from: 9.1
  SAY #103793 /* ~Save your pity for our foes!~ */
  IF ~~ THEN DO ~ReputationInc(-2)
JoinParty()
~ EXIT
END

IF ~~ THEN BEGIN 19 // from:
  SAY #103793 /* ~Save your pity for our foes!~ */
  IF ~~ THEN DO ~ReputationInc(-2)
JoinParty()
~ EXIT
END

IF ~~ THEN BEGIN 20 // from: 9.3
  SAY #103791 /* ~I bet you will, jaluk!~ */
  IF ~~ THEN DO ~ReputationInc(-2)
JoinParty()
~ EXIT
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN GOTO 21
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 451
END

IF ~~ THEN BEGIN 21 // from: 20.1
  SAY #103793 /* ~Save your pity for our foes!~ */
  IF ~~ THEN DO ~ReputationInc(-2)
JoinParty()
~ EXIT
END

IF ~~ THEN BEGIN 22 // from:
  SAY #103791 /* ~I bet you will, jaluk!~ */
  IF ~~ THEN DO ~ReputationInc(-2)
JoinParty()
~ EXIT
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN GOTO 23
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 452
END

IF ~~ THEN BEGIN 23 // from: 22.1
  SAY #103793 /* ~Save your pity for our foes!~ */
  IF ~~ THEN DO ~ReputationInc(-2)
JoinParty()
~ EXIT
END
