Jump to content

The proper use of effect 139


Grammarsalad

Recommended Posts

I've used the latter approach before, but you can't really claim it's any cleaner.

Heh, I'm not claiming it's any cleaner. Keep in mind that RESOLVE_STR_REF is fairly new to WeiDU (within the last 20 versions or so, I think)--until recently, using REPLACE on a table was the only plausible way to do it.

Link to comment

 

Yes, but what if you want to use it in several places or just in tables?

 

WeiDU is frugal when it comes to new strings so if you use repeated SAYs for the same string, they'll get set to the same value. For example:

 

COPY ~mymod/foo.cre~ ~override~  
  SAY 0x08 ~Imoen~ 
COPY ~mymod/bar.cre~ ~override~  
  SAY 0x08 ~Imoen~
This will first check the tlk to see if there's an existing string of "Imoen", and if so, it will use the existing string--despite the fact that I was passing this along as if it were a new string. If I were to run this on, say, IWD where's there's no existing "Imoen" string, it would create one new string in the tlk and use it on both file copies.

 

...

Will this still work if it is traified eg:

COPY ~mymod/foo.cre~ ~override~  
  SAY 0x08 @1 
COPY ~mymod/bar.cre~ ~override~  
  SAY 0x08 @1
Or would it only work if the second entry was the string (eg ~Imoen~)?

Edit: clarity and wacky formatting

Link to comment

Archived

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

×
×
  • Create New...