1
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

33 lines
785 B

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