//Officer Vai
ALTER_TRANS VAI // file name
BEGIN 8 END // state number (can be more than one)
BEGIN 0 END // transition number (can be more than one)
BEGIN // list of changes, see below for flags
"ACTION" ~ActionOverride("FLAMVAI",Enemy())
Enemy()~
END
//Bellamy
ALTER_TRANS BELLAM // file name
BEGIN 3 END // state number (can be more than one)
BEGIN 0 END // transition number (can be more than one)
BEGIN // list of changes, see below for flagsdu
"ACTION" ~SetGlobal("JA#PHANDA","GLOBAL",1)~
END
ALTER_TRANS BELLAM // file name
BEGIN 4 END // state number (can be more than one)
BEGIN 0 END // transition number (can be more than one)
BEGIN // list of changes, see below for flags
"ACTION" ~SetGlobal("JA#PHANDA","GLOBAL",1)~
END
//Yago
ALTER_TRANS YAGO // file name
BEGIN 0 END // state number (can be more than one)
BEGIN 2 END // transition number (can be more than one)
BEGIN // list of changes, see below for flags
"TRIGGER" ~Global("BrielbaraMove","GLOBAL",1)~
END
//Laola Axehand
ALTER_TRANS LAOLA // file name
BEGIN 0 END // state number (can be more than one)
BEGIN 1 END // transition number (can be more than one)
BEGIN // list of changes, see below for flags
"TRIGGER" ~Global("ScarMission","GLOBAL",0)~
END
ALTER_TRANS LAOLA // file name
BEGIN 0 END // state number (can be more than one)
BEGIN 2 END // transition number (can be more than one)
BEGIN // list of changes, see below for flags
"TRIGGER" ~Global("ScarMission","GLOBAL",0)~
END
EXTEND_BOTTOM LAOLA 0
IF ~Global("ScarMission","GLOBAL",1)~ THEN REPLY @0 GOTO JA#LAOLA_1
END
APPEND LAOLA
IF ~~ THEN BEGIN JA#LAOLA_1
SAY @1
IF ~~ THEN DO ~EscapeAreaDestroy(90)~ EXIT
END
END
//MCOOK4 (Cook Palace)
REPLACE_STATE_TRIGGER MCOOK4 0 ~NumTimesTalkedTo(0)~
REPLACE_STATE_TRIGGER MCOOK4 2 ~RandomNum(2,1)~
APPEND MCOOK4
IF ~RandomNum(2,2)~ THEN BEGIN JA#MCOOK4_1
SAY @2
IF ~~ THEN EXIT
END
END
//Denkod
REPLACE_STATE_TRIGGER DENKOD 0 ~NumTimesTalkedTo(0)~
APPEND DENKOD
IF ~Global("ENDOFBG1","GLOBAL",0)~ THEN BEGIN JA#DENKOD_1
SAY @3
IF ~~ THEN EXIT
END
IF ~GlobalGT("ENDOFBG1","GLOBAL",0)~ THEN BEGIN JA#DENKOD_2
SAY @4
IF ~~ THEN EXIT
END
END
//Paladin Phandalyn
ALTER_TRANS PHANDA // file name
BEGIN 1 END // state number (can be more than one)
BEGIN 0 END // transition number (can be more than one)
BEGIN // list of changes, see below for flags
"ACTION" ~NoAction()~
END
REPLACE_STATE_TRIGGER PHANDA 2 ~NumTimesTalkedToGT(0)
InParty([0.0.0.0.0.0.MASK_EVIL])
See([PC.0.0.0.0.0.MASK_EVIL])~
ALTER_TRANS PHANDA // file name
BEGIN 2 END // state number (can be more than one)
BEGIN 0 END // transition number (can be more than one)
BEGIN // list of changes, see below for flags
"ACTION" ~Attack([0.0.0.0.0.0.MASK_EVIL])~
"JOURNAL" ~@7~
END
REPLACE_STATE_TRIGGER PHANDA 3 ~NumTimesTalkedToGT(0)~
ALTER_TRANS PHANDA // file name
BEGIN 3 END // state number (can be more than one)
BEGIN 0 END // transition number (can be more than one)
BEGIN // list of changes, see below for flags
"REPLY" ~@11~
END
EXTEND_BOTTOM PHANDA 3
IF ~~ THEN REPLY @5 GOTO JA#PHANDA_1
END
APPEND PHANDA
IF ~~ THEN BEGIN JA#PHANDA_1
SAY @6
IF ~~ THEN DO ~Enemy()
Attack([0.0.0.0.0.0.MASK_EVIL])~ JOURNAL @7 EXIT
END
END
//Zordral & Bentha
ALTER_TRANS ZORDRAL // file name
BEGIN 1 END // state number (can be more than one)
BEGIN 0 END // transition number (can be more than one)
BEGIN // list of changes, see below for flags
"ACTION" ~DialogueInterrupt(FALSE)
FaceObject("BENTHA")
CreateVisualEffectObject("SPFINGER","BENTHA")
Kill("BENTHA")
DialogueInterrupt(TRUE)
Enemy()~
END
//Priest Gond PGOND
ALTER_TRANS PGOND // file name
BEGIN 0 END // state number (can be more than one)
BEGIN 1 END // transition number (can be more than one)
BEGIN // list of changes, see below for flags
"EPILOGUE" ~GOTO 1~
END
//Greywolf
ALTER_TRANS GREYWO // file name
BEGIN 5 END // state number (can be more than one)
BEGIN 0 END // transition number (can be more than one)
BEGIN // list of changes, see below for flags
"ACTION" ~Attack("Prism")~
END
//Bentley - Reaction to Chapter 3
REPLACE_STATE_TRIGGER BENTLY 0 ~RandomNum(2,1)
!Dead("Mulahey")~
REPLACE_STATE_TRIGGER BENTLY 1 ~RandomNum(2,2)
!Dead("Mulahey")~
ADD_STATE_TRIGGER BENTLY 3 ~Dead("Mulahey")~
ALTER_TRANS BENTLY // file name
BEGIN 2 END // state number (can be more than one)
BEGIN 0 END // transition number (can be more than one)
BEGIN // list of changes, see below for flags
"REPLY" ~@12~
END
EXTEND_BOTTOM BENTLY 2
IF ~~ THEN REPLY @8 EXIT
END
//Dunkin
REPLACE_STATE_TRIGGER DUNKIN 5 ~Global("JA#DUNKIN","AR6751",1)~
ALTER_TRANS DUNKIN // file name
BEGIN 5 END // state number (can be more than one)
BEGIN 0 END // transition number (can be more than one)
BEGIN // list of changes, see below for flags
"ACTION" ~SetGlobal("JA#DUNKIN","AR6751",2)~
END
//Marl
ALTER_TRANS MARL // file name
BEGIN 16 END // state number (can be more than one)
BEGIN 0 END // transition number (can be more than one)
BEGIN // list of changes, see below for flags
"ACTION" ~SetGlobal("JA#MARLDLG","LOCALS",1)ChangeEnemyAlly(Myself,NEUTRAL)MoveToPoint([701.773])~
END
ADD_STATE_TRIGGER MARL 18 ~Global("JA#MARLDLG","LOCALS",0)~
ALTER_TRANS MARL // file name
BEGIN 18 END // state number (can be more than one)
BEGIN 0 END // transition number (can be more than one)
BEGIN // list of changes, see below for flags
"ACTION" ~SetGlobal("JA#MARLDLG","LOCALS",1)~
END
APPEND MARL
IF ~Global("JA#MARLDLG","LOCALS",1)~ THEN BEGIN JA#MARL_1
SAY @9
IF ~~ THEN EXIT
END
END
//Dillar
ADD_STATE_TRIGGER DILLAR 6 ~NumTimesTalkedToGT(0)~
//NOBL14 - Undercellars
REPLACE_STATE_TRIGGER NOBL14 0 ~RandomNum(3,1)~
REPLACE_STATE_TRIGGER NOBL14 1 ~RandomNum(3,2)~
REPLACE_STATE_TRIGGER NOBL14 2 ~RandomNum(3,3)~
//de-bugged Jondalar Fix
ADD_STATE_TRIGGER JONDAL 0 ~Global("JonHit","GLOBAL",0)~
ADD_STATE_TRIGGER JONDAL 3 ~NumTimesTalkedToGT(0)~
APPEND JONDAL
IF ~NumTimesTalkedTo(0)
Global("JonHit","GLOBAL",1)~ THEN BEGIN JA#JONDAL_0
SAY @10
IF ~~ THEN DO ~SetGlobal("JonHit","GLOBAL",2)
ChangeEnemyAlly(Myself,NEUTRAL)
ChangeEnemyAlly("Erik",NEUTRAL)
ClearAllActions()
ActionOverride("Erik",EscapeAreaDestroy(90))
EscapeAreaDestroy(90)~ EXIT
END
END