GetPCLevellingUp
From NWN Lexicon
Contents |
[edit] GetPCLevellingUp()
Retrieves reference to the last PC that levelled up.
[edit] Description
Returns the last PC that levelled up.
[edit] Version
1.61
[edit] Example
// Demonstrates how to apply a spell affect to the PC who has just levelled up. void main() { //Polymorphs PC into a penguin for two minutes. object oPC=GetPCLevellingUp(); effect ePolymorph=EffectPolymorph(POLYMORPH_TYPE_PENGUIN, TRUE); ApplyEffectToObject(DURATION_TYPE_TEMPORARY, ePolymorph, oPC, 120.0); }
[edit] See Also
author: Sarev0k, editor: Lilac Soul