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

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

IF WEIGHT #1 /* Triggers after states #: 17 even though they appear after this state */
~  NumberOfTimesTalkedTo(0)
Global("JoinedBandits","GLOBAL",0)
~ THEN BEGIN 0 // from:
  SAY #1161 /* ~It's your choice which hits the ground first: your swords or your heads! Be smart now, and you'll all live to grow wise!~ */
  IF ~~ THEN REPLY #1162 /* ~You'll not take us alive!~ */ GOTO 1
  IF ~~ THEN REPLY #1163 /* ~We'll not fight you. In fact, we want to join your group.~ */ GOTO 3
  IF ~~ THEN REPLY #1164 /* ~We don't want any trouble. Take what you want and leave us be.~ */ GOTO 2
  IF ~Global("X#RAIKEN0","GLOBAL",0)
InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#RAIKEN0","GLOBAL",1)~ EXTERN ~SHARTJ~ 314
  IF ~Global("X#RAIKEN0","GLOBAL",0)
InParty("kivan")
InMyArea("kivan")
!StateCheck("kivan",CD_STATE_NOTVALID)
!Dead("tazok")
~ THEN DO ~SetGlobal("X#RAIKEN0","GLOBAL",1)~ EXTERN ~KIVANJ~ 420
END

IF ~~ THEN BEGIN 1 // from: 8.0 7.0 4.0 0.0
  SAY #1165 /* ~As you like it, fools! Your children be orphans tonight!~ */
  IF ~~ THEN DO ~Shout(1)
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 2 // from: 8.1 7.1 4.1 0.2
  SAY #1166 /* ~We'll settle this like nobles yet. Now hand over any iron and your purses please. Ah, iron for the cause and gold for the coffers. I love my job.~ */
  IF ~~ THEN DO ~TakePartyGold(1000000)
Shout(2)
EscapeArea()
~ UNSOLVED_JOURNAL #27378 /* ~Tazok and the Bandits
The bandits I fought today were happy to steal copper, silver, and gold, but the metal they really cared about was iron.~ */ EXIT
  IF ~Global("X#ImoenRaiken","GLOBAL",0)
InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#ImoenRaiken","GLOBAL",1)~ EXTERN ~IMOEN2~ 223
END

IF ~~ THEN BEGIN 3 // from: 0.1
  SAY #1167 /* ~Now there's a laugh! Why, pray tell, should we take you rattle-pates?~ */
  IF ~  CheckStatLT(LastTalkedToBy,10,STR)
~ THEN REPLY #1168 /* ~It's a bloodthirsty job you have, and we like the killin'! Let us join, and the roads will run red 'neath our feet!~ */ UNSOLVED_JOURNAL #27379 /* ~Tazok and the Bandits
The local bandits have become awfully picky. They refused my offer to join their merry band.~ */ GOTO 4
  IF ~~ THEN REPLY #1169 /* ~Tazok can ill afford to turn down any offer of help. It's a monumental task he has ahead.~ */ GOTO 6
  IF ~~ THEN REPLY #1170 /* ~But there's no future in anything else! Everyone is afraid of you, and I want to be respected like that too! Please? Pretty pleeeeeease?~ */ GOTO 7
  IF ~  False()
~ THEN REPLY #1171 /* ~You're too good at your job! We can see which way the wind is blowing. Whatever you're doing, we want in. It's the only real profit on the Sword Coast today.~ */ GOTO 8
  IF ~  CheckStatGT(LastTalkedToBy,14,STR)
~ THEN REPLY #1863 /* ~It's a bloodthirsty job you have, and we like the killin'! Let us join and the roads will run red 'neath our feet!~ */ GOTO 5
  IF ~  True()
~ THEN REPLY #1864 /* ~You're too good at your job! We can see which way the wind is blowing, and whatever you're doing, we want in. It's the only real profit on the Sword Coast today.~ */ GOTO 9
END

IF ~~ THEN BEGIN 4 // from: 3.0
  SAY #1172 /* ~We've no room for an unstable blade. It's careful work, not slaughter! Now, do you surrender or not?~ */
  IF ~~ THEN REPLY #1865 /* ~You'll not take us alive!~ */ GOTO 1
  IF ~~ THEN REPLY #1866 /* ~We don't want any trouble. Take what you want and leave us be.~ */ GOTO 2
END

IF ~~ THEN BEGIN 5 // from: 3.4
  SAY #1173 /* ~You scare me, but I like your fire! All right then, we'll take you to the boss and see if he likes you, too. Follow.~ */
  IF ~~ THEN DO ~AddexperienceParty(400)
SetGlobal("JoinedBandits","GLOBAL",2)
Shout(2)
ClearAllActions()
StartCutSceneMode()
StartCutScene("Bancut01")
~ UNSOLVED_JOURNAL #27380 /* ~Tazok and the Bandits
I have managed to convince a group of bandits to let me join with them. I foresee no problem in finding their base now.~ */ EXIT
  IF ~Global("X#Ajantisraiken1","GLOBAL",0)
InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#Ajantisraiken1","GLOBAL",1)~ EXTERN ~AJANTJ~ 60
END

IF ~~ THEN BEGIN 6 // from: 3.1
  SAY #1174 /* ~How did you come by the name of Tazok? No matter. We will kill you now and shaft the spy who told you later!~ */
  IF ~~ THEN DO ~Shout(1)
Enemy()
~ UNSOLVED_JOURNAL #27381 /* ~Tazok and the Bandits
When I mentioned the name Tazok to a group of bandits, they attacked me at once. I guess not all bandits get along with each other.~ */ EXIT
END

IF ~~ THEN BEGIN 7 // from: 3.2
  SAY #1175 /* ~We have no concern in what you amount to! Surrender now so I can get you out of my sight!~ */
  IF ~~ THEN REPLY #1867 /* ~You'll not take us alive!~ */ GOTO 1
  IF ~~ THEN REPLY #1868 /* ~We don't want any trouble. Take what you want and leave us be.~ */ GOTO 2
END

IF ~~ THEN BEGIN 8 // from: 3.3
  SAY #1176 /* ~I've no time to suffer your flattery! Surrender or die, make your choice!~ */
  IF ~~ THEN REPLY #1869 /* ~You'll not take us alive!~ */ GOTO 1
  IF ~~ THEN REPLY #1870 /* ~We don't want any trouble. Take what you want and leave us be.~ */ GOTO 2
END

IF ~~ THEN BEGIN 9 // from: 3.5
  SAY #1177 /* ~Ha ha! I like you. You make me laugh! We'll take you back to the boss and see if he likes you, too. Then maybe you're in. If not, you die. Follow me and try to keep up.~ */
  IF ~~ THEN DO ~AddexperienceParty(400)
SetGlobal("JoinedBandits","GLOBAL",2)
Shout(2)
ClearAllActions()
StartCutSceneMode()
StartCutScene("Bancut01")
~ UNSOLVED_JOURNAL #27380 /* ~Tazok and the Bandits
I have managed to convince a group of bandits to let me join with them. I foresee no problem in finding their base now.~ */ EXIT
  IF ~Global("X#Ajantisraiken2","GLOBAL",0)
InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#Ajantisraiken2","GLOBAL",1)~ EXTERN ~AJANTJ~ 61
END

IF ~~ THEN BEGIN 10 // from:
  SAY #1187 /* ~You'll come dead is what you'll do! It's less trouble just to carry your heads!~ */
  IF ~~ THEN DO ~Shout(1)
Enemy()
~ UNSOLVED_JOURNAL #27382 /* ~Tazok and the Bandits
While they didn't provide any useful information, I put an end to another group of bandits plaguing the Sword Coast today.~ */ EXIT
END

IF ~~ THEN BEGIN 11 // from:
  SAY #1188 /* ~You've caused us a bit of trouble, you have! We'll take you back to camp so Tazok knows why we've been delayed. When he gets through with you, 'tis sure you'll wish you were dead!~ */
  IF ~~ THEN DO ~SetGlobal("JoinedBandits","GLOBAL",5)
Shout(2)
ClearAllActions()
StartCutSceneMode()
StartCutScene("Bancut01")
~ EXIT
END

IF ~~ THEN BEGIN 12 // from:
  SAY #1189 /* ~These aren't just uppity merchants or nobles. I think they're spies for the guard, or worse! They just act... differently. I figured Tazok could sort them out, maybe find out who sent 'em and how much they know. He would want that.~ */
  IF ~~ THEN EXTERN ~BANDCR~ 1
END

IF ~~ THEN BEGIN 13 // from:
  SAY #1190 /* ~It's a risk, I know, but we must think about keeping our numbers up! We'll not have the time to bring more from Iriaebor. Better that we recruit here. They've already proved themselves to me.~ */
  IF ~~ THEN EXTERN ~BANDCR~ 3
END

IF ~~ THEN BEGIN 14 // from:
  SAY #1191 /* ~I know, Tazok. We just though that you might want to question them. They seem to know something about what is going on!~ */
  IF ~~ THEN EXTERN ~TAZOK~ 1
END

IF ~~ THEN BEGIN 15 // from:
  SAY #1192 /* ~We need to keep our numbers up! Besides, we checked them out pretty good. I think they'll do fine.~ */
  IF ~~ THEN EXTERN ~TAZOK~ 4
END

IF ~~ THEN BEGIN 16 // from:
  SAY #1193 /* ~Pick up the pace, else you die slow as well!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~  StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 17 // from:
  SAY #5787 /* ~I'm Raiken, and I'm the commander of one of the Blacktalon bands. Our job is to raid all of the iron caravans on route along the Coast Way. Our camp is located north of here.~ */
  IF ~~ THEN DO ~RevealAreaOnMap("AR1900")
~ UNSOLVED_JOURNAL #27383 /* ~Tazok and the Bandits
Raiken, one of the commanders of the Blacktalon mercenaries, has told us that his bandits have been raiding all of the iron caravans moving along the Coast Way. He has also told us that his camp lies to the north, most likely in the Wood of Sharp Teeth.~ */ EXIT
END

IF ~~ THEN BEGIN 18 // from:
  SAY #8933 /* ~No talking and no deals! Death is all that you have left!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 19 // from:
  SAY #46091 /* ~Ye said somethin'?~ */
  IF ~~ THEN DO ~AddexperienceParty(400)
SetGlobal("JoinedBandits","GLOBAL",2)
Shout(2)
ClearAllActions()
StartCutSceneMode()
StartCutScene("Bancut01")
~ UNSOLVED_JOURNAL #27380 /* ~Tazok and the Bandits
I have managed to convince a group of bandits to let me join with them. I foresee no problem in finding their base now.~ */ EXIT
END

IF ~~ THEN BEGIN 20 // from:
  SAY #46091 /* ~Ye said somethin'?~ */
  IF ~~ THEN DO ~AddexperienceParty(400)
SetGlobal("JoinedBandits","GLOBAL",2)
Shout(2)
ClearAllActions()
StartCutSceneMode()
StartCutScene("Bancut01")
~ UNSOLVED_JOURNAL #27380 /* ~Tazok and the Bandits
I have managed to convince a group of bandits to let me join with them. I foresee no problem in finding their base now.~ */ EXIT
END

IF ~~ THEN BEGIN 21 // from:
  SAY #47056 /* ~Thank you for your most generous donation.~ */
  IF ~~ THEN DO ~TakePartyGold(1000000)
Shout(2)
EscapeArea()
~ UNSOLVED_JOURNAL #27378 /* ~Tazok and the Bandits
The bandits I fought today were happy to steal copper, silver, and gold, but the metal they really cared about was iron.~ */ EXIT
END
