Lauriel Posted January 25, 2020 Author Share Posted January 25, 2020 (edited) I also will be modifying it to make sure my first row number is higher than the last one already in the table. EDIT: Actually, I'll be modifying it to make sure my first row number is higher than the highest one already in the table. I have no idea if those lines get sorted or not, so I'm not going to take the chance that they're not. Edited January 25, 2020 by Lauriel Clarification Quote Link to comment
Lauriel Posted September 10, 2020 Author Share Posted September 10, 2020 On 1/24/2020 at 10:59 PM, Mike1072 said: Those last 2 columns should be strrefs according to IESDP. I know this is old, but you're right. The docs say it should be strrefs, not strings. The strings work, but I'd prefer to use strrefs if possible for languages that don't use our character set but haven't a clue how to get INSERT_2DA to convert string to strrefs or any other way of getting at the strref of a custom string. So is the documentation incomplete and it can be strrefs or strings, or is it wrong and it only takes strings? Quote Link to comment
Mike1072 Posted September 11, 2020 Share Posted September 11, 2020 You can add a string to the game and store its assigned strref in a variable using SET blahblah_strref = RESOLVE_STR_REF (~blahblah~). It should work with tra references too: SET translated_strref = RESOLVE_STR_REF (@123). Then you can use that variable when you are adding to the .2da. Quote Link to comment
Lauriel Posted September 11, 2020 Author Share Posted September 11, 2020 2 hours ago, Mike1072 said: You can add a string to the game and store its assigned strref in a variable using SET blahblah_strref = RESOLVE_STR_REF (~blahblah~). It should work with tra references too: SET translated_strref = RESOLVE_STR_REF (@123). Then you can use that variable when you are adding to the .2da. RESOLVE_STR_REF worked, however when I use the token, I get the number replaced in the text, not the string associated with the strref. I think the docs are wrong. I think it needs to be a string, not a strref. Quote Link to comment
Mike1072 Posted September 11, 2020 Share Posted September 11, 2020 I do what the docs tell me to. Quote Link to comment
Lauriel Posted September 11, 2020 Author Share Posted September 11, 2020 52 minutes ago, Mike1072 said: I do what the docs tell me to. I try. You've been able to successfully use a strref in TokenTxt.2da? If so, what am I doing wrong? Quote Link to comment
Mike1072 Posted September 11, 2020 Share Posted September 11, 2020 3 hours ago, Lauriel said: You've been able to successfully use a strref in TokenTxt.2da? No, I don't have any first-hand knowledge of this. Just making a joke. It sounds like you found an error in the IESDP. Quote Link to comment
Lauriel Posted September 11, 2020 Author Share Posted September 11, 2020 (edited) 10 hours ago, Mike1072 said: No, I don't have any first-hand knowledge of this. Just making a joke. It sounds like you found an error in the IESDP. Well darn! I was really hoping I had screwed something up. LOL Edited September 11, 2020 by Lauriel Quote Link to comment
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.