Jump to content

How to check for dlg: append if there, create new if not?


jastey

Recommended Posts

Originally, there is no imoenj.dlg in BG1. I want to add to imoenj.dlg without replacing an existing one from another mod: How would i do that? UNLESS doesn't seem to work inside the .d (at least "BEGIN imoenj UNLESS imoenj" doesn't). CHAIN and APPEND only work for an existing dlg. BEGIN overwrites it, if it was added by another mod.

 

I'm sure it's something very simple. I feel like not seeing the forest because of all the trees..

 

EDIT: I have a suggestion with ACTION_IF NOT FILE_EXISTS_IN_GAME BEGIN so I guess I asked too early, again.

Link to comment

ACTION_IF NOT FILE_EXISTS_IN_GAME ~imoenj.dlg~
THEN BEGIN
 PRINT ~Adding Imoen's joined dialogue file...~
<<<<<<<< bglc/Inlined/imoenj.d
BEGIN imoenj
>>>>>>>>
 COMPILE ~bglc/Inlined/imoenj.d~
END

 

did the trick. Thank you for reading anyway.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...