Jump to content

Multiple file checks


Andyr

Recommended Posts

So, if Mur'Neth and Finch/Indira have crossmod material then I need to check both that the other mod is installed, and that the crossmod material is not already installed.

 

I have tried to code this double check in two ways, and both give the error that they cannot convert the .XXX file to an integer - how should I be doing it?

 

Nested check:

 

//Mur'Neth-Indira banter
ACTION_IF FILE_EXISTS ~override/J#INDIB.DLG~
THEN BEGIN
ACTION_IF FILE_EXISTS override/INDIRAMURNETH.XXX THEN BEGIN
PRINT ~You have Indira installed, adding extra banters...~
COPY_EXISTING ~SW1H01.ITM~ ~override/INDIRAMURNETH.XXX~
COMPILE ~Mur'Neth/dialogues/A#MURIND.d~
END
END

 

Double logical check:

 

//Mur'Neth-Finch banter
ACTION_IF ( FILE_EXISTS ~override/BSUFINCH.DLG~ AND NOT FILE_EXISTS override/INDIRAMURNETH.XXX )
THEN BEGIN
PRINT ~You have Finch installed, adding extra banters...~
COPY_EXISTING ~SW1H01.ITM~ ~override/FINCHMURNETH.XXX~
COMPILE ~Mur'Neth/dialogues/A#MURFIN.d~
END

 

I'd appreciate any help. :D

Link to comment
ACTION_IF FILE_EXISTS ~override/J#INDIB.DLG~
ACTION_IF FILE_EXISTS override/INDIRAMURNETH.XXX

ACTION_IF ( FILE_EXISTS ~override/BSUFINCH.DLG~ AND NOT FILE_EXISTS override/INDIRAMURNETH.XXX )

Try enclosing override/INDIRAMURNETH.XXX with tildes, as well. :D

Link to comment

Heheh... :D

 

Another thing I noticed:

 

//Mur'Neth-Finch banter
ACTION_IF ( FILE_EXISTS ~override/BSUFINCH.DLG~ AND NOT FILE_EXISTS ~override/INDIRAMURNETH.XXX~ )
THEN BEGIN
PRINT ~You have Finch installed, adding extra banters...~
COPY_EXISTING ~SW1H01.ITM~ ~override/FINCHMURNETH.XXX~
COMPILE ~Mur'Neth/dialogues/A#MURFIN.d~
END

Maybe this should read:

 

//Mur'Neth-Finch banter
ACTION_IF ( FILE_EXISTS ~override/BSUFINCH.DLG~ AND NOT FILE_EXISTS ~override/FINCHMURNETH.XXX~ ) // See change here.
THEN BEGIN
PRINT ~You have Finch installed, adding extra banters...~
COPY_EXISTING ~SW1H01.ITM~ ~override/FINCHMURNETH.XXX~
COMPILE ~Mur'Neth/dialogues/A#MURFIN.d~
END

?

Link to comment

Archived

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

×
×
  • Create New...