45 lines
1.4 KiB
Plaintext
45 lines
1.4 KiB
Plaintext
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()
|
|
|
|
Steam.UnlockAchievement("END_DREAMFLOWER_01")
|
|
|
|
EndFunction
|
|
|
|
;=====================================================================================
|
|
; PROPERTIES
|
|
;=====================================================================================
|
|
|
|
bool Property bCleaned Auto
|
|
|
|
Actor Property PlayerREF Auto
|
|
|
|
GlobalVariable Property _00E_FS_DreamflowerConsumed Auto
|
|
|
|
ImageSpaceModifier Property _00E_FS_NQ01_EventualityShiftIMOD Auto
|
|
|
|
Sound Property MAGPowerRacialHitskinM Auto
|
|
|
|
Spell Property _00E_Ab_DreamflowerTrait Auto |