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

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

IF WEIGHT #1 /* Triggers after states #: 4 even though they appear after this state */
~  True()
~ THEN BEGIN 0 // from:
  SAY #206 /* ~Heee hee he ha! You no fight! You fight, you die! Give all gold and iron or you die! 'Tis simple choices! What I say, or die! Die die DIE!~ [CATTC01] */
  IF ~~ THEN REPLY #210 /* ~We'll never surrender to you cut-rate marauders!~ */ GOTO 2
  IF ~~ THEN REPLY #211 /* ~We'll not fight you. In fact, we want to join your group.~ */ GOTO 1
  IF ~~ THEN REPLY #212 /* ~We don't want any trouble. Take what you want and leave us be.~ */ GOTO 3
  IF ~Global("X#KivanCattack","GLOBAL",0)
InParty("kivan")
InMyArea("kivan")
!StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#KivanCattack","GLOBAL",1)~ EXTERN ~KIVANJ~ 236
END

IF ~~ THEN BEGIN 1 // from: 0.1
  SAY #207 /* ~You no join Chill! Not even funny! 'Tis insult you die for!~ */
  IF ~~ THEN DO ~Shout(1)
Enemy()
Attack(NearestEnemyOf(Myself))
~ JOURNAL #6426 /* ~I have encountered a demihuman group of bandits! Iron and gold were what they wished.~ */ EXIT
  IF ~Global("X#SHARCattack1","GLOBAL",0)
InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#SHARCattack1","GLOBAL",1)~ EXTERN ~SHARTJ~ 141
END

IF ~~ THEN BEGIN 2 // from: 6.0 0.0
  SAY #208 /* ~Your hearts are brave! We rip them out and show you! Chill, attack!~ */
  IF ~~ THEN DO ~Shout(1)
Enemy()
Attack(NearestEnemyOf(Myself))
~ JOURNAL #6426 /* ~I have encountered a demihuman group of bandits! Iron and gold were what they wished.~ */ EXIT
END

IF ~~ THEN BEGIN 3 // from: 0.2
  SAY #209 /* ~You smart coward! You live to run away again! No move no follow, or Chill kill!~ */
  IF ~~ THEN DO ~TakePartyGold(2000000000)
Shout(2)
EscapeArea()
~ JOURNAL #6426 /* ~I have encountered a demihuman group of bandits! Iron and gold were what they wished.~ */ EXIT
  IF ~Global("X#SHARCattack2","GLOBAL",0)
InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#SHARCattack2","GLOBAL",1)~ EXTERN ~SHARTJ~ 143
END

IF WEIGHT #0 ~  StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 4 // from:
  SAY #5783 /* ~I am Cattack, member of Chill. Chill been ordered to attack all fat humans carrying iron. We do that, we like cause it's fun. We come from bandit base to east.~ */
  IF ~~ THEN JOURNAL #6426 /* ~I have encountered a demihuman group of bandits! Iron and gold were what they wished.~ */ EXIT
END

IF ~~ THEN BEGIN 5 // from:
  SAY #8932 /* ~You die for what you do! DIE!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 6 // from:
  SAY #45589 /* ~Aye, yer right, pointy-eared. I am Cattack, member of Chill. Chill been ordered to attack all fat humans, carrying iron. We do that, we like cause it's fun to KILL!~ */
  IF ~~ THEN GOTO 2
END

IF ~~ THEN BEGIN 7 // from:
  SAY #46510 /* ~You all worthless rags!~ */
  IF ~~ THEN DO ~Shout(1)
Enemy()
Attack(NearestEnemyOf(Myself))
~ JOURNAL #6426 /* ~I have encountered a demihuman group of bandits! Iron and gold were what they wished.~ */ EXIT
END

IF ~~ THEN BEGIN 8 // from:
  SAY #46512 /* ~Smart human! Cattack take gold and go.~ */
  IF ~~ THEN DO ~TakePartyGold(2000000000)
Shout(2)
EscapeArea()
~ JOURNAL #6426 /* ~I have encountered a demihuman group of bandits! Iron and gold were what they wished.~ */ EXIT
END
