enderalse/source/scripts/_00e_fs_mq18c_dreamflowersc.psc

48 lines
1.5 KiB
Plaintext
Raw Normal View History

Scriptname _00E_FS_MQ18c_DreamflowerSC extends activemagiceffect
;=====================================================================================
; EVENTS
;=====================================================================================
Event OnEffectStart(Actor akTarget, Actor akCaster)
AddDreamflowerEffect()
EndEvent
;=====================================================================================
; FUNCTIONS
;=====================================================================================
Function AddDreamflowerEffect()
if !bCleaned
_00E_FS_DreamflowerConsumed.SetValueInt(1)
EndIf
PlayerREF.AddSpell(_00E_Ab_DreamflowerTrait)
MAGPowerRacialHitskinM.Play(PlayerREF)
_00E_FS_NQ01_EventualityShiftIMOD.Apply()
If _00E_AchievementsEnabled.GetValueInt() == 1
Game.UnlockAchievement("END_DREAMFLOWER_01")
EndIf
EndFunction
;=====================================================================================
; PROPERTIES
;=====================================================================================
bool Property bCleaned Auto
Actor Property PlayerREF Auto
GlobalVariable Property _00E_FS_DreamflowerConsumed Auto
GlobalVariable Property _00E_AchievementsEnabled Auto
ImageSpaceModifier Property _00E_FS_NQ01_EventualityShiftIMOD Auto
Sound Property MAGPowerRacialHitskinM Auto
Spell Property _00E_Ab_DreamflowerTrait Auto