Difference between revisions of "How To Create A Custom NPC Summoning Spell"
How To Create A Custom NPC Summoning Spell (edit)
Revision as of 17:07, 10 May 2013
, 17:07, 10 May 2013Fixed the script - MoveTo >> PositionCell
imported>Vaelissa |
imported>QQuix (Fixed the script - MoveTo >> PositionCell) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 35: | Line 35: | ||
If your summon is a creature, you can go to the Ownership tab and select Player under NPC.Doing this will prevent it from attacking you should you hit it a few times. | If your summon is a creature, you can go to the Ownership tab and select Player under NPC.Doing this will prevent it from attacking you should you hit it a few times. | ||
In regards to "NPCRefHere" in the script, the ID you | In regards to "NPCRefHere" in the script, replace it with the Reference Editor ID you chose for your [[NPC]]. | ||
==Step Four: Creating the Script== | ==Step Four: Creating the Script== | ||
Line 41: | Line 41: | ||
* Go to the Gameplay menu, select edit scripts and create a new script and name it it, I called mine aaasirenspelldp. | * Go to the Gameplay menu, select edit scripts and create a new script and name it it, I called mine aaasirenspelldp. | ||
Paste this in and edit it accordingly, you should recongnize the names used. | Paste this in and edit it accordingly, you should recongnize the names used. | ||
<pre>Begin ScriptEffectStart | <pre> | ||
Scriptname aaaSirenspelldp | |||
Begin ScriptEffectStart | |||
;You can edit the numbers to change where it appears relative to the player. | ;You can edit the numbers to change where it appears relative to the player. | ||
NPCRefHere.moveto player 30 30 10 | NPCRefHere.moveto player 30 30 10 | ||
Line 54: | Line 57: | ||
;This moves the NPC back to where it was. | ;This moves the NPC back to where it was. | ||
;Edit the line below and change the cell name to the one your NPC was placed in. | ;Edit the line below and change the cell name to the one your NPC was placed in. | ||
NPCRefHere. | NPCRefHere.PositionCell 0 0 10 0 CellNameHere | ||
;Deactivates global quest | ;Deactivates global quest | ||
set SirenCount to 0 | set SirenCount to 0 |