Scriptname _00E_FS_MysticalSymbolSC extends ObjectReference import math ;===================================================================================== ; EVENTS ;===================================================================================== Event OnActivate(ObjectReference akActionRef) if DoOnce == False objLight.Delete() Self.Disable() DoOnce = True EndIf if akActionRef == Game.GetPlayer() _00E_FS_MysticalSymbolsGlobalCollected.SetValue(_00E_FS_MysticalSymbolsGlobalCollected.GetValueInt() + 1) _00E_FS_Levelsystem_MysticalSymbolCollected.Show(_00E_FS_MysticalSymbolsGlobalCollected.GetValueInt(), _00E_FS_MysticalSymbolsGlobalTotal.GetValueInt()) _00E_MagicalSymbolSound.Play(Game.GetPlayer()) objLight.Delete() self.disable() int EXPBonus = (_00E_FS_MysticalSymbolsGlobalCollected.GetValueInt() * 2) Levelsystem.GiveEp(RewardExp+EXPBonus) If _00E_FS_MysticalSymbolsGlobalCollected.GetValueInt() == 15 && _00E_AchievementsEnabled.GetValueInt() == 1 Steam.UnlockAchievement("END_FETCHQUEST_02") EndIf endIf endEvent event OnLoad() objLight = Self.PlaceAtMe(_00E_FS_MysticalSymbolLight) endEvent event OnUnload() objLight.Delete() endEvent ;===================================================================================== ; PROPERTIES ;===================================================================================== ObjectReference Property objLight Auto Hidden Int Property RewardExp auto Bool DoOnce = false _00E_QuestFunctions Property Levelsystem Auto GlobalVariable Property _00E_FS_MysticalSymbolsGlobalCollected Auto GlobalVariable Property _00E_FS_MysticalSymbolsGlobalTotal Auto GlobalVariable Property _00E_AchievementsEnabled Auto Light Property _00E_FS_MysticalSymbolLight Auto Sound Property _00E_MagicalSymbolSound Auto message Property _00E_FS_Levelsystem_MysticalSymbolCollected Auto