enderalse/source/scripts/_00e_nq02investigateblackfeathers.psc

38 lines
1.3 KiB
Plaintext

ScriptName _00E_NQ02InvestigateBlackFeathers Extends ObjectReference
;-- Variables ---------------------------------------
Int doOnce
;-- Properties --------------------------------------
GlobalVariable Property InvestigationGlobal Auto
Message Property MessageInvestigate Auto
;-- Functions ---------------------------------------
; Skipped compiler generated GetState
; Skipped compiler generated GotoState
Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
Float Investigation = InvestigationGlobal.GetValue()
If akNewContainer == Game.GetPlayer() as ObjectReference
If doOnce == 0
If Investigation < 5 as Float
Debug.Notification("Hier kleinen Erfahrungspunkte-Bonus einfügen.")
MessageInvestigate.Show(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
Investigation += 1 as Float
InvestigationGlobal.SetValue(Investigation)
doOnce = 1
ElseIf Investigation == 5 as Float
Debug.Notification("Achievement hinzu. Hier kleinen Erfahrungspunkte-Bonus einfügen.")
MessageInvestigate.Show(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
Investigation += 1 as Float
InvestigationGlobal.SetValue(Investigation)
doOnce = 1
Else
Return
EndIf
EndIf
EndIf
EndEvent