Skip to content

Replacing Imoen in Prologue/Korlasz's Lair

Hi. I heard that if you import your party with Imoen from BG to SOD she is removed and possibly replaced by Safana or the slot is left free, depending on the thief skills of your party...

Does anyone know the exact conditions under which that choice is made by the game? Many thanks!

Comments

  • jasteyjastey Member Posts: 2,780
    edited June 2023
    -- I just realized I didn't answer your question. Apologies - maybe teh script name will help you.

    ---

    In bd0120.bcs is Imoen's leaving the party. This area script calls the script bdintro.bcs. There, the thieving capacity of the group is checked. if it is a continuing game, Imoen were in Party, and the party now lacks thieveing skills, Safana is addd to the party:
    IF
    	Global("SOD_fromimport","global",1)
    	Global("BD_Imoen_Items","GLOBAL",1)
    	OR(2)
    		Global("bd_party_has_lockpicking","BD0120",0)  // Tomb Safehouse, First Floor
    		Global("bd_party_has_traps","BD0120",0)  // Tomb Safehouse, First Floor
    	BeenInParty("safana")  // Safana
    THEN
    	RESPONSE #100
    		CutSceneId(Player1)
    		MoveGlobal("BD0120","safana",[934.1718])  // Safana
    		ApplySpellRES("bdresurr","safana")  // No such index
    		SmallWait(1)
    		ApplySpellRES("bdrejuve","safana")  // No such index
    		ActionOverride("safana",ChangeAIScript("bdsafana",OVERRIDE))
    		ActionOverride("safana",SetDialog("bdsafana"))
    		ActionOverride("safana",JoinPartyOverride())
    END
    
    IF
    	Global("SOD_fromimport","global",1)
    	Global("BD_Imoen_Items","GLOBAL",1)
    	OR(2)
    		Global("bd_party_has_lockpicking","BD0120",0)  // Tomb Safehouse, First Floor
    		Global("bd_party_has_traps","BD0120",0)  // Tomb Safehouse, First Floor
    	!BeenInParty("safana")  // Safana
    THEN
    	RESPONSE #100
    		CutSceneId(Player1)
    		CreateCreature("safana7",[934.1718],NE)  // Safana
    		ActionOverride("safana",JoinPartyOverride())
    END
    
    

    That's basically it. For seeing how the thieving skills are evaluated, best you look into the bdintro.bcs.
    It also means, if the party still has thieving skills, it will start with one NPC less in the crypt.

  • DhariusDharius Member Posts: 665
    You answered my question? Thanks! You'd make a terrible politican...

    Please can you tell me where these ".bcs" files are located so I can take a closer look?
  • jasteyjastey Member Posts: 2,780
    edited June 2023
    I had the impression I only elaborated on what you already knew.

    In Near Infinity, if you open the game with it, the menue on the left side should also list the bcs files. Opening the one you are looking for will display the content. NI also has search features where you could search for terms inside the bcs etc. so you don't have to scan it manually.
    Post edited by jastey on
Sign In or Register to comment.