PlayerKarma
Sets the Player karma globally.
Syntax
(From ai_st_init.p3s)
// KARMA AMOUNTS
Const KARMA_LOW,5
Const KARMA_MED,10
Const KARMA_HIGH,25
Const KARMA_HALF,50
Const KARMA_FULL,100
PlayerKarma hide
-- Hides the karma icon
PlayerKarma show
-- Shows the karma icon
PlayerKarma good
-- Player is now on good path (unused)
PlayerKarma evil
-- Player is now on evil path (unused)
PlayerKarma +-*/=[value]
-- Modifies the karma's value
Example
// from ai_mission_sbe.p3s
xpt_OnPaparazziEscaped
{
actions
{
SetAttr "PhotoTaken 1"
MissionLog fail,photos
// Player lost some good guy points
CheckAttr "PhotoTaken PlayerKarma -KARMA_HIGH"
}
}