Skip to content
Browse files

Move Xan Slaver Quest dialog initiation to NPC script

Removed x#wdow script and placed action into x#xqzan.baf to decrease the chances of it being interrupted.
Reference post: http://forums.gibberlings3.net/index.php?showtopic=23112&st=0#entry192024
  • Loading branch information...
1 parent 6bfbbdc commit 4a884b69b91666112f37e850f46e02dc1cd0a1b3 @cmorganbg committed Nov 27, 2011
Showing with 76 additions and 72 deletions.
  1. +0 −1 bg1npc.tp2
  2. +0 −9 bg1npc/phase2/baf/x#wdoe.baf
  3. +76 −62 bg1npc/phase2/baf/x#xqxan.baf
View
1 bg1npc.tp2
@@ -3219,7 +3219,6 @@ BEGIN @1007
COMPILE EVALUATE_BUFFER ~BG1NPC/Phase2/baf/X#XQCUT.BAF~
COMPILE EVALUATE_BUFFER ~BG1NPC/Phase2/baf/X#SKODD.BAF~
- COMPILE EVALUATE_BUFFER ~BG1NPC/Phase2/baf/X#WDOE.BAF~
COMPILE EVALUATE_BUFFER ~BG1NPC/Phase2/dlg/X#XQXAN.D~
/* Garrick's Quest */
View
9 bg1npc/phase2/baf/x#wdoe.baf
@@ -1,9 +0,0 @@
-IF %BGT_VAR%
-See("xan")
-Global("X#XQWDoeApproaches","GLOBAL",0)
-THEN
-RESPONSE #100
-SetGlobal("X#XQWDoeApproaches","GLOBAL",1)
-MoveToObject("xan")
-ActionOverride("xan",StartDialogueNoSet("xan"))
-END
View
138 bg1npc/phase2/baf/x#xqxan.baf
@@ -1,101 +1,115 @@
+/* Initiate */
+IF %BGT_VAR%
+ Global("X#XQWhiteDoeAppeared","GLOBAL",2)
+ InParty(Myself)
+ !StateCheck(Myself,CD_STATE_NOTVALID)
+ InMyArea(Player1)
+ !StateCheck(Player1,CD_STATE_NOTVALID)
+ CombatCounter(0)
+ !See([ENEMY])
+THEN
+ RESPONSE #100
+ StartDialogueNoSet(Player1)
+END
+
IF %BGT_VAR%
-InParty("xan")
-RealGlobalTimerExpired("X#XanGoodOutcomeTimer","GLOBAL")
-Global("X#XQXanRewarded","GLOBAL",0)
+ InParty("xan")
+ RealGlobalTimerExpired("X#XanGoodOutcomeTimer","GLOBAL")
+ Global("X#XQXanRewarded","GLOBAL",0)
THEN
-RESPONSE #100
-SetGlobal("X#XQXanRewarded","GLOBAL",1)
+ RESPONSE #100
+ SetGlobal("X#XQXanRewarded","GLOBAL",1)
END
/* Initiate */
IF %BGT_VAR%
-Global("X#XQXanRewarded","GLOBAL",1)
-InParty(Myself)
-!StateCheck(Myself,CD_STATE_NOTVALID)
-InMyArea(Player1)
-!StateCheck(Player1,CD_STATE_NOTVALID)
-CombatCounter(0)
-!See([ENEMY])
+ Global("X#XQXanRewarded","GLOBAL",1)
+ InParty(Myself)
+ !StateCheck(Myself,CD_STATE_NOTVALID)
+ InMyArea(Player1)
+ !StateCheck(Player1,CD_STATE_NOTVALID)
+ CombatCounter(0)
+ !See([ENEMY])
THEN
-RESPONSE #100
-StartDialogueNoSet(Player1)
+ RESPONSE #100
+ StartDialogueNoSet(Player1)
END
IF %BGT_VAR%
-InParty("xan")
-RealGlobalTimerExpired("X#XanBadOutcomeTimer","GLOBAL")
-Global("X#XQXanPunished","GLOBAL",0)
+ InParty("xan")
+ RealGlobalTimerExpired("X#XanBadOutcomeTimer","GLOBAL")
+ Global("X#XQXanPunished","GLOBAL",0)
THEN
-RESPONSE #100
-SetGlobal("X#XQXanPunished","GLOBAL",1)
+ RESPONSE #100
+ SetGlobal("X#XQXanPunished","GLOBAL",1)
END
/* Initiate */
IF %BGT_VAR%
-Global("X#XQXanPunished","GLOBAL",1)
-InParty(Myself)
-!StateCheck(Myself,CD_STATE_NOTVALID)
-InMyArea(Player1)
-!StateCheck(Player1,CD_STATE_NOTVALID)
-CombatCounter(0)
-!See([ENEMY])
+ Global("X#XQXanPunished","GLOBAL",1)
+ InParty(Myself)
+ !StateCheck(Myself,CD_STATE_NOTVALID)
+ InMyArea(Player1)
+ !StateCheck(Player1,CD_STATE_NOTVALID)
+ CombatCounter(0)
+ !See([ENEMY])
THEN
-RESPONSE #100
-StartDialogueNoSet(Player1)
+ RESPONSE #100
+ StartDialogueNoSet(Player1)
END
IF %BGT_VAR%
-InParty("xan")
-Global("X#XQXanPunished","GLOBAL",2)
+ InParty("xan")
+ Global("X#XQXanPunished","GLOBAL",2)
THEN
-RESPONSE #100
-SetGlobal("X#XQXanPunished","GLOBAL",3)
+ RESPONSE #100
+ SetGlobal("X#XQXanPunished","GLOBAL",3)
END
/* Initiate */
IF %BGT_VAR%
-Global("X#XQXanPunished","GLOBAL",3)
-InParty(Myself)
-!StateCheck(Myself,CD_STATE_NOTVALID)
-InMyArea(Player1)
-!StateCheck(Player1,CD_STATE_NOTVALID)
-CombatCounter(0)
-!See([ENEMY])
+ Global("X#XQXanPunished","GLOBAL",3)
+ InParty(Myself)
+ !StateCheck(Myself,CD_STATE_NOTVALID)
+ InMyArea(Player1)
+ !StateCheck(Player1,CD_STATE_NOTVALID)
+ CombatCounter(0)
+ !See([ENEMY])
THEN
-RESPONSE #100
-StartDialogueNoSet(Player1)
+ RESPONSE #100
+ StartDialogueNoSet(Player1)
END
IF %BGT_VAR%
-HPPercentLT("xan",50)
-Global("X#XQXanFightsPC","GLOBAL",1)
+ HPPercentLT("xan",50)
+ Global("X#XQXanFightsPC","GLOBAL",1)
THEN
-RESPONSE #100
-SetGlobal("X#XQXanFightsPC","GLOBAL",2)
+ RESPONSE #100
+ SetGlobal("X#XQXanFightsPC","GLOBAL",2)
END
/* Initiate */
IF %BGT_VAR%
-Global("X#XQXanFightsPC","GLOBAL",2)
-InParty(Myself)
-!StateCheck(Myself,CD_STATE_NOTVALID)
-InMyArea(Player1)
-!StateCheck(Player1,CD_STATE_NOTVALID)
-CombatCounter(0)
-!See([ENEMY])
+ Global("X#XQXanFightsPC","GLOBAL",2)
+ InParty(Myself)
+ !StateCheck(Myself,CD_STATE_NOTVALID)
+ InMyArea(Player1)
+ !StateCheck(Player1,CD_STATE_NOTVALID)
+ CombatCounter(0)
+ !See([ENEMY])
THEN
-RESPONSE #100
-StartDialogueNoSet(Player1)
+ RESPONSE #100
+ StartDialogueNoSet(Player1)
END
IF %BGT_VAR%
-Global("X#XQFriendlyArmsMoved","GLOBAL",1)
-AreaCheck("%FriendlyArmInn_L2%")
+ Global("X#XQFriendlyArmsMoved","GLOBAL",1)
+ AreaCheck("%FriendlyArmInn_L2%")
THEN
-RESPONSE #100
-CreateCreature("X#SIENE",[690.670],0)
-CreateCreature("X#DIALA",[675.650],0)
-CreateCreature("X#MINUW",[715.650],0)
-SetGlobal("X#XQFriendlyArmsMoved","GLOBAL",2)
-ActionOverride("X#Siene",StartDialogueNoSet(Player1))
+ RESPONSE #100
+ CreateCreature("X#SIENE",[690.670],0)
+ CreateCreature("X#DIALA",[675.650],0)
+ CreateCreature("X#MINUW",[715.650],0)
+ SetGlobal("X#XQFriendlyArmsMoved","GLOBAL",2)
+ ActionOverride("X#Siene",StartDialogueNoSet(Player1))
END

0 comments on commit 4a884b6

Please sign in to comment.
Something went wrong with that request. Please try again.