Difference between revisions of "Talk:Cast - Spell"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Vapid
imported>Cscottydont
Line 2: Line 2:
Magnitude of the spell will also benefit from skill level of the caster (maybe from active magic effects too?).  Tested with a destruction spell which had 10 magnitude in the ck, which did 15 damage coming from my 90 Destruction level character.<br>
Magnitude of the spell will also benefit from skill level of the caster (maybe from active magic effects too?).  Tested with a destruction spell which had 10 magnitude in the ck, which did 15 damage coming from my 90 Destruction level character.<br>
[[User:Cscottydont|Cscottydont]] 06:03, 19 February 2012 (EST)
[[User:Cscottydont|Cscottydont]] 06:03, 19 February 2012 (EST)
:Spells that are script-Cast with the player as the akSource will benefit from perks relevant to the spell being cast.<br>
:e.g. If FireSpell is a 100 magnitude spell with MagicDamageFire as a keyword,<br>
:<source lang="papyrus">FireSpell.Cast(ObjectReference akSource, ObjectReference akTarget)</source>
:^ will do 150 damage to akTarget if akSource has both augmented flames perks.<br>
:[[User:Cscottydont|Cscottydont]] 07:28, 3 March 2012 (EST)

Revision as of 07:28, 3 March 2012

Spells cast using this method will use conditionals defined for their effects with akSource as the caster. This was something I was curious about so I tested it. (not extensively but I was able to fire 2 different debug messages based on whether or not the player had a specific ability)
Magnitude of the spell will also benefit from skill level of the caster (maybe from active magic effects too?). Tested with a destruction spell which had 10 magnitude in the ck, which did 15 damage coming from my 90 Destruction level character.
Cscottydont 06:03, 19 February 2012 (EST)

Spells that are script-Cast with the player as the akSource will benefit from perks relevant to the spell being cast.
e.g. If FireSpell is a 100 magnitude spell with MagicDamageFire as a keyword,
FireSpell.Cast(ObjectReference akSource, ObjectReference akTarget)
^ will do 150 damage to akTarget if akSource has both augmented flames perks.
Cscottydont 07:28, 3 March 2012 (EST)