Difference between revisions of "Casting Spells From An Activator"

no edit summary
imported>Nixlplix
imported>Darkness X
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{FeatNom}}
{{FeatNom}}
Casting Spells from an Activator
This is a short tutorial on how to use activators to cast spells. This will allow you to create more complicated spell effects such as lightning strikes or point blank area of effect spells.[[Image:CallLightning01.jpg|thumb|200px|The script you will be creating]]
 
[[Image:CallLightning03.jpg|thumb|200px|Another view]]
This is a short tutorial on how to use activators to cast spells. This will allow you to create more complicated spell effects such as lightning strikes or point blank area of effect spells.


By the end of this tutorial you should have a working point blank AoE lightning strike spell.
By the end of this tutorial you should have a working point blank AoE lightning strike spell.


[[Image:CallLightning01.jpg|thumb|200px|The spell you will be creating]]
==What you need== {{Tools|req0=[[The Elder Scrolls Construction Set|Construction Set]]|opt0=[[OBSE]]}}
[[Image:CallLightning03.jpg|thumb|200px|Another view]]
 
==What you need==
During this tutorial we will be creating the following:
During this tutorial we will be creating the following:
*1 activator object
*1 activator object
Line 64: Line 60:
;get a reference to the caster
;get a reference to the caster
set me to GetSelf
set me to GetSelf
        ;set the reference to the activator
        set source to YourActivatorsReferenceEditorID


;add 200 to the height so it is above the actor
;add 200 to the height so it is above the actor
Line 87: Line 86:
;get a reference to this actor
;get a reference to this actor
set me to GetSelf
set me to GetSelf
        ;set source to the activator
        set source to YourActivatorsReferenceEditorID


;add 1000 to the height to simulate lightning coming from the sky
;add 1000 to the height to simulate lightning coming from the sky
Line 137: Line 139:


==Caveats==
==Caveats==
*This spell will hit the player as well as everyone around him. This may or may not be what you want. A simple if check in the TutCallLightningAoeSpellScript will prevent the spell from hitting the player:
*This spell will hit the player as well as everyone around him. This may or may not be what you want. A simple if check directly below the <tt>'''Begin ScriptEffectStart'''</tt> line in the TutCallLightningAoeSpellScript will prevent the spell from hitting the player:
<pre>
<pre>
...
...
Anonymous user