Skip to content

Commit

Permalink
Despawn JA#IGNAT.CRE when DucalPalace party is over
Browse files Browse the repository at this point in the history
  • Loading branch information
Ychap committed Oct 13, 2024
1 parent e43759e commit e1c1885
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
12 changes: 11 additions & 1 deletion JA#BGT_AdvPack/Ignatio_Phleed/AR7705.BAF
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
IF
Global("Chapter","GLOBAL",%tutu_chapter_7%)
Global("JA#IGNATIO","%EBaldursGate_ElfsongTavern_L1%",0)
Global("Captured","GLOBAL",1)
Global("JA#IGNATIO","%EBaldursGate_ElfsongTavern_L1%",0)
THEN
RESPONSE #100
SetGlobal("JA#IGNATIO","%EBaldursGate_ElfsongTavern_L1%",1)
CreateCreature("JA#IGNAT",[842.653],14)
Continue()
END

IF
GlobalGT("SarevokBehavior","GLOBAL",0)
Global("JA#IGNATIO","%EBaldursGate_ElfsongTavern_L1%",1)
THEN
RESPONSE #100
SetGlobal("JA#IGNATIO","%EBaldursGate_ElfsongTavern_L1%",2)
ActionOverride("JA#IGNAT",DestroySelf())
Continue()
END
3 changes: 0 additions & 3 deletions JA#BGT_AdvPack/Ignatio_Phleed/setup-Ignatio_Phleed.tpa
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
COPY ~JA#BGT_AdvPack/Ignatio_Phleed/JA#IGNAT.CRE~ ~override~
SAY NAME1 #11740 // ~Ignatio Phleed~ (string ref is true for BGT and BG:EE)
SAY NAME2 #11740 // ~Ignatio Phleed~ (string ref is true for BGT and BG:EE)
PATCH_IF FILE_EXISTS_IN_GAME ~c#stdstr.bcs~ BEGIN // IF MOD_IS_INSTALLED ~c#endlessbg1.tp2~ 0
LPF ADD_CRE_SCRIPT STR_VAR script_new = ~c#stdstr~ END
END


EXTEND_TOP ~%EBaldursGate_ElfsongTavern_L1_BCS%.BCS~ ~JA#BGT_AdvPack/Ignatio_Phleed/AR7705.BAF~ EVALUATE_BUFFER
Expand Down

0 comments on commit e1c1885

Please sign in to comment.