enderalse/scripts/source/_00e_nq02_activatorscript.psc

33 lines
785 B
Plaintext
Raw Normal View History

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<6E>gen.")
Investigation = Investigation + 1
MessageInvestigate.Show()
InvestigationGlobal.SetValue(Investigation)
doOnce = 1
elseif (Investigation == 5)
Debug.Notification("Achievement hinzu. Hier kleinen Erfahrungspunkte-Bonus einf<6E>gen.")
Investigation = Investigation + 1
MessageInvestigate.Show()
InvestigationGlobal.SetValue(Investigation)
doOnce = 1
else
return
endif
endif
EndEvent