A lot of this is redundant now thanks to Grim and JC, but here goes
:
In Ghreyfain's guide to NPC's he illustrates the following COPY command
COPY ~VTP\J#Vondo.cre~ ~override\J#Vondo.cre~
SAY SELECT_COMMON4 ~Vlah blah blah~ [Vondo1]
// [Vondo1] is the .wav file for this sound
I have tried to find an example in the Weidu readme but I can't find an example that helps me
1. Does the string Vondo1 agree with a file name stem, and why does the sub directory structure not get mentioned? Where should the *.wav be, in the BG2 directory, the Mod install directory or have been previously copied over to the override using a prior copy statement?
Yes, [Vondo1] means that the engine should look for a file named Vondo1.wav in the game audio or the override folder to play when this line is invoked. You do need another COPY statement to move your sound files to the override at some point in your tp2, like:
COPY ~VTP\sounds~ ~override~ \\There's a subfolder named 'sounds' and we're copying all it's contents over to the override folder.
This can be done either before or after the .cre handling.
2. Does the syntax
COPY SELECT_COMMON4 3867
work, where 3867 is a valid string reference for a .wav object in the IE evironment.
If you want the .cre to reference an existing line in the dialog.tlk, your syntax will be:
SAY SELECT_COMMON4 #3867
If you're installing a new line using a .tra file, the syntax would be:
SAY SELECT_COMMON4 @3867
The way I understand it, with these SAY statements, you're writing to the .cre file as well as appending dialog.tlk (unless you're using the #3867 structure). The same thing goes for when you use them with an .itm or .spl
~~~~~~~~~~~~~~~~~~~~~~
To sum up, these should all be valid for your .tp2:
1) COPY ~VTP\J#Vondo.cre~ ~override\J#Vondo.cre~
SAY SELECT_COMMON4 ~Vlah blah blah~ [Vondo1]
COPY ~VTP\sounds~ ~override~
2)COPY ~VTP\J#Vondo.cre~ ~override\J#Vondo.cre~
SAY SELECT_COMMON4 @1
COPY ~VTP\sounds~ ~override~
And in your .tra file there is a line that says:
@1 = ~Vlah blah blah~ [Vondo1]
3)COPY ~VTP\J#Vondo.cre~ ~override\J#Vondo.cre~
SAY SELECT_COMMON4 #3867 //Which is the equivalent of ~ By Tempus' shield.~ [BRANW17]