Comment faire vérifier la présence d'une carte dans l'override avant de copier l'originale et/ou de la modifier? Weidu ne semble pas apprécier le code suivant:
Code : Tout sélectionner
ACTION_IF FILE_EXISTS ~override/AR0406.are~ THEN BEGIN
LAUNCH_PATCH_FUNCTION fj_are_structure
INT_VAR
fj_loc_x = 1135
fj_loc_y = 1482
fj_orientation = 0
STR_VAR
fj_structure_type ="actor"
fj_name ="Damant"
fj_cre_resref ="D[a]mant"
fj_dlg_resref ="D[a]mant"
END
LAUNCH_PATCH_FUNCTION fj_are_structure
INT_VAR
fj_loc_x = 2512
fj_loc_y = 303
fj_orientation = 4
STR_VAR
fj_structure_type ="actor"
fj_name ="Kasumi~"
fj_cre_resref ="K[A]SUMI"
fj_dlg_resref ="K[A]SUMI"
BUT_ONLY_IF_IT_CHANGES
END ELSE BEGIN
COPY_EXISTING ~AR0406.are~ ~override/AR0406.are~
LAUNCH_PATCH_FUNCTION fj_are_structure
INT_VAR
fj_loc_x = 1135
fj_loc_y = 1482
fj_orientation = 0
STR_VAR
fj_structure_type ="actor"
fj_name ="Damant"
fj_cre_resref ="D[a]mant"
fj_dlg_resref ="D[a]mant"
END
LAUNCH_PATCH_FUNCTION fj_are_structure
INT_VAR
fj_loc_x = 2512
fj_loc_y = 303
fj_orientation = 4
STR_VAR
fj_structure_type ="actor"
fj_name ="Kasumi~"
fj_cre_resref ="K[A]SUMI"
fj_dlg_resref ="K[A]SUMI"
BUT_ONLY_IF_IT_CHANGES
END