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

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

IF WEIGHT #1 /* Triggers after states #: 2 even though they appear after this state */
~  Global("EmersonPermission","GLOBAL",1)
~ THEN BEGIN 0 // from:
  SAY #764 /* ~I wish you guys luck in there. Whatever's been causing all the trouble isn't something I'd wanna run into.~ */
  IF ~~ THEN DO ~SetGlobal("GuardMinePermission","GLOBAL",1)
ActionOverride("Amnish3",MoveToPoint([1361.762]))
ActionOverride("Amnish3",Face(SW))
~ EXIT
  IF ~Global("X#GarAmnis3","GLOBAL",0)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#GarAmnis3","GLOBAL",1)~ EXTERN ~GARRIJ~ 44
END

IF WEIGHT #2 /* Triggers after states #: 2 even though they appear after this state */
~  Global("EmersonPermission","GLOBAL",0)
~ THEN BEGIN 1 // from:
  SAY #3314 /* ~You guys really should get permission from Emerson 'fore you enter the mines. He can get really nasty 'bout unauthorized guys wandering 'bout his mines.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #26839 /* ~Investigating the Nashkel Mines
The guards at the mine entrance told me that I have to see a man named Emerson before they will let me into the mines.~ */ EXIT
END

IF WEIGHT #0 ~  StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 2 // from:
  SAY #5751 /* ~Hey, friend, all I know is that there's been trouble in the mines, some sort of dog people, I've heard.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #26840 /* ~Investigating the Nashkel Mines
I charmed a guard who said that "dog people" were attacking miners in the lower levels.~ */ EXIT
END

IF ~~ THEN BEGIN 3 // from:
  SAY #8909 /* ~Approach me not! I'll ruffle you up, I will!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 4 // from:
  SAY #46724 /* ~Good luck!~ */
  IF ~~ THEN DO ~SetGlobal("GuardMinePermission","GLOBAL",1)
ActionOverride("Amnish3",MoveToPoint([1361.762]))
ActionOverride("Amnish3",Face(SW))
~ EXIT
END
