Difference between revisions of "Questions"
Jump to navigation
Jump to search
→OnCollide: my version, and Gamall, I know well what he's doing wrong, don't worry, I've got it covered, can I just get my edit in please?
imported>Gamall (edited at the same time ;)) |
imported>DragoonWraith (→OnCollide: my version, and Gamall, I know well what he's doing wrong, don't worry, I've got it covered, can I just get my edit in please?) |
||
Line 1,425: | Line 1,425: | ||
:::::[[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. | ||
:::::In the case of your bludgeoning stick, I'd create a magic script that goes on the stick's enchantment, and script it like this: | |||
<pre> | |||
scn BludgeoningStickHit | |||
Begin ScriptEffectStart | |||
SetUnconscious 1 | |||
End | |||
Begin ScriptEffectFinish | |||
SetUnconscious 0 | |||
End | |||
</pre> | |||
:::::Just make the enchantment last however long you want the target to remain unconscious. Do, however, read [[ScriptEffectFinish]] for some important warnings about it. | |||
-- [[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... | ::::::-- [[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 | ::::::To avoid that, create a spell that reads like that | ||
<pre> | <pre> | ||
Line 1,443: | Line 1,460: | ||
</pre> | </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... | ::::::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... | ||
[[User: | :::::::[[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:35, 22 July 2006 (EDT): You don't even need to use the ref var for what he wants to do, actually, since the entire script would just run on the target. |