OnPlayerLevelUp

From NWN Lexicon
Jump to: navigation, search

OnPlayerLevelUp

Occurs when a PC has gained a new level. Fires right after the player has clicked okay to confirm the choices he has made for the gained level. There's no way to prevent the level from occurring, but you can script it so that the PC is knocked back a level right after he has gained it.

Trigger

When a PC gains a new level.

Function(s)

GetPCLevellingUp() returns the player who is leveling up.

Remarks=

When forcing redo a level, use small delay (such as 0.3+-) before restoring player's experiences. Otherwise player might not be able to see the level up button until relog.

See Also

functions: 

GetPCLevellingUp()