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

m
no edit summary
imported>Vaelissa
imported>Vaelissa
m
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, 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.


==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
Anonymous user