Skip to content

Is it ok to use IsValidForPartyDialog?

vanatosvanatos Member Posts: 876
I seem to recall this function was buggy and modders
didn't like using it in vanilla BG2.

What was the particular problem? i see even in vanilla BG2 it was used all over the place in the retail code.

Comments

  • elminsterelminster Member, Developer Posts: 16,315
    edited December 2015
    I think its because "InParty" (with some added conditions like "See") was a lot more likely to trigger. That being said if you haven't seen it you should check out this thread

    https://forums.beamdog.com/discussion/1686/bg2-bug-ifvalidforpartydialogue-flakiness/p1

    Its talking about "ifvalidforpartydialogue" but I think effectively they are the same thing. Basically "ifvalidforpartydialogue" (and by extension "isvalidforpartydialogue") had a whole bunch of requirements in order to trigger. Including a requirement that the person you are talking to was not the last person you talked to. This caused scripting issues.
  • vanatosvanatos Member Posts: 876
    Cheers
Sign In or Register to comment.