Prestige Classes:Scripting

From NWN1 Custom Content Guide

Jump to: navigation, search

Prestige Classes can be disabled, using local variables applied to the players. This is useful either to prevent people from using certain prestige classes, or to force players to fulfill certain conditions before they can take a prestige class, eg access to the Assassin class could be made only available to members of the Assassin's guild with something along the lines of the code below in the module enter event, assuming guild membership was setup to flag members with the campaign database:

void main()
{
    object oPC = GetEnteringObject();
    int iMember = GetCampaignInt( "CampaignName", "ASS_GUILD_MEMBER", oPC );
    if ( iMember != TRUE )
    {
        SetLocalInt( oPC, "X1_AllowAsasin", 1 );
    }
}

[edit] Shadows of Undrentide Variables

X1_AllowAsasin Assassin
X1_AllowArcher Arcane Archer
X1_AllowBlkGrd Black Guard
X1_AllowHarper Harper Scout
X1_AllowShadow Shadow Dancer

[edit] Hordes of the Underdark Variables

X1_AllowDrDis Dragon Disciple
X1_AllowDwDef Dwarven Defender
X2_AllowDivcha Champion of Torm
X2_AllowPalema Palemaster
X2_AllowShiftr Shifter
X2_AllowWM Weapon Master

Main Page | Scripting | Prestige Classes:Scripting

Personal tools