Aquadrizzt Posted August 7, 2015 Share Posted August 7, 2015 So let's say I've already added the race "Genasi" to position 220 in RACE.IDS and my npc has had their race set to 220 as well. How would I go about adding strings that aren't directly tied to a game object by themselves? How would I modify RACETEXT.2da using WeiDu to get the new race strings in the appropriate places? Link to comment
subtledoctor Posted August 7, 2015 Share Posted August 7, 2015 Without ever looking at those files, I'm guessing you need to append a line to racetext.2da? So then maybe something like, SET_2DA_ENTRY x y z RESOLVE_STR_REF (@100)I suppose you might need to check the number of rows in the .2da file to get that right (in case some other mod has appended more lines before yours is installed)... I have some code for that back on my computer. You might be able to simply use the RESOLVE_STR_REF as part of the APPEND and skip a step, I'm not sure. [EDIT - yeah, per Lynx below, this is the way to do it.] Link to comment
lynx Posted August 7, 2015 Share Posted August 7, 2015 Something along the lines of: SET ref = RESOLVE_STR_REF("lalalalal lalala lallalalalal lalala") APPEND ~racetext.2da~ ... %ref% ... edit: oops, beat to it. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.