BEGIN ~USVEIRJ~

IF ~InParty(Myself)
Global("BANTERUSVEIRJ","GLOBAL",1)~ THEN BEGIN 0
  SAY @40566
  IF ~!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVUNA)")
!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USEMMA)")
!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USREIG)")
IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USGEOF)")~ THEN REPLY @40571 DO ~SetGlobal("DIDBANTERUSVEIRJ1","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ EXTERN ~USGEOFJ~ 66
  IF ~!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVUNA)")
!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USEMMA)")
!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USREIG)")
IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USGEOF)")~ THEN REPLY @40572 DO ~SetGlobal("DIDBANTERUSVEIRJ1","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ EXTERN ~USGEOFJ~ 71
  IF ~!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVUNA)")
!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USEMMA)")
!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USREIG)")
!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USGEOF)")~ THEN REPLY @40573 DO ~SetGlobal("DIDBANTERUSVEIRJ1","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ EXIT
  IF ~!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVUNA)")
!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USEMMA)")
!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USREIG)")
IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USGEOF)")~ THEN REPLY @40574 DO ~SetGlobal("DIDBANTERUSVEIRJ1","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ EXTERN ~USGEOFJ~ 72
  IF ~!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVUNA)")
!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USEMMA)")
!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USREIG)")
!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USGEOF)")~ THEN REPLY @40574 DO ~SetGlobal("DIDBANTERUSVEIRJ1","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ EXIT
  IF ~!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVUNA)")
!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USEMMA)")
!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USREIG)")~ THEN REPLY @40575 DO ~SetGlobal("DIDBANTERUSVEIRJ1","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ EXIT
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVUNA)")~ THEN DO ~SetGlobal("DIDBANTERUSVEIRJ1","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ EXTERN ~USVUNAJ~ 3
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USEMMA)")~ THEN DO ~SetGlobal("DIDBANTERUSVEIRJ1","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ EXTERN ~USEMMAJ~ 11
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USREIG)")~ THEN DO ~SetGlobal("DIDBANTERUSVEIRJ1","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ EXTERN ~USREIGJ~ 79
END

IF ~InParty(Myself)
Global("BANTERUSVEIRJ","GLOBAL",2)~ THEN BEGIN 1
  SAY @40661
  IF ~~ THEN REPLY @40662 DO ~SetGlobal("DIDBANTERUSVEIRJ2","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ GOTO 2
  IF ~~ THEN REPLY @40663 DO ~SetGlobal("DIDBANTERUSVEIRJ2","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ GOTO 3
  IF ~~ THEN REPLY @40664 DO ~SetGlobal("DIDBANTERUSVEIRJ2","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ GOTO 4
  IF ~~ THEN REPLY @40665 DO ~SetGlobal("DIDBANTERUSVEIRJ2","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ GOTO 5
END

IF ~~ THEN BEGIN 2
  SAY @40666
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 3
  SAY @40667
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 4
  SAY @40668
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 5
  SAY @40669
  IF ~~ THEN EXIT
END

IF ~InParty(Myself)
Global("BANTERUSVEIRJ","GLOBAL",3)~ THEN BEGIN 6
  SAY @40670
  IF ~~ THEN REPLY @40671 DO ~SetGlobal("DIDBANTERUSVEIRJ3","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ GOTO 7
  IF ~~ THEN REPLY @40672 DO ~SetGlobal("DIDBANTERUSVEIRJ3","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ GOTO 8
  IF ~~ THEN REPLY @40673 DO ~SetGlobal("DIDBANTERUSVEIRJ3","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ EXIT
END

IF ~~ THEN BEGIN 7
  SAY @40674
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 8
  SAY @40675
  IF ~~ THEN EXIT
END

IF ~InParty(Myself)
Global("BANTERUSVEIRJ","GLOBAL",4)~ THEN BEGIN 9
  SAY @40676
  IF ~~ THEN REPLY @40677 DO ~SetGlobal("DIDBANTERUSVEIRJ4","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ GOTO 10
  IF ~~ THEN REPLY @40678 DO ~SetGlobal("DIDBANTERUSVEIRJ4","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ GOTO 11
  IF ~~ THEN REPLY @40679 DO ~SetGlobal("DIDBANTERUSVEIRJ4","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ GOTO 12
  IF ~~ THEN REPLY @40680 DO ~SetGlobal("DIDBANTERUSVEIRJ4","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ GOTO 13
END

IF ~~ THEN BEGIN 10
  SAY @40681
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 11
  SAY @40682
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 12
  SAY @40683
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 13
  SAY @40684
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 14
  SAY @40685
  IF ~~ THEN EXTERN ~30ENNELI~ 8
END

IF ~~ THEN BEGIN 15
  SAY @40687
  IF ~~ THEN EXTERN ~USVUNAJ~ 22
END

IF ~~ THEN BEGIN 16
  SAY @40689
  IF ~~ THEN EXTERN ~USVUNAJ~ 23
END

IF ~~ THEN BEGIN 17
  SAY @40691
  IF ~~ THEN EXTERN ~USVUNAJ~ 24
END

IF ~~ THEN BEGIN 18
  SAY @40693
  IF ~~ THEN GOTO 19
END

IF ~~ THEN BEGIN 19
  SAY @40694
  IF ~~ THEN EXTERN ~USVUNAJ~ 25
END

IF ~InParty(Myself)
Global("BANTERUSVEIRJ","GLOBAL",5)~ THEN BEGIN 20
  SAY @40830
  IF ~InParty("USVREK")~ THEN REPLY @40831 DO ~SetGlobal("DIDBANTERUSVEIRJ5","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ EXIT
  IF ~!InParty("USVREK")~ THEN REPLY @40832 DO ~SetGlobal("DIDBANTERUSVEIRJ5","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ EXIT
  IF ~~ THEN REPLY @40833 DO ~SetGlobal("DIDBANTERUSVEIRJ5","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ EXIT
  IF ~LevelInClass(Protagonist,0,PALADIN)
!Alignment(Protagonist,MASK_GOOD)~ THEN REPLY @40834 DO ~SetGlobal("DIDBANTERUSVEIRJ5","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ EXIT
END

IF ~InParty(Myself)
Global("BANTERUSVEIRJ","GLOBAL",7)~ THEN BEGIN 21
  SAY @40887
  IF ~~ THEN DO ~SetGlobal("DIDBANTERUSVEIRJ7","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ EXIT
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USGEOF)")~ THEN DO ~SetGlobal("DIDBANTERUSVEIRJ7","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ EXTERN ~USGEOFJ~ 78
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USZACK)")~ THEN DO ~SetGlobal("DIDBANTERUSVEIRJ7","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ EXTERN ~USZACKJ~ 1
END

IF ~InParty(Myself)
Global("BANTERUSVEIRJ","GLOBAL",8)~ THEN BEGIN 22
  SAY @40976
  IF ~~ THEN DO ~SetGlobal("DIDBANTERUSVEIRJ8","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ EXIT
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVUNA)")~ THEN DO ~SetGlobal("DIDBANTERUSVEIRJ8","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ EXTERN ~USVUNAJ~ 34
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USXHAA)")~ THEN DO ~SetGlobal("DIDBANTERUSVEIRJ8","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ EXTERN ~USXHAAJ~ 14
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USPAIR)")~ THEN DO ~SetGlobal("DIDBANTERUSVEIRJ8","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ EXTERN ~USPAIRJ~ 0
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USEMMA)")~ THEN DO ~SetGlobal("DIDBANTERUSVEIRJ8","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ EXTERN ~USEMMAJ~ 70
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USREIG)")~ THEN DO ~SetGlobal("DIDBANTERUSVEIRJ8","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ EXTERN ~USREIGJ~ 106
END

IF ~InParty(Myself)
Global("BANTERUSVEIRJ","GLOBAL",9)~ THEN BEGIN 23
  SAY @41136
  IF ~~ THEN REPLY @41137 DO ~SetGlobal("DIDBANTERUSVEIRJ9","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ GOTO 24
  IF ~~ THEN REPLY @41138 DO ~SetGlobal("DIDBANTERUSVEIRJ9","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ EXIT
  IF ~~ THEN REPLY @41139 DO ~SetGlobal("DIDBANTERUSVEIRJ9","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ GOTO 25
  IF ~~ THEN REPLY @41140 DO ~SetGlobal("DIDBANTERUSVEIRJ9","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ GOTO 26
END

IF ~~ THEN BEGIN 24
  SAY @41141
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 25
  SAY @41142
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 26
  SAY @41143
  IF ~~ THEN EXIT
END

IF ~InParty(Myself)
Global("BANTERUSVEIRJ","GLOBAL",10)~ THEN BEGIN 27
  SAY @41192
  IF ~~ THEN DO ~SetGlobal("DIDBANTERUSVEIRJ10","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ EXIT
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USSERS)")~ THEN DO ~SetGlobal("DIDBANTERUSVEIRJ10","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ EXTERN ~USSERSJ~ 9
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVUNA)")~ THEN DO ~SetGlobal("DIDBANTERUSVEIRJ10","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ EXTERN ~USVUNAJ~ 45
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USPAIR)")~ THEN DO ~SetGlobal("DIDBANTERUSVEIRJ10","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ EXTERN ~USPAIRJ~ 17
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USEMMA)")~ THEN DO ~SetGlobal("DIDBANTERUSVEIRJ10","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ EXTERN ~USEMMAJ~ 78
END

IF ~~ THEN BEGIN 28
  SAY @41327
  IF ~~ THEN EXTERN ~USZACKJ~ 62
END

IF ~~ THEN BEGIN 29
  SAY @41329
  IF ~~ THEN EXTERN ~USZACKJ~ 63
END

IF ~~ THEN BEGIN 30
  SAY @41361
  IF ~~ THEN EXTERN ~USPAIRJ~ 24
END

IF ~~ THEN BEGIN 31
  SAY @41363
  IF ~~ THEN EXIT
END

IF ~InParty(Myself)
Global("BANTERUSVEIRJ","GLOBAL",11)~ THEN BEGIN 32
  SAY @41414
  IF ~~ THEN REPLY @41415 DO ~SetGlobal("DIDBANTERUSVEIRJ11","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ GOTO 45
  IF ~~ THEN REPLY @41416 DO ~SetGlobal("DIDBANTERUSVEIRJ11","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ GOTO 41
  IF ~~ THEN REPLY @41417 DO ~SetGlobal("DIDBANTERUSVEIRJ11","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ GOTO 43
  IF ~~ THEN REPLY @41418 DO ~SetGlobal("DIDBANTERUSVEIRJ11","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ GOTO 33
END

IF ~~ THEN BEGIN 33
  SAY @41419
  IF ~~ THEN REPLY @41420 GOTO 37
  IF ~~ THEN REPLY @41421 GOTO 35
  IF ~~ THEN REPLY @41422 GOTO 40
  IF ~~ THEN REPLY @41423 GOTO 34
END

IF ~~ THEN BEGIN 34
  SAY @41424
  IF ~~ THEN GOTO 40
END

IF ~~ THEN BEGIN 35
  SAY @41425
  IF ~~ THEN REPLY @41426 GOTO 36
  IF ~~ THEN REPLY @41427 GOTO 36
END

IF ~~ THEN BEGIN 36
  SAY @41428
  IF ~~ THEN REPLY @41429 GOTO 43
END

IF ~~ THEN BEGIN 37
  SAY @41430
  IF ~~ THEN GOTO 38
END

IF ~~ THEN BEGIN 38
  SAY @41431
  IF ~~ THEN REPLY @41432 GOTO 39
  IF ~~ THEN REPLY @41433 GOTO 40
  IF ~~ THEN REPLY @41434 GOTO 39
END

IF ~~ THEN BEGIN 39
  SAY @41435
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 40
  SAY @41436
  IF ~~ THEN REPLY @41437 GOTO 43
  IF ~~ THEN REPLY @41438 GOTO 42
  IF ~~ THEN REPLY @41439 GOTO 43
END

IF ~~ THEN BEGIN 41
  SAY @41440
  IF ~~ THEN REPLY @41437 GOTO 43
  IF ~~ THEN REPLY @41438 GOTO 42
  IF ~~ THEN REPLY @41439 GOTO 43
END

IF ~~ THEN BEGIN 42
  SAY @41444
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 43
  SAY @41445
  IF ~~ THEN REPLY @41446 GOTO 49
  IF ~~ THEN REPLY @41447 GOTO 49
  IF ~Or(4)
  SubRace(Protagonist,ELF_DROW)
  SubRace(Protagonist,DWARF_GRAY)
  SubRace(Protagonist,HUMAN_TIEFLING)
  Race(Protagonist,HALFORC)~ THEN REPLY @41448 GOTO 50
  IF ~Or(2)
  LevelInClassGT(Protagonist,0,WIZARD)
  LevelInClassGT(Protagonist,0,SORCERER)
CheckSkillGT(Protagonist,14,Knowledge_Arcana)
CheckSkillGT(Protagonist,11,Bluff)~ THEN REPLY @41449 GOTO 51
  IF ~~ THEN REPLY @41450 GOTO 44
END

IF ~~ THEN BEGIN 44
  SAY @41451
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 45
  SAY @41452
  IF ~~ THEN REPLY @41453 GOTO 47
  IF ~~ THEN REPLY @41454 GOTO 52
  IF ~~ THEN REPLY @41455 GOTO 46
  IF ~~ THEN REPLY @41456 GOTO 52
END

IF ~~ THEN BEGIN 46
  SAY @41457
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 47
  SAY @41458
  IF ~~ THEN REPLY @41441 GOTO 48
  IF ~~ THEN REPLY @41447 GOTO 49
  IF ~Or(4)
  SubRace(Protagonist,ELF_DROW)
  SubRace(Protagonist,DWARF_GRAY)
  SubRace(Protagonist,HUMAN_TIEFLING)
  Race(Protagonist,HALFORC)~ THEN REPLY @41448 GOTO 50
  IF ~Or(2)
  LevelInClassGT(Protagonist,0,WIZARD)
  LevelInClassGT(Protagonist,0,SORCERER)
CheckSkillGT(Protagonist,14,Knowledge_Arcana)
CheckSkillGT(Protagonist,11,Bluff)~ THEN REPLY @41449 GOTO 51
  IF ~~ THEN REPLY @41450 GOTO 44
  IF ~~ THEN REPLY @41442 GOTO 52
END

IF ~~ THEN BEGIN 48
  SAY @41459
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 49
  SAY @41460
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 50
  SAY @41461
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 51
  SAY @41462
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 52
  SAY @41463
  IF ~~ THEN EXIT
END

IF ~InParty(Myself)
Global("BANTERUSVEIRJ","GLOBAL",12)~ THEN BEGIN 53
  SAY @41565
    IF ~~ THEN DO ~SetGlobal("DIDBANTERUSVEIRJ12","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ EXIT
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USZACK)")~ THEN DO ~SetGlobal("DIDBANTERUSVEIRJ12","GLOBAL",1)
SetGlobal("BANTERUSVEIRJ","GLOBAL",0)~ EXTERN ~USZACKJ~ 77
END