
Prototype: GemRB.SetPlayerStat(Slot, ID, Value)

Description: Sets a player character's base stat. The stats are listed in ie_stats.py.

Parameters: Slot  - actor index in game structure
            ID    - Stat index
            Value - New stat value

Return value: N/A

Example: 
 PickedColor=GemRB.GetTableValue(ColorTable, ColorIndex, GemRB.GetVar("Selected"))
 GemRB.SetPlayerStat (pc, IE_MAJOR_COLOR, PickedColor)
The above example sets the player's color just picked via the color customisation dialog. ColorTable holds the available colors.

See also: GetPlayerStat, SetPlayerName, ApplyEffect

