enderalse/source/scripts/_00e_game_calculateclasssc.psc

34 lines
942 B
Plaintext
Raw Normal View History

Scriptname _00E_Game_CalculateClassSC extends ObjectReference
;=====================================================================================
; EVENTS
;=====================================================================================
Event OnTriggerEnter(ObjectReference akActionRef)
if akActionRef == PlayerREF
iMemoryPointsOnEnter = TalentPoints.GetValueInt()
EndIf
EndEvent
Event OnTriggerLeave(ObjectReference akActionRef)
if akActionRef == PlayerREF
Player.GetPlayerClass()
EndIf
EndEvent
;=====================================================================================
; PROPERTIES
;=====================================================================================
int iMemoryPointsOnEnter
Actor Property PlayerREF Auto
GlobalVariable Property TalentPoints Auto
_00E_Game_SkillmenuSC Property Player Auto