Author Topic: Banter restorations  (Read 326 times)

Offline CamDawg

  • Infidel
  • Planewalker
  • *****
  • Posts: 776
    • The Gibberlings Three
Banter restorations
« on: June 03, 2017, 10:09:53 PM »
During EE development, a number of cut banters were found. I'm way, way behind on UB (or ARP) development so I have no idea if these have already been found and enabled already.

Aerie and Jan banter about Jan's great-grandfather slaying a dragon:

Code: [Select]
ADD_STATE_TRIGGER BAERIE 44 ~InParty("Jan") See("Jan") !StateCheck("Jan",STATE_SLEEPING) Global("CDAerieJanBanter","LOCALS",0)~
ADD_TRANS_ACTION BAERIE BEGIN 44 END BEGIN END ~SetGlobal("CDAerieJanBanter","LOCALS",1)~

Aerie and Minsc talk about the forest:

Code: [Select]
ADD_STATE_TRIGGER BAERIE 76 ~InParty("Minsc") See("Minsc") !StateCheck("Minsc",STATE_SLEEPING) Global("CDAerieMinscBanter","LOCALS",0) AreaType(FOREST)~
ADD_TRANS_ACTION BAERIE BEGIN 76 END BEGIN END ~SetGlobal("CDAerieMinscBanter","LOCALS",1)~

Haer'Dalis and Mazzy have a brief aside--very brief, two lines--about her ferocity.

Code: [Select]
ADD_STATE_TRIGGER BHAERDA 2 ~InParty("Mazzy") See("Mazzy") !StateCheck("Mazzy",STATE_SLEEPING) Global("CDHaerdalisMazzyBanter","LOCALS",0)~
ADD_TRANS_ACTION BHAERDA BEGIN 2 END BEGIN END ~SetGlobal("CDHaerdalisMazzyBanter","LOCALS",1)~

Valygar and Korgan discuss dwarves:

Code: [Select]
ADD_STATE_TRIGGER BVALYGA 65 ~InParty("Korgan") See("Korgan") !StateCheck("Korgan",STATE_SLEEPING) Global("CDValygarKorganBanter","LOCALS",0)~
ADD_TRANS_ACTION BVALYGA BEGIN 65 END BEGIN END ~SetGlobal("CDValygarKorganBanter","LOCALS",1)~

Viconia packs four taunts in two lines with Mazzy:

Code: [Select]
ADD_STATE_TRIGGER BVICONI 7 ~InParty("Mazzy") See("Mazzy") !StateCheck("Mazzy",STATE_SLEEPING) Global("CDViconiaMazzyBanter","LOCALS",0)~
ADD_TRANS_ACTION BVICONI BEGIN 7 END BEGIN END ~SetGlobal("CDViconiaMazzyBanter","LOCALS",1)~

Viconia doesn't trust Yoshimo:

Code: [Select]
ADD_STATE_TRIGGER BVICONI 8 ~InParty("Yoshimo") See("Yoshimo") !StateCheck("Yoshimo",STATE_SLEEPING) Global("CDViconiaYoshimoBanter","LOCALS",0)~
ADD_TRANS_ACTION BVICONI BEGIN 8 END BEGIN END ~SetGlobal("CDViconiaYoshimoBanter","LOCALS",1)~
Viconia and Jan briefly exchange barbs:

Code: [Select]
ADD_STATE_TRIGGER BVICONI 24 ~InParty("Jan") See("Jan") !StateCheck("Jan",STATE_SLEEPING) Global("CDViconiaJanBanter","LOCALS",0)~
ADD_TRANS_ACTION BVICONI BEGIN 24 END BEGIN END ~SetGlobal("CDViconiaJanBanter","LOCALS",1)~

Yoshimo praises Boo's battle prowess:

Code: [Select]
REPLACE_STATE_TRIGGER BYOSHIM 71 ~InParty("Minsc") See("Minsc") HPLT("Minsc",20) !StateCheck("Minsc",STATE_SLEEPING) CombatCounter(0) Global("BYoshimo13","LOCALS",1)~ // triggers present, but commented out and false'd
This one also requires some yoshimo.bcs touchups:

Code: [Select]
IF
  InParty(Myself)
  !StateCheck(Myself,STATE_SLEEPING)
  InParty("Minsc")
  See("Minsc")
  HPLT("Minsc",20)
  !StateCheck("Minsc",STATE_SLEEPING)
  CombatCounter(0)
  Global("BYoshimo13","LOCALS",0)
THEN
  RESPONSE #100
    SetGlobal("BYoshimo13","LOCALS",1)
    Interact("Minsc")
END

A couple of NPCs have banters if one dies and was resurrected, so these also require a little scripting. Boo--certainly not Minsc!--was scared about losing Mazzy, and Yoshimo is happy to see Aerie's return:

Code: [Select]
ADD_STATE_TRIGGER BMINSC 30 ~InParty("Mazzy") See("Mazzy") !StateCheck("Mazzy",STATE_SLEEPING) Global("CDMinscMazzyBanter","LOCALS",2)~
ADD_TRANS_ACTION BMINSC BEGIN 30 END BEGIN END ~SetGlobal("CDMinscMazzyBanter","LOCALS",3)~

ADD_STATE_TRIGGER BYOSHIM 0 ~InParty("Aerie") See("Aerie") !StateCheck("Aerie",STATE_SLEEPING) Global("CDYoshimoAerieBanter","LOCALS",2)~
ADD_TRANS_ACTION BYOSHIM BEGIN 0 END BEGIN END ~SetGlobal("CDYoshimoAerieBanter","LOCALS",3)~

Also requires some minsc.bcs scripting:

Code: [Select]
// restored minsc-mazzy banter
IF
  InParty(Myself)
  InParty("Mazzy")
  Dead("Mazzy")
  Global("CDMinscMazzyBanter","LOCALS",0)
THEN
  RESPONSE #100
    SetGlobal("CDMinscMazzyBanter","LOCALS",1)
END

IF
  InParty(Myself)
  !StateCheck(Myself,STATE_SLEEPING)
  InParty("Mazzy")
  See("Mazzy")
  !StateCheck("Mazzy",STATE_SLEEPING)
  !Dead("Mazzy")
  Global("CDMinscMazzyBanter","LOCALS",1)
THEN
  RESPONSE #100
    SetGlobal("CDMinscMazzyBanter","LOCALS",2)
    Interact("Mazzy")
END

...and some yoshimo.bcs scripting:

Code: [Select]
IF
  InParty(Myself)
  InParty("Aerie")
  Dead("Aerie")
  Global("CDYoshimoAerieBanter","LOCALS",0)
THEN
  RESPONSE #100
    SetGlobal("CDYoshimoAerieBanter","LOCALS",1)
END

IF
  InParty(Myself)
  !StateCheck(Myself,STATE_SLEEPING)
  InParty("Aerie")
  See("Aerie")
  !StateCheck("Aerie",STATE_SLEEPING)
  !Dead("Aerie")
  Global("CDYoshimoAerieBanter","LOCALS",1)
THEN
  RESPONSE #100
    SetGlobal("CDYoshimoAerieBanter","LOCALS",2)
    Interact("Aerie")
END
The Gibberlings Three - Home of IE Mods

The BG2 Fixpack - All the fixes of Baldurdash, plus a few hundred more. Now available, with more fixes being added in every release.

Offline Angel

  • Planewalker
  • *****
  • Posts: 101
Re: Banter restorations
« Reply #1 on: June 04, 2017, 02:36:40 AM »
Mm, interesting.  I took up maintaining UB as much as I can with the blessing of Kulyok.  The current v26 with modernized coding was done by me, and I am working on v27 that has native EET support (thanks to the BWP people) and a few other things (mainly two cut items that I found, Irenicus' third journal and the golem brain).

I'll certainly take a look at these, they look neat and since you already did most of the coding they should be a snap to include.  At the moment I am rather busy with one of my own projects, but I should have some time to check this out in a few days.

This is my current (untested!) alpha version for v27: http://www.pearlgates.net/modding/UnfinishedBusiness-v27alpha.zip


Offline Angel

  • Planewalker
  • *****
  • Posts: 101
Re: Banter restorations
« Reply #2 on: June 08, 2017, 02:53:14 PM »
Well, I went through the UB code today, and I checked the dialog files of my current BGT installation.  It doesn't look like these dialogs are currently restored by UB, ARP or any of the banter packs, as I have installed all of those and several other mods, and these banters still lack any proper triggers.

I probably can use this to create a new component for UB that will restore them.  I have a convention this weekend so I likely won't be able to start before next week though.

« Last Edit: June 08, 2017, 02:54:29 PM by Angel »

Offline CamDawg

  • Infidel
  • Planewalker
  • *****
  • Posts: 776
    • The Gibberlings Three
Re: Banter restorations
« Reply #3 on: June 08, 2017, 03:01:59 PM »
Sweet!
The Gibberlings Three - Home of IE Mods

The BG2 Fixpack - All the fixes of Baldurdash, plus a few hundred more. Now available, with more fixes being added in every release.

Offline Angel

  • Planewalker
  • *****
  • Posts: 101
Re: Banter restorations
« Reply #4 on: June 08, 2017, 06:41:22 PM »
Well, this actually turned out to be so easy to implement that I -uh- did it already.  Thanks to your work, this was a cinch. :-)

I did replace the STATE_SLEEPING in the various dialog checks with CD_STATE_NOTVALID defined in the mod, but everything else was copy-paste.  All I had to do was add a new component to the setup file, update the readme, and nudge a few things here and there.

The alpha on my site (link above) has been updated with this.  Like everything else in the alpha, this is completely untested!


One thing though, are these banters still dummied out in BG2EE, or should I make this component for old BG2 only?


Offline CamDawg

  • Infidel
  • Planewalker
  • *****
  • Posts: 776
    • The Gibberlings Three
Re: Banter restorations
« Reply #5 on: June 08, 2017, 08:29:22 PM »
The nice thing with this code is that it won't really matter if multiple mods run it--you'll get dupe triggers and script blocks, but everything should still work. As for BGIIEE, I believe this is slated for the next patch but I can't say for sure. OTOH it is currently in the Fixpack v11 beta, but I had planned to remove it once it was in a stable UB release.
The Gibberlings Three - Home of IE Mods

The BG2 Fixpack - All the fixes of Baldurdash, plus a few hundred more. Now available, with more fixes being added in every release.

Offline Angel

  • Planewalker
  • *****
  • Posts: 101
Re: Banter restorations
« Reply #6 on: June 09, 2017, 01:14:19 AM »
Heh, I see.  Fair enough.  As for a stable release, well I don't think I messed anything up, and I did get some positive feedback from the EET and BWP people.  But until I have actually tested what I did, I'm being careful.  I also need translations for two strings I added.  I plan to start a new BGT game now that I got the urge to play IWD out of my system (at least for now), so maybe in a few weeks...


Offline Almateria

  • Planewalker
  • *****
  • Posts: 66
Re: Banter restorations
« Reply #7 on: June 10, 2017, 08:13:05 PM »
I take a week off due to the finals going on, and this is what I miss. Someone already called dibs, darn it.

Does that mean the ARP/UB feud is real now

Offline CamDawg

  • Infidel
  • Planewalker
  • *****
  • Posts: 776
    • The Gibberlings Three
Re: Banter restorations
« Reply #8 on: June 10, 2017, 08:42:58 PM »
Nah, take 'em too--like I said, they're written in such a way that if multiple mods try to install this, no bad should come of it other than a few dupe triggers.

Should. :)
The Gibberlings Three - Home of IE Mods

The BG2 Fixpack - All the fixes of Baldurdash, plus a few hundred more. Now available, with more fixes being added in every release.

Offline Angel

  • Planewalker
  • *****
  • Posts: 101
Re: Banter restorations
« Reply #9 on: June 11, 2017, 04:42:47 AM »
Heh, no feud there as far as I'm concerned. :-)

I coded mine to be detectable with the file override/ubbanter.xxx (same style as the other UB components), so you can use that to test if you like.  But as CamDawg said, there should be no real harm other than some duplicate triggers.


Offline Almateria

  • Planewalker
  • *****
  • Posts: 66
Re: Banter restorations
« Reply #10 on: June 11, 2017, 03:10:16 PM »
Aw dang, I prepared all sorts of dumb jokes about you. Like the UB v27 alpha actually being Improved Anvil v6.

Oh yeah, that's right! Guess I might pop that in with a detection check in place, since, well... ultimately, ARP is way smaller than UB lmao. I dunno if there are people installing my mod and not UB.
Since I never did get an article in PC Gamer.  :(

Offline jastey

  • Planewalker
  • *****
  • Posts: 1146
  • Gender: Female
Re: Banter restorations
« Reply #11 on: June 13, 2017, 07:02:31 AM »
Ooh, there I went to pop some corn and now this. The IE modding scene isn't what it used to be back in the days!!111


(Thank god.)

OT: Thank you for restoring these! More banter is always better.

Offline Angel

  • Planewalker
  • *****
  • Posts: 101
Re: Banter restorations
« Reply #12 on: June 14, 2017, 03:01:28 AM »
Aw dang, I prepared all sorts of dumb jokes about you. Like the UB v27 alpha actually being Improved Anvil v6.

Kinda would have gone over my head anyway, as I never installed Improved Anvil. ^^

Oh yeah, that's right! Guess I might pop that in with a detection check in place, since, well... ultimately, ARP is way smaller than UB lmao. I dunno if there are people installing my mod and not UB.
Since I never did get an article in PC Gamer.  :(

Dunno, but I am installing them both. :-)
And hey, UB is not my mod, I'm only trying to keep it alive and compatible.  The real credit should go to those who created it in the first place.


 

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.

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)?: