AL|EN Posted January 12 Share Posted January 12 TWO_TURNS is only for EE: https://gibberlings3.github.io/iesdp/files/ids/bgee/gtimes.htm What would be an equivalent that can be used on a classic bg2tob engine? Quote Link to comment
lynx Posted January 12 Share Posted January 12 What do you mean? Just add it if it's missing and you want to use a named constant. Quote Link to comment
jmerry Posted January 12 Share Posted January 12 Exactly. There's nothing stopping you from adding lines to that table, or from using the literal number (120). Quote Link to comment
AL|EN Posted January 12 Author Share Posted January 12 (edited) But if I add it to the classic BG2 ToB file, does the engine will know how to translate STRING TWO_TURNS into INT 120, for such baf code: SetGlobalTimer("VA#StartPart2T","Global",TWO_TURNS) ? Edited January 12 by AL|EN Quote Link to comment
paladin84 Posted January 12 Share Posted January 12 26 minutes ago, AL|EN said: But if I add it to the classic BG2 ToB file, does the engine will know how to translate STRING TWO_TURNS into INT 120, for such baf code: Yes, as far as I understand the entry should be in the GTimes.IDS during script compilation. In compiled script it is kept as number (120). Quote Link to comment
jmerry Posted January 12 Share Posted January 12 Well, if this is part of a BCS script, that's not a problem; the engine only sees the compiled code, which wouldn't have the named constant anyway. DLG files, though, have the BAF-format code in their raw forms. So there ... the engine loads the IDS files and uses them to interpret any constants that show up in the code. 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.