Difference between revisions of "Teleport Recall"

28 bytes added ,  19:29, 10 January 2008
m
imported>Wrye
(→‎Marker Rats: Living rats)
imported>Qazaaq
 
(One intermediate revision by one other user not shown)
Line 24: Line 24:
     endif
     endif
end</pre>
end</pre>
To use this, you would also need to define the exTeleport2G global (a short with initial value of 0). You'll also need the casting spell which uses this spell effect script. The duration of the script effect should be at least one second to give the moveTo in the scripteffectstart time to complete. Finally, you'll need the marker references (exTeleport2Ref0 and exTeleport2Ref1). Previously, these were usually defined as instances of the static XMarker, but there are problems with these -- you should use a [[#MarkerRats|marker creature]] instead.
To use this, you would also need to define the exTeleport2G global (a short with initial value of 0). You'll also need the casting spell which uses this spell effect script. The duration of the script effect should be at least one second to give the moveTo in the scripteffectstart time to complete. Finally, you'll need the marker references (exTeleport2Ref0 and exTeleport2Ref1). Previously, these were usually defined as instances of the static XMarker, but there are problems with these -- you should use a [[#Marker_Rats|marker creature]] instead.


===Variations===
===Variations===
Line 57: Line 57:
* Name the reference (e.g., exTeleport2Ref0) and set it to initially disabled.
* Name the reference (e.g., exTeleport2Ref0) and set it to initially disabled.
* Use reference in scripts as described above.
* Use reference in scripts as described above.
[[Category: Useful Code]]
Anonymous user