Difference between revisions of "Scripting MagicEffect"

180 bytes removed ,  02:05, 7 November 2016
m
removed user names and moved some script comments to the wiki page.
imported>Mr6
m
imported>Qazaaq
m (removed user names and moved some script comments to the wiki page.)
Line 1: Line 1:
[[Category:Scripting_Guides]]
[[Category:Scripting_Guides]]


A page for example scripts for scripts attached to Magic Effects in Fallout 4.
This example script can be attached to a Magic Effect and create a looping incremental effect
 
that will increment for the entire duration of the effect, and then either stop or be removed, depending on user preference.
 
ActionPoints are used here, but any ActorValue - including custom ones - can be applied.
==Example Script: Looping Increment==
 


===Script===
<source lang="papyrus">
<source lang="papyrus">
Scriptname aaaDynamicIncrementModule extends activemagiceffect
Scriptname aaaDynamicIncrementModule extends activemagiceffect
; This example script can be attached to a Magic Effect and create a looping incremental effect
; that will increment for the entire duration of the effect, and then either stop or be
; removed, depending on user preference.
; By aib, bugs tackled by Nexus kinggath - him, 1, OnTimer, 0
; ActionPoints are used here, but any ActorValue - including custom ones - can be applied.


ActorValue Property ActionPoints Auto Const
ActorValue Property ActionPoints Auto Const
Anonymous user