Skip to content

Question about NPC modification.

myEVILmodemyEVILmode Member Posts: 25
How do I modify the race and alignment requirements in a romance? For example, Viconia or another NPC. Which file is responsible for this? I understand it will look similar to something like <charname> check race if elf then romance else end. etc.

Comments

  • OtherwiselyOtherwisely Member Posts: 21
    I've honestly never been able to find the EXACT file that outlines a character's romance requirements, but you don't strictly need to find it to change it. This is the code that I used for my mod:
    IF
    	!Global("ViconiaMatch","GLOBAL",1)
    THEN
    	RESPONSE #100
    		SetGlobal("CheckViconiaMatch","GLOBAL",1)
    		SetGlobal("ViconiaMatch","GLOBAL",1)
    END
    

    Basically it says: if CHARNAME doesn't meet Viconia's romance requirements, then change it so that they DO meet the romance requirements. In other words, with this script literally anyone, regardless of gender or race, can romance Viconia.

    If you wanted to make it more specific (for example, just adding elves to the pool of romance candidates), you can just add a line to the IF section to specify that.
    IF
    	!Global("ViconiaMatch","GLOBAL",1)
    	Race(Player1,ELF)
    THEN
    	RESPONSE #100
    		SetGlobal("CheckViconiaMatch","GLOBAL",1)
    		SetGlobal("ViconiaMatch","GLOBAL",1)
    END
    

    To actually add this script to your game, put it in a baf file and put a line like this in your TP2 file:
    EXTEND_BOTTOM ~VICONIA.BCS~ ~mymod\scripts\vicrom.baf~
    
    . This will compile the code into something the engine can read and then add it to the bottom of Viconia's scripts. Hope that helps!
  • myEVILmodemyEVILmode Member Posts: 25
    ...
    Thank you for your answer! Do I understand correctly that I have to create a mini mod? tp2 indicates the path to baf? Sorry, I have no experience in creating any mod.


  • OtherwiselyOtherwisely Member Posts: 21
    Ah, I assumed you were wanting to get into modding. If all you want is to romance a character regardless of race or gender, I'd recommend just using mods that have already been written.

    I'm going to recommend my own mod, of course: https://forums.beamdog.com/discussion/88256/mod-viconia-romance-expanded-for-bg2ee-phaere-expanded

    But CDTweaks also has a component that removes romance restrictions (in addition to a bunch of other components): https://www.gibberlings3.net/mods/tweaks/tweaks/

    I hope that's more in line with what you were looking for!
Sign In or Register to comment.