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

BEGIN ~X#SKODD~

IF ~  Global("X#XQSkoddInitialDialogue","GLOBAL",0)
~ THEN BEGIN 0 // from:
  SAY #48199 /* ~Be kind, we are but poor merchants that barely escaped with their lives from the bandits, and now we need to find the way through the lands of this basilisk-breeding psychopath.~ [SLAVE02] */
  IF ~~ THEN DO ~SetGlobal("X#XQSkoddInitialDialogue","GLOBAL",1)
~ EXTERN ~X#MAZURI~ 1
END

IF ~~ THEN BEGIN 1 // from: X#MAZURI:2.0
  SAY #48209 /* ~Pure truth, pure truth indeed.~ */
  IF ~~ THEN EXTERN ~X#GAEL~ 6
END

IF ~  Global("X#XQWhiteDoeAppeared","GLOBAL",4)
~ THEN BEGIN 2 // from:
  SAY #48293 /* ~*morosely* I thought that we had discussed the matter in full.~ [SLAVE02] */
  IF ~~ THEN DO ~SetGlobal("X#XQWhiteDoeAppeared","GLOBAL",5)
~ EXTERN ~BXANNN~ 300
END

IF ~~ THEN BEGIN 3 // from:
  SAY #48303 /* ~*firmly* These ill-trained women are my rightful possessions. I am transporting them to be sold in Calimport in good faith. You and your slanted-eyed companion have no call to interfere with my business.~ */
  IF ~~ THEN REPLY #48304 /* ~These women are SLAVES?! You have my sword, moonblade wielder!~ */ GOTO 5
  IF ~~ THEN REPLY #48305 /* ~I can buy them from you.~ */ GOTO 6
  IF ~~ THEN REPLY #48306 /* ~You see, Xan, it's all sorted itself out. We cannot impose our moral values onto a man from Calimshan. He abides by different laws, and he did not breach them. Why, I am sure he even has proper papers! Even if he did, Xan... it is not us who should deal out punishment to him. We can file a complaint next time we pass through Baldur's Gate. They are surely *much* better equipped then us to deal with these... one... three... five... six heavily armed ferocious fighters.~ */ EXTERN ~XANJ~ 191
  IF ~~ THEN REPLY #48307 /* ~*look at Xan* These women pleaded with you, moonblade wielder. I give you the command over my party and over myself.~ */ GOTO 5
  IF ~~ THEN REPLY #48308 /* ~Xan... I cannot. There are too many of them. We will all die here.~ */ EXTERN ~XANJ~ 193
  IF ~~ THEN REPLY #48309 /* ~But what about the Iron Throne? If we fall here, many more will remain slaves... and Gorion's murderer will not be brought to justice.~ */ EXTERN ~XANJ~ 193
  IF ~~ THEN REPLY #48310 /* ~Cool down, Xan. Hmm... how much I can offer you for this lot, Skodd?~ */ GOTO 6
END

IF ~~ THEN BEGIN 4 // from: XANJ:194.0
  SAY #48315 /* ~Good to see you showing some sense. Follow me, men!~ */
  IF ~~ THEN DO ~RealSetGlobalTimer("X#XanBadOutcomeTimer","GLOBAL",EIGHTEEN_MINUTES)
ActionOverride("X#Mazuri",EscapeArea())
ActionOverride("X#Gael",EscapeArea())
ActionOverride("X#Diala",EscapeArea())
ActionOverride("X#Minuw",EscapeArea())
ActionOverride("X#Siene",EscapeArea())
ActionOverride("X#XQMer1",EscapeArea())
ActionOverride("X#XQMer2",EscapeArea())
ActionOverride("X#XQMer3",EscapeArea())
ActionOverride("X#XQMer4",EscapeArea())
ActionOverride("X#XQMer5",EscapeArea())
ActionOverride("X#XQMer6",EscapeArea())
ActionOverride("X#Skodd",EscapeArea())
~ EXIT
END

IF ~~ THEN BEGIN 5 // from: 9.2 9.0 3.3 3.0
  SAY #48316 /* ~We will defend our property, don't you ever doubt that.~ */
  IF ~~ THEN EXTERN ~BXANNN~ 303
END

IF ~~ THEN BEGIN 6 // from: 3.6 3.1
  SAY #48318 /* ~It is not the money that is at stake here, it is my reputation. I am bound to deliver my cargo on time. My business will suffer a great deal in lost future profits if the buyers consider me unreliable.~ */
  IF ~  OR(2)
!InParty("coran")
!InParty("kivan")
~ THEN GOTO 7
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("kivan")
InMyArea("kivan")
!StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN GOTO 10
END

IF ~~ THEN BEGIN 7 // from: 6.0
  SAY #48319 /* ~*Skodd looks at you thoughtfully.*~ */
  IF ~~ THEN EXTERN ~BXANNN~ 304
END

IF ~~ THEN BEGIN 8 // from:
  SAY #48321 /* ~If only you had three elven males with you, ready for trade... but never mind.~ */
  IF ~~ THEN GOTO 9
END

IF ~~ THEN BEGIN 9 // from: 8.0
  SAY #48322 /* ~We will be on our way, and you will follow yours. Do we have an understanding?~ */
  IF ~~ THEN REPLY #48323 /* ~No, and we shall never have! Defend yourself!~ */ GOTO 5
  IF ~~ THEN REPLY #48324 /* ~Xan... We cannot impose our moral values onto a man from Calimshan. He abides by different laws, and he did not breach them. Why, I am sure he even has proper papers! Even if he did, Xan... it is not us who should deal out punishment to him. We can file a complaint next time we pass through Baldur's Gate. They are surely *much* better equipped then us to deal with these... one... three... six... nine heavily armed ferocious fighters and accomplished spellcasters.~ */ EXTERN ~XANJ~ 191
  IF ~~ THEN REPLY #48307 /* ~*look at Xan* These women pleaded with you, moonblade wielder. I give you the command over my party and over myself.~ */ GOTO 5
  IF ~~ THEN REPLY #48325 /* ~Xan... we must go. There are too many of them. We will all die here.~ */ EXTERN ~XANJ~ 193
END

IF ~~ THEN BEGIN 10 // from: 6.1
  SAY #48326 /* ~But... I can offer you a deal.  A trade... so to speak.~ */
  IF ~~ THEN GOTO 11
END

IF ~~ THEN BEGIN 11 // from: 10.0
  SAY #48327 /* ~You see, female elven slaves are not that rare, while male ones are much more costly and desirable. And difficult to catch in undamaged condition.~ */
  IF ~~ THEN EXTERN ~BXANNN~ 305
END

IF ~~ THEN BEGIN 12 // from:
  SAY #48329 /* ~I would not trade at a loss. Head for head is more to my liking. And if you come willingly.~ */
  IF ~~ THEN EXTERN ~BKIVAN~ 312
END

IF ~~ THEN BEGIN 13 // from: XANJ:195.1
  SAY #48347 /* ~Alright. Drop your weapons and let us exchange the slaves.~ */
  IF ~~ THEN DO ~SetGlobal("X#XQSlavesExchanged","GLOBAL",1)
StartCutSceneMode()
StartCutScene("X#XQCUT")
~ EXIT
END

IF ~~ THEN BEGIN 14 // from: XANP:11.3 XANP:11.0
  SAY #48355 /* ~You have tried to trick me, offering spoiled goods! That is most dishonest and should be punished. I hope that I can recover my losses out of the spoils after I kill you.~ */
  IF ~~ THEN DO ~ActionOverride("coran",JoinParty())
ActionOverride("kivan",JoinParty())
ActionOverride("xan",JoinParty())
SetGlobal("X#XQSlavesExchanged","GLOBAL",2)
ActionOverride("X#Skodd",Enemy())
ActionOverride("X#Mazuri",Enemy())
ActionOverride("X#Gael",Enemy())
ActionOverride("X#XQMer1",Enemy())
ActionOverride("X#XQMer2",Enemy())
ActionOverride("X#XQMer3",Enemy())
ActionOverride("X#XQMer4",Enemy())
ActionOverride("X#XQMer5",Enemy())
ActionOverride("X#XQMer6",Enemy())
SetGlobal("X#XQAttackedSlaversAfter","GLOBAL",1)
~ EXIT
END

IF ~~ THEN BEGIN 15 // from: XANP:11.2 XANP:11.1
  SAY #48355 /* ~You have tried to trick me, offering spoiled goods! That is most dishonest and should be punished. I hope that I can recover my losses out of the spoils after I kill you.~ */
  IF ~~ THEN DO ~ActionOverride("coran",Enemy())
ActionOverride("kivan",Enemy())
ActionOverride("xan",Enemy())
SetGlobal("X#XQSlavesExchanged","GLOBAL",3)
SetGlobal("X#XQXanFightsPC","GLOBAL",1)
ActionOverride("X#Skodd",Enemy())
ActionOverride("X#Mazuri",Enemy())
ActionOverride("X#Gael",Enemy())
ActionOverride("X#XQMer1",Enemy())
ActionOverride("X#XQMer2",Enemy())
ActionOverride("X#XQMer3",Enemy())
ActionOverride("X#XQMer4",Enemy())
ActionOverride("X#XQMer5",Enemy())
ActionOverride("X#XQMer6",Enemy())
ActionOverride("X#Diala",EscapeArea())
ActionOverride("X#Minuw",EscapeArea())
ActionOverride("X#Siene",EscapeArea())
~ EXIT
END
