Difference between revisions of "Questions"

Jump to navigation Jump to search
650 bytes added ,  15:29, 22 July 2006
→‎OnCollide: no no no : Scripted SPELL effect on the weapon
imported>DragoonWraith
(→‎OnCollide: clarifying how scripted enchantments work)
imported>Gamall
(→‎OnCollide: no no no : Scripted SPELL effect on the weapon)
Line 1,424: Line 1,424:
</pre>
</pre>
:::::[[User:DragoonWraith|<font face="Oblivion,Daedric Runes" size=3>D</font>ragoon <font face="Oblivion,Daedric" size=3>W</font>raith]] [[User_talk:DragoonWraith|<font face="Oblivion,Daedric" size=2>TALK</font>]] 15:25, 22 July 2006 (EDT): You misunderstand how scripted enchantments work (as do many people, much to my confusion). The scripts do not run on the weapon, they run on the thing that the weapon '''hits'''. Think about it - does a weapon enchanted with Damage Weapon break itself? No, it breaks ''the target's'' weapon. Enchanted weapons cause the effect they're enchanted with to be transferred to the target - no matter what the effect is. In the case of Scripted Effect, it causes the script to run on the target. The GetSelf would return the target's reference.
:::::[[User:DragoonWraith|<font face="Oblivion,Daedric Runes" size=3>D</font>ragoon <font face="Oblivion,Daedric" size=3>W</font>raith]] [[User_talk:DragoonWraith|<font face="Oblivion,Daedric" size=2>TALK</font>]] 15:25, 22 July 2006 (EDT): You misunderstand how scripted enchantments work (as do many people, much to my confusion). The scripts do not run on the weapon, they run on the thing that the weapon '''hits'''. Think about it - does a weapon enchanted with Damage Weapon break itself? No, it breaks ''the target's'' weapon. Enchanted weapons cause the effect they're enchanted with to be transferred to the target - no matter what the effect is. In the case of Scripted Effect, it causes the script to run on the target. The GetSelf would return the target's reference.
-- [[User:Gamall|Gamall]] 15:29, 22 July 2006 (EDT) No no no, I said a "scripted spell effect", no "a script on the weapon". As far as I know, you can't do that from the weapon. And yes, used like that, GetSelf ''will'' yield ref to the weapon...
To avoid that, create a spell that reads like that
<pre>
scn blahScript
ref Target
Begin ScriptEffectStart
  set Target to GetSelf
  ; do whatever you want with your target ref
End
</pre>
and enchant your weapon with it. It will run on any actor your weapon hits. Oh, and make sure to tick the "disallow Spell Reflect/Absorb" and "Script Effect Always Applies" to avoid unpleasant surprises...
Anonymous user

Navigation menu