Jump to content

Adding dialogue portraits


Aeowulf

Recommended Posts

I posted this to the RE forum as well, but I thought I could get a good response here as well. First off, Romantic Encounters is a great mod and I am glad it was constructed. That being said, I always seem to want to take a good thing and make it better, so with text editor open I have been trying to add portraits that will come up when the NPC is involved in dialogue.

 

I have followed the NPC creation tips outlined by Ace and have added the following script to the Setup-RE.tp2 file (added text in bold & italics):

 

// Chanelle, by cmorgan

BEGIN @12

 

COMPILE ~RE/Chanelle/RE_Chane.d~

 

COPY_EXISTING ~KPMAID01.cre~ ~override~

SAY INITIAL_MEETING @13

SAY UNHAPPY_BREAKING_POINT @14

SAY SELECT_COMMON1 @13

SAY SELECT_COMMON2 @15

SAY SELECT_COMMON3 @13

SAY SELECT_COMMON4 @16

 

COPY ~RE/Chanelle/RE_Chane.bmp~ ~override~

 

AT_NOW ~RE/Audio/ChanelleInstall.bat~

AT_UNINSTALL ~RE/Audio/ChanelleUninstall.bat~

 

Where RE_Chane.bmp is a bitmap in 38x60 format I added to the Chanelle subfolder in the RE subfile in my SOA directory.

 

I have also updated the .cre file to use the same 110x170 and 38x60 portraits and placed the updated .cre file in my override folder.

 

In theory this should bring up the RE_Chane.bmp image when I initiate conversation (just like the RE_Sheri.bmp is shown when you converse with Sheri).

 

I am not sure what I am missing here, any assistance would be appreciated.

 

Thanks!

 

Aeowulf

Link to comment

It looks like you didn't study RE code carefully enough. Here's how custom portrait assigned to a creature:

COPY ~RE/Sheri/RE_Sheri.bmp~ ~override~

COPY ~RE/Sheri/RE_Sheri.cre~ ~override~
//blah
WRITE_ASCII 0X34 ~RE_Sheri~ #8 //small portrait

while in your code there's only a line for copying portrait to override.

 

Similarly, your code shold be something like:

COPY ~RE/Chanelle/RE_Chane.bmp~ ~override~

COPY_EXISTING ~KPMAID01.cre~ ~override~
  WRITE_ASCII 0X34 ~RE_Chane~ #8

Link to comment

So this should work then?

 

COMPILE ~RE/Chanelle/RE_Chane.d~

COPY_EXISTING ~KPMAID01.cre~ ~override~
SAY INITIAL_MEETING @13 
SAY UNHAPPY_BREAKING_POINT @14 
SAY SELECT_COMMON1 @13 
SAY SELECT_COMMON2 @15 
SAY SELECT_COMMON3 @13 
SAY SELECT_COMMON4 @16 

COPY ~RE/Chanelle/RE_Chane.bmp~ ~override~

COPY ~RE/Chanelle/KPMAID01.cre~ ~override~
WRITE_ASCII 0X34 ~RE_Chane~ #8 //small portrait

AT_NOW ~RE/Audio/ChanelleInstall.bat~
AT_UNINSTALL ~RE/Audio/ChanelleUninstall.bat~

Link to comment

You need the WRITE_ASCII 0X34 line, but you already got that in the other thread. What you call the portrait is up to you, but the size must be 38x60, it must bean 8-bit BMP, the name must be no more than 8 characters long, and the last letter of the name must be s.

 

WRITE_ASCII 0x34 ~re_chans~ #8

WRITE_ASCII 0x34 ~chanels~ #8

 

either is good. It all depends on what you call the portrait. chanelle has 8 characters, but it doesn't work because the last letter is not s. It is important.

Link to comment

Archived

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

×
×
  • Create New...