Author Topic: Branwen BG2 NPC for players and modders released!  (Read 42470 times)

Offline Kulyok

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 6253
  • Gender: Female
  • The perfect moment is now.
Branwen BG2 NPC for players and modders released!
« on: September 06, 2013, 02:09:40 AM »
Branwen, a non-player character from the first game in Baldur's Gate series, is a True Neutral human cleric. She worships Tempus, and one of her most famous quotes is "By Tempus' shield!"

But Branwen not just an NPC mod for BG2 players. It is also an NPC mod for modders! If you want to create an NPC mod, but don't know how, Branwen's files will help you and teach you. Of course, you can play her, too.

To start as a modder, open any of Branwen's files and read the comments. I recommend starting with Branwen/Dialogue/O#Bran.d and Setup-Branwen.tp2.
And, please, register a modding prefix here first, to replace mine(O#): http://forums.blackwyrmlair.net/index.php?showtopic=113

Get Branwen now at http://www.pocketplane.net/oneday

FAQ

Q: Where is she?
A: Branwen is in the Bridge district of Athkatla, not far from the main entrance. You should see her once you enter the area.

Q: Is there a romance between Branwen and a male PC?
A: Yes, for the "tall" races, including a human, elf, half-elf and a half-orc.

Q: Does Branwen really have a full romance?
A: Yes, with player-initiated flirts and Branwen-initiated flirts, as well, for SoA and ToB. Teen content only. There are also "obligatory" romance events, like Bodhi abduction, Gorion Wraith encounter and post-Saradush talk.

Q: What about Branwen's romance from BG1 NPC Project you wrote with Domi?
A: You can refer to it a few times, if you choose to, but the romance will continue just fine either way.

Q: Any special places for Branwen to talk to?
A: In addition to a friendship/romance track, Branwen has talks in Chapters 4,5,7, an additional talk an hour after Chapter 5 starts, a talk in Sahuagin city and a talk after the 3rd challenge in ToB.

Q: Any party advice?
A: All NPCs who were in BG1. Imoen, Jaheira, Minsc, Viconia, Edwin all get at least three conversations with Branwen in SoA. Also Xan, Tiax, Coran and hopefully other great NPCs, including BG1 favourites like Ajantis and Kivan, if Crossmod Banter Pack ever gets updated again.

Q: Can I install Branwen and continue playing?
A: Sure, just quit the game before installing mods.

Q: Is Branwen compatible with mod X?
A: Branwen should work fine with other mods. Install her together with other NPCs.



Q: I am a modder and I want to steal your code.
A: Steal away! You'll have to open files and read comments on how it works.

Don't forget to register your own prefix here: http://forums.blackwyrmlair.net/index.php?showtopic=113
(because you obviously can't have mine, I'm that greedy)

I also strongly recommend my dialogue tutorials at Pocket Plane Group forums.

And don't forget to download Infinity Explorer and DLTCEP! The links are below.

Q: I stole your code, changed it, and now I'm getting a syntax error in my mod. It sucks.
A: Yes, it does. I had the same problems, but you're going to get it done.

Visit the modding Q&A forums at shsforums.net, forums.gibberlings3.net and forums.pocketplane.net. But first, try to solve the problem yourself. A missing '~' is often the key.

Q: Can I e-mail or PM you instead?
A: (evil laughter) No. But I answer queries in Modding Q&A sometimes, when I'm active on the forums.

Offline Daulmakan

  • Comfortably numb
  • Planewalker
  • *****
  • Posts: 328
  • Gender: Male
Re: Branwen BG2 NPC for players and modders released!
« Reply #1 on: September 07, 2013, 11:55:10 AM »
You've been on a roll lately. Kudos on all the new releases.

Offline Kulyok

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 6253
  • Gender: Female
  • The perfect moment is now.
Re: Branwen BG2 NPC for players and modders released!
« Reply #2 on: September 07, 2013, 12:01:41 PM »
Thank you! :) It's a relief to be done with the updates. Well, almost: we've still got BG1 RE in the works!

Offline Kaeloree

  • Planewalker
  • *****
  • Posts: 109
Re: Branwen BG2 NPC for players and modders released!
« Reply #3 on: September 07, 2013, 07:07:20 PM »
Congratulations! Talk about follow-through! This is a fantastic resource for new modders. Thank you so much! :D

Offline Kulyok

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 6253
  • Gender: Female
  • The perfect moment is now.
Re: Branwen BG2 NPC for players and modders released!
« Reply #4 on: September 08, 2013, 12:08:38 AM »
Thank you, it was a great idea! (Though coding Bodhi's abduction, naturally, was a pain. :) )

Offline Kaeloree

  • Planewalker
  • *****
  • Posts: 109
Re: Branwen BG2 NPC for players and modders released!
« Reply #5 on: September 08, 2013, 12:34:08 AM »
It always is.  :pirate

Offline Zazei

  • Planewalker
  • *****
  • Posts: 15
Re: Branwen BG2 NPC for players and modders released!
« Reply #6 on: September 22, 2013, 12:18:53 PM »
Found this a little late. Really though, once again you tempt me to replay Baldur's gate 2. This is almost evil. Especially since there was another quest in Unfinished Business too. If you keep this up we could one day do a full party with only NPCs made by you. ;)

I wonder if I brought Branwen, Coran and Xan together would they talk to each other? ^^
« Last Edit: September 22, 2013, 12:22:04 PM by Zazei »

Offline Kulyok

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 6253
  • Gender: Female
  • The perfect moment is now.
Re: Branwen BG2 NPC for players and modders released!
« Reply #7 on: September 22, 2013, 01:17:27 PM »
They would, but please install both
Crossmod Banter Pack and my little add-on(.tp2 content to be added to crossmod's .tp2):

http://forums.gibberlings3.net/index.php?showtopic=23641&view=findpost&p=213835

It's really a shame there's not been a new version of Crossmod Banter Pack add-on for so long. And thank you for the kind words!

EDIT: edited the link.

Offline Kulyok

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 6253
  • Gender: Female
  • The perfect moment is now.
Re: Branwen BG2 NPC for players and modders released!
« Reply #8 on: November 04, 2013, 02:55:53 AM »
I've started revising my mods for BG2:EE upgrade. Branwen is about the only one who doesn't seem to need it: she has no custom portraits, no kits, no item descriptions with usability sections. She has one journal entry for Bodhi abduction, which is non-traified for teaching/learning purposes, so in BG2:EE installs it will simply disappear - not a big deal.

If you have a BG2:EE install and a few minutes of spare time, please, do me a favor: try to install Branwen BG2 NPC on your BG2:EE game. If she installs correctly and spawns in the Bridge District and talks, please, let me know. If not, again, please, let me know. I'll check it myself when I download a copy of BG2:EE after release, but it's going to be a few weeks later.

Offline Kulyok

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 6253
  • Gender: Female
  • The perfect moment is now.
Re: Branwen BG2 NPC for players and modders released!
« Reply #9 on: November 10, 2013, 04:45:41 AM »
Since it turned out that BG2:ToB checks on my mods do not work for BG2EE, I replaced them with a new check and made Branwen's Bodhi journal entries compatible with BG2EE. She also uses Weidu 234 now.

Version 2 is available! If you have BG2EE, go ahead and try her. If not, no real changes have been made - you're fine with v1.

Offline Beetle

  • Planewalker
  • *****
  • Posts: 34
Re: Branwen BG2 NPC for players and modders released!
« Reply #10 on: November 16, 2013, 01:08:01 AM »
I was going to wait until I finished the game before gushing about how great Branwen is, but I just got through the Forest of Mir. You've created my favorite Wraith encounter of all time. Even in the darkest times, Branwen in delightfully free of angst. Well done and thanks for bringing Branwen into BG2!
Quis custodiet ipsos custodes?

Offline Kulyok

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 6253
  • Gender: Female
  • The perfect moment is now.
Re: Branwen BG2 NPC for players and modders released!
« Reply #11 on: November 16, 2013, 01:59:04 AM »
Thank you very much! I loved Branwen's grandmother, too!

Offline Kulyok

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 6253
  • Gender: Female
  • The perfect moment is now.
Re: Branwen BG2 NPC for players and modders released!
« Reply #12 on: February 14, 2014, 09:10:06 AM »
Version 3 is here, with Dorn, Hexxat, Neera and Rasaad banters. I'm partial to Dorn banters, myself.

Offline Cal Jones

  • Planewalker
  • *****
  • Posts: 60
Re: Branwen BG2 NPC for players and modders released!
« Reply #13 on: February 18, 2014, 04:40:30 AM »
Great stuff! My next playthrough will contain all your new mods. You certainly are prolific! By the way, does Branwen banter with any of your other NPCs (Coran and Xan?)

Offline Kulyok

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 6253
  • Gender: Female
  • The perfect moment is now.
Re: Branwen BG2 NPC for players and modders released!
« Reply #14 on: February 18, 2014, 06:48:18 AM »
Thank you! Yes, certainly, I've released all Branwen's banters for most of BG1 NPCs, including my own, they're in coded form in Crossmod Banter pack submissions thread: http://forums.gibberlings3.net/index.php?showtopic=23641&view=findpost&p=213835 (also Ajantis and Kivan there). Unfortunately, Crossmod hasn't been updated for quite a while(despite me suggesting help months ago, it got ignored), but you still can just insert my .tp2 code into Crossmod's Banter Pack setup file and dump the rest to crossmodbg2 folder, and it will work. :)

Offline Cal Jones

  • Planewalker
  • *****
  • Posts: 60
Re: Branwen BG2 NPC for players and modders released!
« Reply #15 on: February 18, 2014, 04:47:19 PM »
Thank you.

Offline Ravenslight

  • Planewalker
  • *****
  • Posts: 7
  • Gender: Female
Re: Branwen BG2 NPC for players and modders released!
« Reply #16 on: March 03, 2014, 06:56:09 AM »
Thank you Kulyok! Your tutorials have been an invaluable resource for my husband and myself as we learn to craft our first mod.

Offline Kulyok

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 6253
  • Gender: Female
  • The perfect moment is now.
Re: Branwen BG2 NPC for players and modders released!
« Reply #17 on: March 03, 2014, 07:09:34 AM »
Good luck with it! I hope you're going to release an excellent (NPC-related, right?) mod! And you're very welcome.

Offline Ravenslight

  • Planewalker
  • *****
  • Posts: 7
  • Gender: Female
Re: Branwen BG2 NPC for players and modders released!
« Reply #18 on: March 03, 2014, 11:51:20 AM »
Thank you. Yes, a male NPC for Baldur’s Gate EE with a romance track for female protagonists. Kerick, a chaotic neutral thief.

Offline Kulyok

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 6253
  • Gender: Female
  • The perfect moment is now.
Re: Branwen BG2 NPC for players and modders released!
« Reply #19 on: May 18, 2015, 01:13:23 AM »
To correct for the next version:
== VICONIJ IF ~InParty("Viconia") InMyArea("Viconia") !StateCheck("Minsc",CD_STATE_NOTVALID)

Huge thanks to Raven for pointing this out(and sorry for not being able to reply on CoM forums - I lost my password _again_).

Offline Bill Bisco

  • Planewalker
  • *****
  • Posts: 30
Re: Branwen BG2 NPC for players and modders released!
« Reply #20 on: September 13, 2015, 01:25:44 AM »
Hmm,

I can't think of a better place than to post this here:

1. In the Branwen mod the lovetalks start out with:

Code: [Select]
IF ~Global("O#BranTalk","GLOBAL",2)~ t1
SAY ~Let's stop and talk for a moment. By Tempus, I haven't seen you in ages!~
++ ~What for? You already know about Irenicus and Imoen.~ + t1.1
++ ~If it's about some rumors about me being a Child of Bhaal again, I will break someone's shield over their head. Just saying.~ + t1.2
++ ~Sure, let's talk. How have you been?~ + t1.3
++ ~Now is not the best time, Branwen.~ + t.0
END

IF ~~ t.0
SAY ~Until next time, then.~
IF ~~ DO ~IncrementGlobal("O#BranTalk","GLOBAL",1) RealSetGlobalTimer("O#BranTimer","GLOBAL",3600)~ EXIT
END

Now, where did you set O#BranTalk at 2 ?  This talk will not fire until that happens obviously and since each lovetalk is requisite on having increasing numbers, it seems that none of them will fire either.

2. Codewise, what prevents t.0 from always firing?  It has no requirements listed there for the dialogue to fire.

3. Here at the end of t2.6 you have an Increment Global regularly and an Increment Global if the Branwen Romance is Active at "1".
Code: [Select]


IF ~~ t2.6
SAY ~To <CHARNAME>! The best friend I could ever have.~
IF ~~ DO ~IncrementGlobal("O#BranTalk","GLOBAL",1) RealSetGlobalTimer("O#BranTimer","GLOBAL",3600)~ EXIT
IF ~Global("O#BranRomanceActive","GLOBAL",1)~ DO ~IncrementGlobal("O#BranTalk","GLOBAL",1) RealSetGlobalTimer("O#BranTimer","GLOBAL",3600)~ + t2.7
END

// Note how I placed a condition for O#BranRomanceActive below a "normal" exit.
// That's how it works if you want to add some "conditional" text to SAY dialogue.

IF ~~ t2.7
SAY ~And the most handsome man.~
IF ~~ EXIT
END

Does this talk in fact increment the Lovetalk by 2 if Branwen Romance Global is at "1"?

4. Where does the BranRomanceActive Global get set?  Where do the romance requirements (Gender, Race, etc.) get set?

Thank you,

Bill

Offline Kulyok

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 6253
  • Gender: Female
  • The perfect moment is now.
Re: Branwen BG2 NPC for players and modders released!
« Reply #21 on: September 17, 2015, 08:26:01 AM »
These are regular mod-tutorial questions, which are better asked in the modding Q&A, I think.

- Naturally, since you're studying _scripting_, the first place you need to go to is Branwen/Scripts, and look to the biggest file, her main script, O#BranS.baf:

you should scroll down to the romance part, and everything about incrementing variables will be explained in detail, I promise!

(quote: // EXACTLY like the condition in the beginning of each talk, right?)

Also, her main dialogue mentions that

/* We need IncrementGlobal() and RealSetGlobalTimer() in every dialogue. The last state is the best place, IF the dialogue has one ending, otherwise you'll have to duplicate. */

And you have probably already read O#Bran.d, her first dialogue file, which mentions that

// We don't want this dialogue to trigger again, so we set O#BranMet to one. Do this to all your lovetalks and NPC banters.



TL;DR: start reading Branwen's files in the order I mentioned: O#Bran.d first. Then it will be easier for you to deal with the romance stuff.

"// Read this dialogue file FIRST.

// As for Branwen's scripts, I recommend to start with O#BranS.baf."

Offline Aedan

  • Planewalker
  • *****
  • Posts: 21
  • Gender: Male
Re: Branwen BG2 NPC for players and modders released!
« Reply #22 on: September 02, 2018, 03:36:42 PM »
In BGEE, now Branwen has got the Priest of Tempus kit.
Any chance to update this mod giving her this kit? It would be lovely.

Offline jastey

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 1524
  • Gender: Female
Re: Branwen BG2 NPC for players and modders released!
« Reply #23 on: February 08, 2019, 04:05:44 AM »
Branwen updates to v4 with EET compatibility!

Changes:
- EET compatibility (with explanations!)
- corrected Viconia's DV in her interjection where Minsc's was checked instead
- added small note to readme about text formats needed in the EE
- renamed setup-Branwen.tp2 -> Branwen.tp2 to support ALIEN's "Project Infinity"
- added Branwen.ini to support ALIEN's "Project Infinity"
- moved readme call to the beginning
- Updated to WeiDU 246

Offline jastey

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 1524
  • Gender: Female
Re: Branwen BG2 NPC for players and modders released!
« Reply #24 on: January 09, 2021, 10:37:04 AM »
Branwen updates to v6!
Thanks to Austin for providing a trified version.

Changelog:
- mod is now traified, by Austin.
- removed not needed Backup folder.
- links in branwen.ini updated.
- shortened mod name in .ini
- add Dynamic Install Syntax to support Project Infinity.

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: