Skip to content

Commit

Permalink
0.4sd4
Browse files Browse the repository at this point in the history
fix melicamp, imoen
  • Loading branch information
subtledoctor committed Oct 18, 2024
1 parent bde3551 commit b4d6a55
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 36 deletions.
2 changes: 1 addition & 1 deletion Reflections/Reflections.tp2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
BACKUP ~weidu_external/backup/Reflections~
AUTHOR ~SubtleD~

VERSION ~0.4sd3~
VERSION ~0.4sd4~

ALWAYS
OUTER_SPRINT newline ~%WNL%%LNL%%MNL%%TAB% ~
Expand Down
3 changes: 2 additions & 1 deletion Reflections/comp/comp_220.tpa
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ DEFINE_ACTION_FUNCTION kill_thalantyr BEGIN
IF
GlobalGT("CHAPTER","GLOBAL",6)
Global("D5ThalantyrDead","GLOBAL",0)
Dead("SLYTHE")
THEN
RESPONSE #100
ActionOverride("thalantyr",DestroySelf())
Expand All @@ -53,7 +54,7 @@ REPLACE_STATE_TRIGGER MELICA 26 ~Global("D5ThalantyrDead","GLOBAL",0)~

APPEND MELICA

IF ~GlobalGT("D5ThalantyrDead","GLOBAL",1)~ BEGIN d5melica_0
IF ~Global("D5ThalantyrDead","GLOBAL",1)~ BEGIN d5melica_0
SAY @22001
IF ~Global("D5ThalantyrDead","GLOBAL",1)~ REPLY @22002 DO ~SetGlobal("D5ThalantyrDead","GLOBAL",2)~ GOTO d5melica_1
IF ~Global("D5ThalantyrDead","GLOBAL",2)~ REPLY @22007 GOTO d5melica_4
Expand Down
63 changes: 29 additions & 34 deletions Reflections/comp/comp_240.tpa
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,6 @@ COPY_EXISTING ~BDFF1002.dlg~ ~override~
END
BUT_ONLY

WITH_TRA ~%MOD_FOLDER%/lang/%s/IMOEN_IN_GROUP_KD_EBG1.TRA~ BEGIN
COMPILE ~%MOD_FOLDER%/data/korlasz_dungeon/Imoen_in_group_kd_ebg1.d~ EVALUATE_BUFFER
END
EXTEND_BOTTOM ~bdimoen.bcs~ ~%MOD_FOLDER%/data/korlasz_dungeon/c#ebg1im.baf~ EVALUATE_BUFFER

//bd0120.BCS
COPY_EXISTING ~bd0120.BCS~ ~override~
DECOMPILE_AND_PATCH BEGIN
Expand Down Expand Up @@ -446,6 +441,7 @@ EXTEND_TOP ~bdshimoe.BCS~ ~weidu_external/%MOD_FOLDER%/compile/bdshimoe-et.baf~
//bdintro.BCS
COPY_EXISTING ~bdintro.BCS~ ~override~
DECOMPILE_AND_PATCH BEGIN
/*
SPRINT textToReplace ~\(CreateCreature("bdshimoe",\[881\.1652\],NE)\)~
COUNT_REGEXP_INSTANCES ~%textToReplace%~ num_matches
PATCH_IF (num_matches > 0) BEGIN
Expand All @@ -454,6 +450,7 @@ COPY_EXISTING ~bdintro.BCS~ ~override~
END ELSE BEGIN
PATCH_PRINT ~WARNING: could not find %textToReplace% in %SOURCE_FILESPEC%~
END
*/
SPRINT textToReplace ~\(ActionOverride("IMOEN2?",StartDialogNoSet(Player1))\)~
COUNT_REGEXP_INSTANCES ~%textToReplace%~ num_matches
PATCH_IF (num_matches > 0) BEGIN
Expand Down Expand Up @@ -485,22 +482,11 @@ COPY_EXISTING ~bdintro.BCS~ ~override~
PATCH_PRINT ~Patching: %num_matches% matches found in %SOURCE_FILESPEC% for REPLACE_TEXTUALLY: %textToReplace%~
END ELSE BEGIN
PATCH_PRINT ~WARNING: could not find %textToReplace% in %SOURCE_FILESPEC%~
END
END
END
BUT_ONLY

<<<<<<<< .../bdintro-et.baf
IF
Global("C#st_ImoenInGroupKD","GLOBAL",0)
Global("C#EBG1_ImoenIsInKD","GLOBAL",0)
THEN
RESPONSE #100
CutSceneId(Player1)
SetGlobal("C#EBG1_ImoenIsInKD","GLOBAL",1)
CreateCreature("bdshimoe",[881.1652],NE)
Continue()
END

IF
Global("SoD_fromimport","GLOBAL",0)
Global("C#EBG1_ThingsForNewGame","MYAREA",0)
Expand Down Expand Up @@ -644,23 +630,6 @@ ACTION_IF !(FILE_EXISTS_IN_GAME ~%bg1_area_prefix%0700.bcs~) BEGIN
COMPILE ~weidu_external/%MOD_FOLDER%/compile/%bg1_area_prefix%0700.baf~
END

<<<<<<<< d5/bdintro+.baf
IF
Global("D5GregsonExist","GLOBAL",0)
Global("D5NoReflection","GLOBAL",0)
THEN
RESPONSE #100
CreateCreature("BDSHIMOE",[959.1622],NE) // Imoen
SetGlobal("D5NoReflection","GLOBAL",1)
END

>>>>>>>>
COPY ~d5/bdintro+.baf~ ~weidu_external/%MOD_FOLDER%/compile/bdintro+.baf~

ACTION_IF (FILE_EXISTS_IN_GAME ~bdintro.bcs~) BEGIN
EXTEND_TOP ~bdintro.bcs~ ~weidu_external/%MOD_FOLDER%/compile/bdintro+.baf~
END

ACTION_IF (FILE_EXISTS_IN_GAME ~bdshcut0.bcs~) BEGIN
COPY_EXISTING ~bdshcut0.bcs~ ~override~
DECOMPILE_AND_PATCH BEGIN
Expand Down Expand Up @@ -892,6 +861,24 @@ ACTION_IF (FILE_EXISTS_IN_GAME ~bdintro.bcs~) BEGIN
IF_EXISTS BUT_ONLY
END

<<<<<<<< d5/bdintro+.baf
IF
AreaCheck("BD0120")
Global("D5GregsonExist","GLOBAL",0)
Global("D5NoReflection","GLOBAL",0)
THEN
RESPONSE #100
CreateCreature("BDSHIMOE",[959.1622],NE) // Imoen
SetGlobal("D5NoReflection","GLOBAL",1)
END

>>>>>>>>
COPY ~d5/bdintro+.baf~ ~weidu_external/%MOD_FOLDER%/compile/bdintro+.baf~

ACTION_IF (FILE_EXISTS_IN_GAME ~bdintro.bcs~) BEGIN
EXTEND_TOP ~bdintro.bcs~ ~weidu_external/%MOD_FOLDER%/compile/bdintro+.baf~
END

/* maybe not necessary!
// delete proximity trigger for cross-chasm Porios dialogue
COPY_EXISTING ~bd0120.are~ ~override~
Expand Down Expand Up @@ -956,6 +943,14 @@ IF_EXISTS BUT_ONLY

COPY_EXISTING ~bd0130.BCS~ ~override~
DECOMPILE_AND_PATCH BEGIN
SPRINT textToReplace ~\(Global("BDSH_Imoen_Floor","GLOBAL",1)\)~
COUNT_REGEXP_INSTANCES ~%textToReplace%~ num_matches
PATCH_IF (num_matches > 0) BEGIN
REPLACE_TEXTUALLY ~%textToReplace%~ ~\1 Global("D5GregsonExist","GLOBAL",0)~
PATCH_PRINT ~Patching: %num_matches% matches found in %SOURCE_FILESPEC% for REPLACE_TEXTUALLY: %textToReplace%~
END ELSE BEGIN
PATCH_PRINT ~WARNING: could not find %textToReplace% in %SOURCE_FILESPEC%~
END
// ***** add triggers for any existing journal additions
SPRINT textToReplace ~\(!Global("BD_Korlasz_Fight","BD0130",2)\)~
COUNT_REGEXP_INSTANCES ~%textToReplace%~ num_matches
Expand Down

0 comments on commit b4d6a55

Please sign in to comment.