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

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

IF WEIGHT #3 /* Triggers after states #: 29 34 35 even though they appear after this state */
~  OR(3)
!InParty("kivan")
!InMyArea("kivan")
StateCheck("kivan",CD_STATE_NOTVALID)
False()
NumberOfTimesTalkedTo(0)
Global("JoinedBandits","GLOBAL",5)
~ THEN BEGIN 0 // from:
  SAY #1901 /* ~What do you mean, prisoners?! No one is supposed to know of camp! NO ONE!~ */
  IF ~~ THEN EXTERN ~RAIKEN~ 14
END

IF WEIGHT #9 /* Triggers after states #: 3 8 13 17 29 33 34 35 even though they appear after this state */
~  OR(3)
!InParty("kivan")
!InMyArea("kivan")
StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN BEGIN 1 // from:
  SAY #1902 /* ~All the reason more to kill! He'll have my skull for this! Kill them now! Better still, I do myself! I trust not you fools!~ */
  IF ~~ THEN DO ~EndCutSceneMode()
Enemy()
~ EXIT
  IF ~Global("X#SHARTEELTAZOK1","GLOBAL",0)
InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#SHARTEELTAZOK1","GLOBAL",1)~ EXTERN ~SHARTJ~ 119
END

IF WEIGHT #10 /* Triggers after states #: 3 8 13 17 29 33 34 35 even though they appear after this state */
~  OR(3)
!InParty("kivan")
!InMyArea("kivan")
StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN BEGIN 2 // from:
  SAY #1903 /* ~Save breath, waste breath, whatever you wish. You die either way!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #4 /* Triggers after states #: 29 34 35 even though they appear after this state */
~  OR(3)
!InParty("kivan")
!InMyArea("kivan")
StateCheck("kivan",CD_STATE_NOTVALID)
False()
NumberOfTimesTalkedTo(0)
Global("JoinedBandits","GLOBAL",2)
~ THEN BEGIN 3 // from:
  SAY #1904 /* ~Recruits?! Secret operation and you hire those you rob?! By the lower planes, why do we pay Blacktalons to do stealth if you almost light signal fires?!~ */
  IF ~~ THEN EXTERN ~RAIKEN~ 15
END

IF WEIGHT #11 /* Triggers after states #: 8 13 17 29 33 34 35 even though they appear after this state */
~  OR(3)
!InParty("kivan")
!InMyArea("kivan")
StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN BEGIN 4 // from:
  SAY #1905 /* ~YOU DON'T THINK! I THINK! I question them myself and if they are not as you say, you die too!~ */
  IF ~~ THEN GOTO 5
END

IF WEIGHT #12 /* Triggers after states #: 8 13 17 29 33 34 35 even though they appear after this state */
~  OR(3)
!InParty("kivan")
!InMyArea("kivan")
StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN BEGIN 5 // from: 4.0
  SAY #1906 /* ~I say now I don't like you! Give me reason to not have you broth-boiled and use your skin to swaddle my small-kin! Who are you that I should let you join?!~ */
  IF ~~ THEN REPLY #2321 /* ~We're just a group of simple merchants on our way to Baldur's Gate. Your bandits tried to raid us, so we figured if we can't beat them, join them.~ */ GOTO 6
  IF ~~ THEN REPLY #2322 /* ~Ah, go scare some school-girls. I could bruise you but good, and that's exactly why you need me!~ */ GOTO 7
  IF ~~ THEN REPLY #2323 /* ~We're strong, well armed, and we know opportunity when we see it! What better job be there for us? Dungeon crawling? That's fools' work!~ */ GOTO 9
  IF ~Global("X#VicTazok","GLOBAL",0)
InParty("viconia")
InMyArea("viconia")
!StateCheck("viconia",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#VicTazok","GLOBAL",1)~ EXTERN ~VICONJ~ 135
END

IF WEIGHT #13 /* Triggers after states #: 8 13 17 29 33 34 35 even though they appear after this state */
~  OR(3)
!InParty("kivan")
!InMyArea("kivan")
StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN BEGIN 6 // from: 55.0 5.0 VICONJ:135.0
  SAY #1907 /* ~I've never seen "simple" merchants armed as you are! It look more like kick-ass be your commodity! I think you lie to me! I THINK YOU DIE!~ */
  IF ~~ THEN DO ~EndCutSceneMode()
Enemy()
~ EXIT
  IF ~Global("X#SHARTEELTAZOK2","GLOBAL",0)
InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#SHARTEELTAZOK2","GLOBAL",1)~ EXTERN ~SHARTJ~ 120
END

IF WEIGHT #14 /* Triggers after states #: 8 13 17 29 33 34 35 even though they appear after this state */
~  OR(3)
!InParty("kivan")
!InMyArea("kivan")
StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN BEGIN 7 // from: 55.1 5.1 VICONJ:135.1
  SAY #1908 /* ~You talk big! Maybe I think you talk TOO big! Maybe I think we just see who gets bruised! Put your sword where your mouth is, or I put MINE there!~ */
  IF ~~ THEN DO ~EndCutSceneMode()
Enemy()
~ EXIT
  IF ~Global("X#SHARTEELTAZOK3","GLOBAL",0)
InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#SHARTEELTAZOK3","GLOBAL",1)~ EXTERN ~SHARTJ~ 121
END

IF WEIGHT #5 /* Triggers after states #: 29 34 35 even though they appear after this state */
~  OR(3)
!InParty("kivan")
!InMyArea("kivan")
StateCheck("kivan",CD_STATE_NOTVALID)
HPPercentLT(Myself,50)
Global("FoughtTazok","GLOBAL",0)
~ THEN BEGIN 8 // from:
  SAY #1909 /* ~Heh! You fight pretty good. Maybe you're not such weaklings. I think you make pretty good bandits. Okay, you have run of camp. I have business to do but Ardenor and Taugosz will keep eyes on you!~ */
  IF ~~ THEN DO ~EndCutSceneMode()
ClearAllActions()
SetGlobal("BeatTazok","GLOBAL",1)
ChangeEnemyAlly(Myself,NEUTRAL)
SetGlobal("FoughtTazok","GLOBAL",1)
~ UNSOLVED_JOURNAL #27469 /* ~Tazok and the Bandits
Tazok has allowed us to stay in the bandit camp, but will be keeping a constant watch on us.~ */ GOTO 13
  IF ~Global("X#GarTaz1","GLOBAL",0)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#GarTaz1","GLOBAL",1)~ EXTERN ~GARRIJ~ 109
END

IF WEIGHT #15 /* Triggers after states #: 13 17 29 33 34 35 even though they appear after this state */
~  OR(3)
!InParty("kivan")
!InMyArea("kivan")
StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN BEGIN 9 // from: 55.2 5.2 VICONJ:135.2
  SAY #1910 /* ~Hmmm. You have some sense, but I have many a strong back here already. What for I need you?!~ */
  IF ~~ THEN REPLY #2324 /* ~Surely you must realize you need any help you can get, especially after losing Mulahey in the Nashkel mines.~ */ GOTO 10
  IF ~~ THEN REPLY #2325 /* ~Would you rather have too few and need more, or have too many and not need them at all?~ */ GOTO 11
  IF ~~ THEN REPLY #2326 /* ~Must I explain everything?! Can your thick ogrish skull not see how obviously talented we are? You're a fool if you don't take us!~ */ GOTO 12
END

IF WEIGHT #16 /* Triggers after states #: 13 17 29 33 34 35 even though they appear after this state */
~  OR(3)
!InParty("kivan")
!InMyArea("kivan")
StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN BEGIN 10 // from: 9.0
  SAY #1911 /* ~NONE KNOW THIS! If you know, maybe it was you who did it! I take your heads back to see if you get recognized!~ */
  IF ~~ THEN DO ~EndCutSceneMode()
Enemy()
~ EXIT
  IF ~Global("X#SHARTEELTAZOK4","GLOBAL",0)
InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#SHARTEELTAZOK4","GLOBAL",1)~ EXTERN ~SHARTJ~ 122
END

IF WEIGHT #17 /* Triggers after states #: 13 17 29 33 34 35 even though they appear after this state */
~  OR(3)
!InParty("kivan")
!InMyArea("kivan")
StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN BEGIN 11 // from: 9.1
  SAY #1912 /* ~Eh? You sure are big on words. You better be big on the battlefield too, 'cuz if you're not, you die. You have run of the camp. If I hear ONE bad thing from Ardenor and Taugosz, I personally feed your livers to the crows!~ */
  IF ~~ THEN GOTO 13
END

IF WEIGHT #18 /* Triggers after states #: 13 17 29 33 34 35 even though they appear after this state */
~  OR(3)
!InParty("kivan")
!InMyArea("kivan")
StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN BEGIN 12 // from: 9.2
  SAY #1913 /* ~I may not be the smartest man, but I know a blowhard braggart when I see one! I'm also not the one giving grief to the short-tempered, extremely large half-ogre! Put your sword where your mouth is, or I put MINE there!~ */
  IF ~~ THEN DO ~EndCutSceneMode()
Enemy()
~ EXIT
  IF ~Global("X#SHARTEELTAZOK5","GLOBAL",0)
InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#SHARTEELTAZOK5","GLOBAL",1)~ EXTERN ~SHARTJ~ 123
END

IF WEIGHT #6 /* Triggers after states #: 29 34 35 even though they appear after this state */
~  OR(3)
!InParty("kivan")
!InMyArea("kivan")
StateCheck("kivan",CD_STATE_NOTVALID)
Global("BeatTazok","GLOBAL",1)
~ THEN BEGIN 13 // from: 53.0 11.0 8.0
  SAY #1914 /* ~I take a patrol and leave for mine tonight! Keep pressure on trade routes and there be extra gold for all when we are done! I leave soon.~ */
  IF ~  OR(3)
!InParty("kivan")
!InMyArea("kivan")
StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN DO ~ActionOverride("Teven",EscapeArea())
ActionOverride("Raiken",EscapeArea())
ActionOverride("Banditcr",EscapeArea())
EscapeArea()
~ UNSOLVED_JOURNAL #27470 /* ~A Hidden Base?
Tazok plans to visit the site of a mine, where he might be reporting to the real bandit leader.~ */ EXIT
  IF ~  InParty("kivan")
InMyArea("kivan")
!StateCheck("kivan",CD_STATE_NOTVALID)
Global("P#KivanTazok1","GLOBAL",0)
~ THEN DO ~SetGlobal("P#KivanTazok1","GLOBAL",1)
EndCutSceneMode()
~ EXTERN ~KIVANJ~ 247
END

IF WEIGHT #19 /* Triggers after states #: 17 29 33 34 35 even though they appear after this state */
~  OR(3)
!InParty("kivan")
!InMyArea("kivan")
StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN BEGIN 14 // from:
  SAY #1916 /* ~A fool you are! You have no brain to attack me with my bandits everywhere! Attack! I want these idiots dead!~ */
  IF ~~ THEN DO ~EndCutSceneMode()
Enemy()
~ EXIT
  IF ~Global("X#SHARTEELTAZOK6","GLOBAL",0)
InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#SHARTEELTAZOK6","GLOBAL",1)~ EXTERN ~SHARTJ~ 124
END

IF WEIGHT #20 /* Triggers after states #: 17 29 33 34 35 even though they appear after this state */
~  OR(3)
!InParty("kivan")
!InMyArea("kivan")
StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN BEGIN 15 // from: TEVEN:15.0
  SAY #2164 /* ~All the more reason to kill! He'll have my skull for this! Kill them now! Better still, I do myself! I trust not you fools!~ */
  IF ~~ THEN DO ~EndCutSceneMode()
Enemy()
~ EXIT
  IF ~Global("X#SHARTEELTAZOK7","GLOBAL",0)
InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#SHARTEELTAZOK7","GLOBAL",1)~ EXTERN ~SHARTJ~ 125
END

IF WEIGHT #21 /* Triggers after states #: 17 29 33 34 35 even though they appear after this state */
~  OR(3)
!InParty("kivan")
!InMyArea("kivan")
StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN BEGIN 16 // from:
  SAY #2165 /* ~Save breath, waste breath, whatever you wish. You die either way!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #7 /* Triggers after states #: 29 34 35 even though they appear after this state */
~  OR(3)
!InParty("kivan")
!InMyArea("kivan")
StateCheck("kivan",CD_STATE_NOTVALID)
False()
NumberOfTimesTalkedTo(0)
Global("JoinedBandits","GLOBAL",1)
~ THEN BEGIN 17 // from:
  SAY #2166 /* ~Recruits?! Secret operation and you hire those you rob?! By the lower planes, why do we pay Blacktalons to do stealth if you almost light signal fires?!~ */
  IF ~~ THEN EXTERN ~TEVEN~ 16
END

IF WEIGHT #22 /* Triggers after states #: 29 33 34 35 even though they appear after this state */
~  OR(3)
!InParty("kivan")
!InMyArea("kivan")
StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN BEGIN 18 // from: TEVEN:16.0
  SAY #2167 /* ~YOU DON'T THINK! I THINK! I question them myself and if they not as you say, you die too!~ */
  IF ~~ THEN GOTO 19
END

IF WEIGHT #23 /* Triggers after states #: 29 33 34 35 even though they appear after this state */
~  OR(3)
!InParty("kivan")
!InMyArea("kivan")
StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN BEGIN 19 // from: 18.0
  SAY #2168 /* ~I say now I don't like you! Give me reason to not have you broth-boiled and use your skin to swaddle my small-kin! Who are you that I should let you join?!~ */
  IF ~~ THEN REPLY #2327 /* ~We're just a group of simple merchants on our way to Baldur's Gate. Your bandits tried to raid us, so we figured if we can't beat them, join them.~ */ GOTO 20
  IF ~~ THEN REPLY #2328 /* ~Ah, go scare some school-girls. I could bruise you but good, and that's exactly why you need me!~ */ GOTO 21
  IF ~~ THEN REPLY #2329 /* ~We're strong, well armed, and we know opportunity when we see it! What better job be there for us? Dungeon crawling? That's fools' work!~ */ GOTO 23
END

IF WEIGHT #24 /* Triggers after states #: 29 33 34 35 even though they appear after this state */
~  OR(3)
!InParty("kivan")
!InMyArea("kivan")
StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN BEGIN 20 // from: 19.0
  SAY #2169 /* ~I've never seen "simple" merchants armed as you are! It look more like kick-ass be your commodity! I think you lie to me! I THINK YOU DIE!~ */
  IF ~~ THEN DO ~EndCutSceneMode()
Enemy()
~ EXIT
  IF ~Global("X#SHARTEELTAZOK8","GLOBAL",0)
InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#SHARTEELTAZOK8","GLOBAL",1)~ EXTERN ~SHARTJ~ 126
END

IF WEIGHT #25 /* Triggers after states #: 29 33 34 35 even though they appear after this state */
~  OR(3)
!InParty("kivan")
!InMyArea("kivan")
StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN BEGIN 21 // from: 19.1
  SAY #2170 /* ~You talk big! Maybe I think you talk TOO big! Maybe I think we just see who get bruised! Put your sword where your mouth is, or I put MINE there!~ */
  IF ~~ THEN DO ~EndCutSceneMode()
Enemy()
~ EXIT
  IF ~Global("X#SHARTEELTAZOK9","GLOBAL",0)
InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#SHARTEELTAZOK9","GLOBAL",1)~ EXTERN ~SHARTJ~ 127
END

IF WEIGHT #26 /* Triggers after states #: 29 33 34 35 even though they appear after this state */
~  OR(3)
!InParty("kivan")
!InMyArea("kivan")
StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN BEGIN 22 // from:
  SAY #2171 /* ~Heh! You fight pretty good. Maybe you're not such weaklings. I think you make pretty good bandits. Okay, you have run of camp. I have business to do, but Ardenor and Taugosz keep eyes on you!~ */
  IF ~~ THEN DO ~SetGlobal("BeatTazok","GLOBAL",1)
ChangeEnemyAlly(Myself,NEUTRAL)
~ UNSOLVED_JOURNAL #27469 /* ~Tazok and the Bandits
Tazok has allowed us to stay in the bandit camp, but will be keeping a constant watch on us.~ */ GOTO 27
  IF ~Global("X#GarTaz2","GLOBAL",0)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#GarTaz2","GLOBAL",1)~ EXTERN ~GARRIJ~ 110
END

IF WEIGHT #27 /* Triggers after states #: 29 33 34 35 even though they appear after this state */
~  OR(3)
!InParty("kivan")
!InMyArea("kivan")
StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN BEGIN 23 // from: 19.2
  SAY #2172 /* ~Hmmm. Ye have some sense to ye, but I have many a strong back here already. What for I need you?!~ */
  IF ~~ THEN REPLY #2330 /* ~Surely you must realize you need any help you can get, especially after losing Mulahey in the Nashkel mines.~ */ GOTO 24
  IF ~~ THEN REPLY #2331 /* ~Would you rather have too few and need more, or have too many and not need them at all?~ */ GOTO 25
  IF ~~ THEN REPLY #2332 /* ~Must I explain everything?! Can your thick ogrish skull not see how obviously talented we are? You're a fool if you don't take us!~ */ GOTO 26
END

IF WEIGHT #28 /* Triggers after states #: 29 33 34 35 even though they appear after this state */
~  OR(3)
!InParty("kivan")
!InMyArea("kivan")
StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN BEGIN 24 // from: 23.0
  SAY #2173 /* ~NONE KNOW THIS! If you know, maybe it was you who did it! I take your heads back to see if you're recognized!~ */
  IF ~~ THEN DO ~EndCutSceneMode()
Enemy()
~ EXIT
  IF ~Global("X#SHARTEELTAZOK10","GLOBAL",0)
InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#SHARTEELTAZOK10","GLOBAL",1)~ EXTERN ~SHARTJ~ 128
END

IF WEIGHT #29 /* Triggers after states #: 29 33 34 35 even though they appear after this state */
~  OR(3)
!InParty("kivan")
!InMyArea("kivan")
StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN BEGIN 25 // from: 23.1
  SAY #2174 /* ~Eh? You sure are big on words. You better be big on the battlefield too, 'cuz if you're not, you die. You have run of the camp. If I hear ONE bad thing from Ardenor and Taugosz, I personally feed your livers to the crows!~ */
  IF ~  OR(3)
!InParty("kivan")
!InMyArea("kivan")
StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN UNSOLVED_JOURNAL #27470 /* ~A Hidden Base?
Tazok plans to visit the site of a mine, where he might be reporting to the real bandit leader.~ */ GOTO 27
  IF ~  InParty("kivan")
InMyArea("kivan")
!StateCheck("kivan",CD_STATE_NOTVALID)
Global("P#KivanTazok1","GLOBAL",0)
~ THEN DO ~SetGlobal("P#KivanTazok1","GLOBAL",1)
EndCutSceneMode()
~ EXTERN ~KIVANJ~ 247
END

IF WEIGHT #30 /* Triggers after states #: 29 33 34 35 even though they appear after this state */
~  OR(3)
!InParty("kivan")
!InMyArea("kivan")
StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN BEGIN 26 // from: 23.2
  SAY #2175 /* ~I may not be the smartest man, but I know a blowhard braggart when I see one! I'm also not the one giving grief to the short-tempered, extremely large half-ogre! Put your sword where your mouth is, or I put MINE there!~ */
  IF ~~ THEN DO ~EndCutSceneMode()
Enemy()
~ EXIT
  IF ~Global("X#SHARTEELTAZOK11","GLOBAL",0)
InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#SHARTEELTAZOK11","GLOBAL",1)~ EXTERN ~SHARTJ~ 129
END

IF WEIGHT #31 /* Triggers after states #: 29 33 34 35 even though they appear after this state */
~  OR(3)
!InParty("kivan")
!InMyArea("kivan")
StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN BEGIN 27 // from: 54.0 25.0 22.0
  SAY #2176 /* ~I take a patrol and leave for mine tonight! Keep pressure on trade routes and there be extra gold for all when we are done! I leave soon.~ */
  IF ~  OR(3)
!InParty("kivan")
!InMyArea("kivan")
StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN DO ~EndCutSceneMode()
EscapeArea()
~ UNSOLVED_JOURNAL #27470 /* ~A Hidden Base?
Tazok plans to visit the site of a mine, where he might be reporting to the real bandit leader.~ */ EXIT
  IF ~  InParty("kivan")
InMyArea("kivan")
!StateCheck("kivan",CD_STATE_NOTVALID)
Global("P#KivanTazok1","GLOBAL",0)
~ THEN DO ~SetGlobal("P#KivanTazok1","GLOBAL",1)
EndCutSceneMode()
~ EXTERN ~KIVANJ~ 247
END

IF WEIGHT #32 /* Triggers after states #: 29 33 34 35 even though they appear after this state */
~  OR(3)
!InParty("kivan")
!InMyArea("kivan")
StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN BEGIN 28 // from:
  SAY #2178 /* ~A fool you are! You have no brain to attack me with my bandits everywhere! Attack! I want these idiots dead!~ */
  IF ~~ THEN DO ~EndCutSceneMode()
Enemy()
~ EXIT
  IF ~Global("X#SHARTEELTAZOK12","GLOBAL",0)
InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#SHARTEELTAZOK12","GLOBAL",1)~ EXTERN ~SHARTJ~ 130
END

IF WEIGHT #2 /* Triggers after states #: 34 35 even though they appear after this state */
~  StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 29 // from:
  SAY #5764 /* ~I'm a member of the Blacktalons. All I know is that we've been hired by the Zhentarim to attack the iron shipments coming along the Coast Way road.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 30 // from:
  SAY #8928 /* ~You've outstayed your welcome!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 31 // from:
  SAY #8935 /* ~Useless magic! Tazok laugh at you!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 32 // from:
  SAY #8936 /* ~Useless magic! Tazok laugh at you!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #8 /* Triggers after states #: 34 35 even though they appear after this state */
~  False()
NumberOfTimesTalkedTo(0)
Global("JoinedBandits","GLOBAL",4)
~ THEN BEGIN 33 // from:
  SAY #955 /* ~What do you mean, prisoners?! No one supposed to know of camp! NO ONE!~ */
  IF ~~ THEN EXTERN ~TEVEN~ 15
END

IF WEIGHT #0 ~  GlobalGT("JoinedBandits","GLOBAL",0)
Global("Chapter","GLOBAL",3)
InParty("kivan")
~ THEN BEGIN 34 // from:
  SAY #45618 /* ~Kill them! I am expected at the mines, and have no time for this shit!~ */
  IF ~~ THEN DO ~ClearAllActions()
SetGlobal("BeatTazok","GLOBAL",2)
SetGlobal("FoughtTazok","GLOBAL",2)
SetGlobal("JoinedBandits","GLOBAL",0)
SetGlobal("X#KBCTE","GLOBAL",1)
ActionOverride("banditcr",Enemy())
~ JOURNAL #45619 /* ~Tazok has recognized Kivan, and our plan to infiltrate the bandit's camp has failed.~ */ GOTO 35
  IF ~Global("X#SHARTEELTAZOK13","GLOBAL",0)
InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#SHARTEELTAZOK13","GLOBAL",1)~ EXTERN ~SHARTJ~ 131
END

IF WEIGHT #1 ~  Global("BeatTazok","GLOBAL",2)
InParty("kivan")
~ THEN BEGIN 35 // from: SHARTJ:131.0 51.0 36.0 34.0
  SAY #45620 /* ~The elf's head is to go on the pole in front of my tent!~ */
  IF ~~ THEN DO ~EndCutSceneMode()
ActionOverride("teven",Enemy())
ActionOverride("raiken",Enemy())
SetGlobal("JoinedBandits","GLOBAL",0)
ActionOverride("banditcr",Enemy())
EscapeArea()
SetGlobal("X#KBCTE","GLOBAL",1)
~ UNSOLVED_JOURNAL #45621 /* ~Kivan and Tazok

Unsurprisingly, my companion Kivan was recognized by Tazok, but he did not get his chance to skewer the half-ogre. The bandit was apparently too busy to deal with the revenge-crazy elf. Tazok is travelling to a mine site. This mine site could be the home base of whoever controls the bandits.~ */ EXIT
  IF ~Global("X#SHARTEELTAZOK14","GLOBAL",0)
InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#SHARTEELTAZOK14","GLOBAL",1)~ EXTERN ~SHARTJ~ 132
END

IF ~~ THEN BEGIN 36 // from:
  SAY #45618 /* ~Kill them! I am expected at the mines, and have no time for this shit!~ */
  IF ~~ THEN DO ~ClearAllActions()
SetGlobal("BeatTazok","GLOBAL",2)
SetGlobal("FoughtTazok","GLOBAL",2)
SetGlobal("JoinedBandits","GLOBAL",0)
ActionOverride("banditcr",Enemy())
~ JOURNAL #45622 /* ~Tazok Recognized Kivan

Tazok has recognized Kivan and our plan to infiltrate the bandit's camp has failed.~ */ GOTO 35
END

IF ~~ THEN BEGIN 37 // from:
  SAY #45623 /* ~Now, isn't that our walking dead at last? And with a company of pathetic fools like himself, no less.~ */
  IF ~~ THEN EXTERN ~KIVANJ~ 258
END

IF ~~ THEN BEGIN 38 // from:
  SAY #45625 /* ~Oh, your screeching voice makes me shiver! You have pestered my soldiers long enough, scum! I am going to put an end to it, and I am going to do the job properly.~ */
  IF ~~ THEN DO ~ClearAllActions()
SetGlobal("BeatTazok","GLOBAL",2)
SetGlobal("FoughtTazok","GLOBAL",2)
ActionOverride("tazok",Enemy())
ActionOverride("teven",Enemy())
ActionOverride("banditcr",Enemy())
ActionOverride("raiken",Enemy())
~ JOURNAL #45626 /* ~Tazok Recognized Kivan

Tazok has recognized Kivan. Our only hope to infiltrate the bandit's camp now is to kill the fiend. Kivan would like that, I wager.~ */ EXIT
END

IF ~~ THEN BEGIN 39 // from: SHARTJ:119.1
  SAY #46495 /* ~Heh, maybe you are bandits, after all! Let's see if you can fight!~ */
  IF ~~ THEN DO ~EndCutSceneMode()
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 40 // from: SHARTJ:120.1
  SAY #46495 /* ~Heh, maybe you are bandits, after all! Let's see if you can fight!~ */
  IF ~~ THEN DO ~EndCutSceneMode()
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 41 // from: SHARTJ:121.1
  SAY #46495 /* ~Heh, maybe you are bandits, after all! Let's see if you can fight!~ */
  IF ~~ THEN DO ~EndCutSceneMode()
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 42 // from: SHARTJ:122.1
  SAY #46495 /* ~Heh, maybe you are bandits, after all! Let's see if you can fight!~ */
  IF ~~ THEN DO ~EndCutSceneMode()
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 43 // from: SHARTJ:123.1
  SAY #46495 /* ~Heh, maybe you are bandits, after all! Let's see if you can fight!~ */
  IF ~~ THEN DO ~EndCutSceneMode()
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 44 // from: SHARTJ:124.1
  SAY #46495 /* ~Heh, maybe you are bandits, after all! Let's see if you can fight!~ */
  IF ~~ THEN DO ~EndCutSceneMode()
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 45 // from: SHARTJ:125.1
  SAY #46495 /* ~Heh, maybe you are bandits, after all! Let's see if you can fight!~ */
  IF ~~ THEN DO ~EndCutSceneMode()
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 46 // from: SHARTJ:126.1
  SAY #46495 /* ~Heh, maybe you are bandits, after all! Let's see if you can fight!~ */
  IF ~~ THEN DO ~EndCutSceneMode()
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 47 // from: SHARTJ:127.1
  SAY #46495 /* ~Heh, maybe you are bandits, after all! Let's see if you can fight!~ */
  IF ~~ THEN DO ~EndCutSceneMode()
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 48 // from: SHARTJ:128.1
  SAY #46495 /* ~Heh, maybe you are bandits, after all! Let's see if you can fight!~ */
  IF ~~ THEN DO ~EndCutSceneMode()
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 49 // from: SHARTJ:129.1
  SAY #46495 /* ~Heh, maybe you are bandits, after all! Let's see if you can fight!~ */
  IF ~~ THEN DO ~EndCutSceneMode()
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 50 // from: SHARTJ:130.1
  SAY #46495 /* ~Heh, maybe you are bandits, after all! Let's see if you can fight!~ */
  IF ~~ THEN DO ~EndCutSceneMode()
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 51 // from: SHARTJ:131.1
  SAY #46495 /* ~Heh, maybe you are bandits, after all! Let's see if you can fight!~ */
  IF ~~ THEN DO ~ClearAllActions()
SetGlobal("BeatTazok","GLOBAL",2)
SetGlobal("FoughtTazok","GLOBAL",2)
SetGlobal("JoinedBandits","GLOBAL",0)
SetGlobal("X#KBCTE","GLOBAL",1)
ActionOverride("banditcr",Enemy())
~ JOURNAL #45619 /* ~Tazok has recognized Kivan, and our plan to infiltrate the bandit's camp has failed.~ */ GOTO 35
END

IF ~~ THEN BEGIN 52 // from: SHARTJ:132.1
  SAY #46495 /* ~Heh, maybe you are bandits, after all! Let's see if you can fight!~ */
  IF ~~ THEN DO ~EndCutSceneMode()
ActionOverride("teven",Enemy())
ActionOverride("raiken",Enemy())
SetGlobal("JoinedBandits","GLOBAL",0)
ActionOverride("banditcr",Enemy())
EscapeArea()
SetGlobal("X#KBCTE","GLOBAL",1)
~ UNSOLVED_JOURNAL #45621 /* ~Kivan and Tazok

Unsurprisingly, my companion Kivan was recognized by Tazok, but he did not get his chance to skewer the half-ogre. The bandit was apparently too busy to deal with the revenge-crazy elf. Tazok is travelling to a mine site. This mine site could be the home base of whoever controls the bandits.~ */ EXIT
END

IF ~~ THEN BEGIN 53 // from:
  SAY #46809 /* ~Taugoz watching you.~ */
  IF ~~ THEN DO ~EndCutSceneMode()
ClearAllActions()
SetGlobal("BeatTazok","GLOBAL",1)
ChangeEnemyAlly(Myself,NEUTRAL)
SetGlobal("FoughtTazok","GLOBAL",1)
~ UNSOLVED_JOURNAL #27469 /* ~Tazok and the Bandits
Tazok has allowed us to stay in the bandit camp, but will be keeping a constant watch on us.~ */ GOTO 13
END

IF ~~ THEN BEGIN 54 // from:
  SAY #46809 /* ~Taugoz watching you.~ */
  IF ~~ THEN DO ~SetGlobal("BeatTazok","GLOBAL",1)
ChangeEnemyAlly(Myself,NEUTRAL)
~ UNSOLVED_JOURNAL #27469 /* ~Tazok and the Bandits
Tazok has allowed us to stay in the bandit camp, but will be keeping a constant watch on us.~ */ GOTO 27
END

IF ~~ THEN BEGIN 55 // from: VICONJ:135.3
  SAY #47463 /* ~Ha! Only one of you be drow, the rest look like weak-things!~ */
  IF ~~ THEN REPLY #2321 /* ~We're just a group of simple merchants on our way to Baldur's Gate. Your bandits tried to raid us, so we figured if we can't beat them, join them.~ */ GOTO 6
  IF ~~ THEN REPLY #2322 /* ~Ah, go scare some school-girls. I could bruise you but good, and that's exactly why you need me!~ */ GOTO 7
  IF ~~ THEN REPLY #2323 /* ~We're strong, well armed, and we know opportunity when we see it! What better job be there for us? Dungeon crawling? That's fools' work!~ */ GOTO 9
END
