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

Fixed the script - MoveTo >> PositionCell
imported>Vaelissa
m
imported>QQuix
(Fixed the script - MoveTo >> PositionCell)
 
(One intermediate revision by the same user 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. If this doesn't work, simple try using its Reference Editor ID.
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 57: 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