2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_EPOnMagicalSymbolDis extends ObjectReference
|
|
|
|
{To be put onto a magical symbol and its light}
|
|
|
|
|
|
|
|
import math
|
|
|
|
|
|
|
|
;=====================================================================================
|
|
|
|
; EVENTS
|
|
|
|
;=====================================================================================
|
|
|
|
|
|
|
|
Event OnActivate(ObjectReference akActionRef)
|
|
|
|
|
|
|
|
if DoOnce == False
|
|
|
|
Self.Disable()
|
|
|
|
Self.DisableLinkChain()
|
|
|
|
DoOnce = True
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
if akActionRef == Game.GetPlayer()
|
|
|
|
|
|
|
|
_00E_MagicalSymbolsGlobalCollected.SetValue(_00E_MagicalSymbolsGlobalCollected.GetValueInt() + 1)
|
|
|
|
_00E_Levelsystem_MagicalSymbolCollected.Show(_00E_MagicalSymbolsGlobalCollected.GetValueInt(), 100)
|
|
|
|
_00E_MagicalSymbolSound.Play(Game.GetPlayer())
|
|
|
|
Self.GetLinkedRef().disable()
|
|
|
|
self.disable()
|
|
|
|
int EXPBonus = (_00E_MagicalSymbolsGlobalCollected.GetValueInt() * 2)
|
2024-01-05 18:38:04 +00:00
|
|
|
_00E_EPHandler.GiveEp(RewardExp+EXPBonus)
|
2021-10-05 22:15:58 +00:00
|
|
|
|
2024-01-10 00:46:13 +00:00
|
|
|
If _00E_MagicalSymbolsGlobalCollected.GetValueInt() == 100
|
2022-08-03 21:19:58 +00:00
|
|
|
Steam.UnlockAchievement("END_FETCHQUEST_01")
|
2021-10-05 22:15:58 +00:00
|
|
|
EndIf
|
|
|
|
|
|
|
|
endIf
|
|
|
|
|
|
|
|
endEvent
|
|
|
|
|
|
|
|
event OnLoad()
|
|
|
|
|
|
|
|
_00E_MagicLigthShader.play(self as objectReference)
|
|
|
|
|
|
|
|
endEvent
|
|
|
|
|
|
|
|
event OnUnload()
|
|
|
|
|
|
|
|
_00E_MagicLigthShader.stop(self as objectReference)
|
|
|
|
|
|
|
|
endEvent
|
|
|
|
|
|
|
|
;=====================================================================================
|
|
|
|
; PROPERTIES
|
|
|
|
;=====================================================================================
|
|
|
|
|
|
|
|
Int Property RewardExp auto
|
|
|
|
Bool DoOnce = false
|
|
|
|
|
|
|
|
GlobalVariable Property _00E_MagicalSymbolsGlobalCollected Auto
|
|
|
|
|
|
|
|
Sound Property _00E_MagicalSymbolSound Auto
|
|
|
|
|
|
|
|
Message Property _00E_Levelsystem_MagicalSymbolCollected Auto
|
|
|
|
|
2024-01-05 18:38:04 +00:00
|
|
|
EffectShader Property _00E_MagicLigthShader Auto
|