Enderal SE https://mod.pub/enderal-se/38-enderal-se
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.
48 lines
1.5 KiB
48 lines
1.5 KiB
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 |