Jump to content

TWO_TURNS for classic BG2 ToB


Recommended Posts

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 by AL|EN
Link to comment
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).

Link to comment

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.

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...