Difference between revisions of "How To Create A Custom NPC Summoning Spell"

Fixed 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 choose for your [[NPC]] in the [[Edit]] box will have an alphanumeric code associated with it where it says Base Object, it will look something like ‘namehere’ (01000EDC). Replace "NPCRefHere" with the reference, sans the quotes around its name.
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.moveto CellNameHere 0 0 10
           NPCRefHere.PositionCell 0 0 10 0 CellNameHere
;Deactivates global quest
;Deactivates global quest
             set SirenCount to 0
             set SirenCount to 0
Anonymous user