enderalse/source/scripts/_00e_a2_starlingdummysc.psc

65 lines
2.4 KiB
Plaintext
Raw Normal View History

Scriptname _00E_A2_StarlingdummySC extends ObjectReference
Import _00E_TalentLibrary
;=====================================================================================
; EVENTS
;=====================================================================================
Event OnInit()
iIndex = GetPlayerTalentLevel(_00E_Class_Vagabond_P09b_Talent_Starlingdummy, _00E_Class_Vagabond_P09b_Talent_Starlingdummy2, _00E_Class_Vagabond_P09b_Talent_Starlingdummy3)
Self.PlaceAtMe(_00E_FXDustExplosion, 1)
Utility.Wait(0.3)
StarlingSpider = Self.PlaceActorAtMe(_00E_A2_StarlingdummySpider, 1)
A2_Starlingdummy_SpiderAlias.ForceRefTo(StarlingSpider)
AdjustDebuffEnchantment()
AdjustPullSpell()
_00E_A2_StarlingdummyAggroSP.Cast(StarlingSpider, StarlingSpider)
EndEvent
;=====================================================================================
; FUNCTION
;=====================================================================================
Function AdjustPullSpell()
float iAggroRadius = _00E_A2_StarlingdummySP.GetNthEffectMagnitude(iIndex + 2) as Int
_00E_A2_StarlingdummyAggroSP.SetNthEffectArea(0, iAggroRadius as Int)
EndFunction
Function AdjustDebuffEnchantment()
float iDamagePercentageRaise = _00E_A2_StarlingdummySP.GetNthEffectMagnitude(iIndex - 1)
float iDamagePercentageRaiseDuration = _00E_A2_StarlingdummySP.GetNthEffectDuration(iIndex - 1) as Int
_00E_A2_StarlingdummyDebuffEnch.SetNthEffectMagnitude(0,iDamagePercentageRaise)
_00E_A2_StarlingdummyDebuffEnch.SetNthEffectDuration(0, iDamagePercentageRaiseDuration as Int)
EndFunction
;=====================================================================================
; PROPERTIES
;=====================================================================================
int iIndex
float iCounter
Actor StarlingSpider
Actorbase Property _00E_A2_StarlingdummySpider Auto
Spell Property _00E_A2_StarlingdummySP Auto
Spell Property _00E_A2_StarlingdummyAggroSP Auto
Perk Property _00E_Class_Vagabond_P09b_Talent_Starlingdummy Auto
Perk Property _00E_Class_Vagabond_P09b_Talent_Starlingdummy2 Auto
Perk Property _00E_Class_Vagabond_P09b_Talent_Starlingdummy3 Auto
Explosion Property _00E_FXDustExplosion Auto
Enchantment Property _00E_A2_StarlingdummyDebuffEnch Auto
ReferenceAlias Property A2_Starlingdummy_SpiderAlias Auto