Category:Experience Functions

From NWN Lexicon
Jump to navigationJump to search

Experience Function Category

Functions that deal with experience.



Functions

Name Brief Description

AddJournalQuestEntry

Add an entry to a player's Journal. (Create the entry in the Journal Editor first).

DoGiveXP

Gives the designated XP to the PC using the design rules for XP distribution.

EffectNegativeLevel

Create a Negative Level effect that will decrease the level of the target.

GetJournalQuestExperience

Returns the amount of experience set for a journal category.

GetXP

Get a given creature's experience.

GiveXPToAll

Gives experience points to each PC in a PC's party

GiveXPToAllEqually

Divides experience points equally among PCs in a PC's party

GiveXPToCreature

Gives an amount of experience to the specified creature.

plotCanRemoveXP

Returns TRUE if the player can afford to lose the indicated amount of XP without losing a level.

PWGiveExperienceParty

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

PWSetMinLocalIntAndJournalForItemAcquired

Based on acquiring an item, this function sets a local integer variable for all players in a group, awards XP, and sets a journal entry.

PWSetMinLocalIntAndJournalForOpenerParty

Based on opening an object, this function sets a local integer variable for all players in a group, awards XP, and sets a journal entry.

Reward_2daXP

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

RewardPartyXP

Gives experience to a PC and (optionally) all party members.

RewardXP

Gives the designated XP to the PC and possible their party using the design rules for XP distribution.

SetXP

Sets a creatures experience points to a particular value.

[[Category:Functions