enderalse/scripts/source/_00e_nq02_activatorscript.psc

33 lines
785 B
Plaintext

Scriptname _00E_NQ02_ActivatorScript extends ObjectReference
GlobalVariable Property InvestigationGlobal auto
Message Property MessageInvestigate Auto
int doOnce
Event OnActivate(ObjectReference akActionRef)
float Investigation = InvestigationGlobal.GetValue()
if doOnce == 0
if (Investigation < 5)
Debug.Notification("Hier kleinen Erfahrungspunkte-Bonus einfügen.")
Investigation = Investigation + 1
MessageInvestigate.Show()
InvestigationGlobal.SetValue(Investigation)
doOnce = 1
elseif (Investigation == 5)
Debug.Notification("Achievement hinzu. Hier kleinen Erfahrungspunkte-Bonus einfügen.")
Investigation = Investigation + 1
MessageInvestigate.Show()
InvestigationGlobal.SetValue(Investigation)
doOnce = 1
else
return
endif
endif
EndEvent