Skip to content

LevelParty() trigger

ScottBrooksScottBrooks Member Posts: 687
edited July 2012 in General Modding
@lansounet

I checked http://iesdp.gibberlings3.net/scripting/triggers/bg2triggers.htm, and had a look at the LevelParty trigger.

I think that description is wrong.
The game gets the max level for each of your characters(dual/multi class chars contribute only the highest of their classes), and then divides that number by the number of characters in your party. It then compares it to the argument to LevelParty()

So LevelParty(8) for a party of Fighter:6, Mage/Thief:4/5 and Cleric: 5
will look something like
(6 + 5 + 5)/3 = 5

return 5 == 8

Comments

  • lansounetlansounet Member Posts: 1,182
    Alright thanks a lot!

    The most interesting part of that trigger is to make level range checks (with LevelPartyGT()/LT()) for monster spawns/dialogues/etc... (why not AI scripts to induce fear :p)
  • KerozevokKerozevok Member Posts: 695
    In BG1, if we start with a multiclass, the game consider you're level 2 and it's Imoen level 2 that appear the 1st day (never checked with BGT).

    I don't know for the BG2 engine, but for BG1, the spawn points are based on the level of the PC on the top of the GUI (and only this one).
Sign In or Register to comment.