Jump to content

String literal concatenation


Miloch

Recommended Posts

I have a bunch of items with similar statistics. Rather than type them or copy and paste several times in a TRA file, thus increasing the mod size and work for potential translators, I just want to append one TRA entry to another for an item description. But the concatenation operator ^ doesn't seem to work, whether I try SAY DESC (@5 ^ @6) or OUTER_SPRINT %dsc% (~@5~ ^ ~@6~) SAY_EVALUATED DESC %dsc% or any variations like that. Any way to get this to work?

Link to comment

You'd need to use string variables rather than .tra entries. These can be language dependant (put together an

OUTER_SPRINT ~var1~ ~string~
ACTION_IF (~%LANGUAGE%~ STRING_EQUAL_CASE ~%german%~) THEN BEGIN
 OUTER_SPRINT ~var1~ ~Text~
END

 

then

SAY_EVALUATED "offset" ~%var1%%var2%~

Link to comment

Archived

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

×
×
  • Create New...