// creator  : weidu.exe (version 23100)
// argument : TRAX.DLG
// game		 : .
// source	 : ./DATA/DIALOG.BIF
// dialog	 : ./DIALOG.TLK
// dialogF  : (none)

BEGIN ~TRAX~

IF ~NumTimesTalkedTo(0)
!Dead("Jan")
!StateCheck("Jan",STATE_SLEEPING)
!Dead("trguard")
!StateCheck("trguard",STATE_SLEEPING)~ THEN BEGIN 0 // from:
  SAY #501 /* ~Hold gnome, in the name of the Amnian Revenue and Taxation Board.~ */
  IF ~~ THEN EXTERN ~JAN~ 4
END

IF ~NumTimesTalkedTo(1)
!Dead("Jan")
!StateCheck("Jan",STATE_SLEEPING)
!Dead("trguard")
!StateCheck("trguard",STATE_SLEEPING)~ THEN BEGIN 1 // from:
  SAY #503 /* ~Jan Jansen, gnomish citizen of Amn, you have been charged with tax evasion and the illegal sale of illegal items in an illegal manner.~ */
  IF ~~ THEN EXTERN ~JAN~ 11
END

IF ~~ THEN BEGIN 2 // from:
  SAY #505 /* ~Enough! You'll not sidetrack me with your cursed tales again. I'm smarter than you think!~ */
  IF ~~ THEN EXTERN ~TRGUARD~ 0
END

IF ~~ THEN BEGIN 3 // from: TRGUARD:0.0
  SAY #506 /* ~Shutup, you! Latrine duty beckons... that's better. We've been onto you for days, Jansen. We've caught you in the very act of selling your dangerous and illegal contraptions.~ */
  IF ~~ THEN EXTERN ~JAN~ 12
END

IF ~~ THEN BEGIN 4 // from:
  SAY #507 /* ~I'm not your friend, Jansen!~ */
  IF ~~ THEN EXTERN ~TRGUARD~ 1
END

IF ~~ THEN BEGIN 5 // from: TRGUARD:1.0
  SAY #508 /* ~Oh, that's it! Do you enjoy guarding used chamber pots?~ */
  IF ~~ THEN EXTERN ~TRGUARD~ 2
END

IF ~~ THEN BEGIN 6 // from: TRGUARD:2.0
  SAY #509 /* ~I swear this job will land me in an asylum. And who might you be? You're certainly no regular customer of this felon.~ */
  IF ~~ THEN REPLY #511 /* ~I am <CHARNAME>, an adventurer.~ */ GOTO 7
  IF ~~ THEN REPLY #512 /* ~None of your business, Trax.~ */ GOTO 8
  IF ~~ THEN REPLY #513 /* ~Don't I have the right to be silent?~ */ GOTO 9
END

IF ~~ THEN BEGIN 7 // from: 15.1 14.0 13.1 9.0 8.1 6.0
  SAY #510 /* ~Well, <CHARNAME>, did this gnome try to sell you illegal merchandise?  Specifically 'Flashers' as he calls them?~ */
  IF ~~ THEN REPLY #514 /* ~I don't know what you're talking about. We were simply talking about the weather.~ */ GOTO 10
  IF ~~ THEN REPLY #515 /* ~Yes, sir. He tried to sell me a flasher.~ */ GOTO 12
  IF ~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
~ THEN REPLY #516 /* ~Get lost, Trax. I'm not here to answer your petty questions.~ */ GOTO 13
  IF ~ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
~ THEN REPLY #517 /* ~I'm not here to answer your questions. I've done no wrong so leave me be.~ */ GOTO 14
END

IF ~~ THEN BEGIN 8 // from: 6.1
  SAY #518 /* ~Listen, now peasant, you will cooperate. I represent the law.~ */
  IF ~~ THEN REPLY #519 /* ~You heard me. I'll answer none of your questions.~ */ GOTO 13
  IF ~~ THEN REPLY #520 /* ~Fine, I am <CHARNAME>, an adventurer.~ */ GOTO 7
END

IF ~~ THEN BEGIN 9 // from: 6.2
  SAY #521 /* ~Silent? What kind of stupid right is that? You have to answer my questions or face arrest.~ */
  IF ~~ THEN REPLY #522 /* ~All right, I am <CHARNAME>, an adventurer.~ */ GOTO 7
  IF ~~ THEN REPLY #523 /* ~Do you truly believe that you have the strength to arrest me?~ */ GOTO 15
END

IF ~~ THEN BEGIN 10 // from: 7.0
  SAY #524 /* ~Curses! The gnome has gotten to you, too!  Jansen, you can no longer peddle in Athkatla.  As for you, <CHARNAME>, you have made a dangerous enemy.~ */
  IF ~~ THEN DO ~AddexperienceParty(8500)
~ EXTERN ~TRGUARD~ 3
END

IF ~~ THEN BEGIN 11 // from: TRGUARD:3.0
  SAY #525 /* ~I am, you idiot! Move it! Back to the office!~ */
  IF ~~ THEN DO ~StartCutSceneMode()
StartCutScene("Cut08b")
~ EXIT
END

IF ~~ THEN BEGIN 12 // from: 7.1
  SAY #526 /* ~Aha! Jan Jansen, we have a witness. Take him into custody.  As for you, <CHARNAME>, you have done a good deed and are entitled to the reward of 100gp.~ */
  IF ~~ THEN REPLY #527 /* ~Thank you, sir. It was the least that a conscientious citizen could do.~ */ DO ~GivePartyGold(100)~ GOTO 16
  IF ~~ THEN REPLY #528 /* ~I don't want your dirty money. This man does not deserve to be arrested.~ */ GOTO 17
END

IF ~~ THEN BEGIN 13 // from: 8.0 7.2
  SAY #529 /* ~Do you wish to be executed for not cooperating, <CHARNAME>?~ */
  IF ~~ THEN REPLY #530 /* ~Do you truly believe that you have the strength to kill me?~ */ GOTO 15
  IF ~~ THEN REPLY #531 /* ~In that case, I am ready to answer your question.~ */ GOTO 7
END

IF ~~ THEN BEGIN 14 // from: 7.3
  SAY #532 /* ~I believe you. It is Jan Jansen that we want. By Amnian law you must answer my question but I will tell you now that there is 100gp reward for any information leading to the arrest of this gnome.~ */
  IF ~~ THEN GOTO 7
END

IF ~~ THEN BEGIN 15 // from: 13.0 9.1
  SAY #533 /* ~You may either answer me peacefully or I shall summon those who will kill you instead. What say you?~ */
  IF ~~ THEN REPLY #534 /* ~Do your worst!~ */ GOTO 18
  IF ~~ THEN REPLY #535 /* ~I will answer the question.~ */ GOTO 7
END

IF ~~ THEN BEGIN 16 // from: 12.0
  SAY #536 /* ~Should you feel inclined to pay Jan's fine, as the gnome quite obviously wants you to, you shall find the prison on the other side of the square. The fine is 800gp. Very well! Good day!~ */
  IF ~~ THEN EXTERN ~JAN~ 13
END

IF ~~ THEN BEGIN 17 // from: 12.1
  SAY #537 /* ~If you believe that he should be free you are welcome to come down to the guardhouse and pay his fine.~ */
  IF ~~ THEN REPLY #538 /* ~How much is the fine and where is this guardhouse?~ */ GOTO 19
END

IF ~~ THEN BEGIN 18 // from: 15.0
  SAY #539 /* ~You have brought this doom upon yourselves, lawbreakers.~ */
  IF ~~ THEN DO ~ReputationInc(-4)
CreateCreatureObject("AMNCEN1",Myself,0,0,0)
CreateCreatureObject("AMNLEG1",Myself,0,0,0)
CreateCreatureObject("AMNLEG1",Myself,0,0,0)
CreateCreatureObject("AMNLEG1",Myself,0,0,0)
CreateCreatureObject("AMNLEG1",Myself,0,0,0)
CreateCreatureObject("COWENF1",Myself,0,0,0)
CreateCreatureObject("COWENF1",Myself,0,0,0)
ActionOverride("Traxg",EscapeArea())
EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 19 // from: 17.0
  SAY #540 /* ~The fine shall be 800gp. The guardhouse is located on the opposite side of this square.~ */
  IF ~~ THEN DO ~SetGlobal("JanMove","GLOBAL",1)
~ EXIT
END
