Skip to content

(BG1) No shortage of Kolvar

WispWisp Member Posts: 1,102
edited November 2012 in Fixed
Kolvar is a person who appears in Baldur's Gate in chapter 7. After talking with the player (Monty and/or Xzar required), he will EscapeArea and immediately reappear at his original location. This is due to an ill-designed spawn block in the area script. It can be fixed by having the area script set a variable when it creates him, in order to make sure it only happens once (it is the conventional way of doing it).

COPY_EXISTING ar1200.bcs override
DECOMPILE_AND_PATCH BEGIN
REPLACE_TEXTUALLY ~\(!Dead("Kolvar")\)~ ~\1 Global("KolvarSpawn","GLOBAL",0)~
REPLACE_TEXTUALLY ~\(CreateCreature("KOLVAR",\[1215\.625\],0)\)~ ~\1 SetGlobal("KolvarSpawn","GLOBAL",1)~
END
Post edited by Tanthalas on

Comments

  • Avenger_teambgAvenger_teambg Member, Developer Posts: 5,862
    You can probably use area variable for this, so it grows only the .are file not the .gam file

    COPY_EXISTING ar1200.bcs override
    DECOMPILE_AND_PATCH BEGIN
    REPLACE_TEXTUALLY ~\(!Dead("Kolvar")\)~ ~\1 Global("KolvarSpawn","AR1200",0)~
    REPLACE_TEXTUALLY ~\(CreateCreature("KOLVAR",\[1215\.625\],0)\)~ ~\1 SetGlobal("KolvarSpawn","AR1200",1)~
    END
  • WispWisp Member Posts: 1,102
    edited July 2012
    Every other variable used like this (roughly 65 of them) is in the global scope, but sure. it is one less this way.
  • CamDawgCamDawg Member, Developer Posts: 3,438
    Added locally.
  • Avenger_teambgAvenger_teambg Member, Developer Posts: 5,862
    @SethDavis this looping spawn could be fixed easily (fix provided by Wisp)
  • SethDavisSethDavis Member Posts: 1,812
    Potentially fixed - @Wisp's fix has been applied
  • Avenger_teambgAvenger_teambg Member, Developer Posts: 5,862
    Confirmed fixed.
Sign In or Register to comment.