Difference between revisions of "Talk:Portal:Scripting"

Jump to navigation Jump to search
305 bytes added ,  21:06, 18 August 2010
→‎Script Question: reply, question
imported>DragoonWraith
imported>Arch-Mage Matt
(→‎Script Question: reply, question)
Line 84: Line 84:
:Oh, also, you don't need to use <tt>Necromancer.Resurrect</tt> (and in any case I'd recommend a more unique EditorID, but that's probably just my history modding ''Morrowind'' talking) - assuming this script is attached to the Necromancer (which it must be for <tt>[[OnDeath]]</tt> to work correctly), you can just use [[Resurrect|<tt>Resurrect 1</tt>]] (you need the 1 to have him play the animation of sitting up; not doing so causes a crash IIRC), without the <tt>Necromancer.</tt> part. This is because functions always assume the reference they're attached to if none is given.
:Oh, also, you don't need to use <tt>Necromancer.Resurrect</tt> (and in any case I'd recommend a more unique EditorID, but that's probably just my history modding ''Morrowind'' talking) - assuming this script is attached to the Necromancer (which it must be for <tt>[[OnDeath]]</tt> to work correctly), you can just use [[Resurrect|<tt>Resurrect 1</tt>]] (you need the 1 to have him play the animation of sitting up; not doing so causes a crash IIRC), without the <tt>Necromancer.</tt> part. This is because functions always assume the reference they're attached to if none is given.
:[[User:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">D</span>ragoon <span style="font-family: Oblivion, Daedric Runes; size=2;">W</span>raith]] [[User_talk:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">TALK</span>]] 00:17, 5 August 2010 (EDT)
:[[User:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">D</span>ragoon <span style="font-family: Oblivion, Daedric Runes; size=2;">W</span>raith]] [[User_talk:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">TALK</span>]] 00:17, 5 August 2010 (EDT)
::Late reply, but thanks. I was just using ''Necromancer'' as an example because I wasn't sure of a name for him yet.
::But I have another question: Is there anywhere on the site where I can find a good, simple, inventory share on a specific NPC? Thanks again. --[[User:Arch-Mage Matt|Arch-Mage Matt]]

Navigation menu