Difference between revisions of "Scripting MagicEffect"
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]] | ||
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. | |||
===Script=== | |||
<source lang="papyrus"> | <source lang="papyrus"> | ||
Scriptname aaaDynamicIncrementModule extends activemagiceffect | Scriptname aaaDynamicIncrementModule extends activemagiceffect | ||
ActorValue Property ActionPoints Auto Const | ActorValue Property ActionPoints Auto Const |