PWGiveExperienceParty(object, int)

Gives or takes the specified amount of experience points (XP) to/from each member of a party.

void PWGiveExperienceParty(
    object oPC,
    int nExperience
);

Parameters

oPC

The player character used to reference the others in the party.

nExperience

The amount of experience to award to (or take from) each member of the party.


Description

Gives or takes the specified amount of experience points (XP) to/from each member of a party.



Remarks

Uses GetFirstFactionMember to cycle through oPC's group members.

If nExperience is a positive number, the XP is awarded using GiveXPToCreature. So the actual amount of XP each player receives will be adjusted for multiclass penalties.

If nExperience is a negative number, the XP is removed using SetXP. The amount of XP removed will never result in the player having less than 0 total XP.

nExperience can be 0. It will award each party member 0 XP.


Requirements

#include "nw_i0_plotwizard"


Version

???

See Also

functions:  GiveXPToCreature | GetXP | RewardPartyXP | SetXP
categories:  Experience Functions


author: Baragg, editor: Mistress