Reward_2daXP(int)

Pass in a PC and a row from the 'des_xp_rewards' 2da file to reward the PC and/or party experience.

void Reward_2daXP(
    object oPC,
    int nRow,
    int bAllParty = TRUE,
    int nPercentage = 100
);

Parameters

oPC

The player to award XP to.

nRow

The integer indicative of the row on the 2da.

bAllParty

If TRUE award XP to all in oPCs' party, if FALSE just the player gets XP. (Default: TRUE)

nPercentage

The percentage amount of the 2da listed XP to award. (Default: 100)


Description

Pass in a PC and a row from the 'des_xp_rewards' 2da file to reward the PC and/or party experience.



Requirements

#include "nw_i0_plot"


Version

???

Example

// Award OBJECT_SELF 10000 XP.
#include "nw_i0_plot"

void main()
{
  // Remember nPercentage defaults to 100%.
  Reward_2daXP(OBJECT_SELF, 8, FALSE);  
}

See Also

functions:  DoGiveXP | GiveXPToAll | GiveXPToAllEqually | GiveXPToCreature | RewardPartyXP | RewardXP | SetXP
categories:  Experience Functions


author: Baragg, editor: Mistress