Difference between revisions of "Distinguishing Between Physical and Magickal Hits"
Jump to navigation
Jump to search
imported>Diablerie m (How to determine what hit an actor? moved to How to distinguish between weapon and spell hits?) |
Tag: Manual revert |
||
(6 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{Unfinished}} | |||
To determine whether an attack upon a trigger or NPC is either physical or magical, the following script should be used: | |||
<pre> | <pre> | ||
Line 47: | Line 15: | ||
</pre> | </pre> | ||
The [[Return]] command terminates the entire script, and not just the block that it's called from. This can be used to have one trigger override another if they are triggered at the same time. | |||
[[Category: | [[Category:Useful Code]] | ||
[[Category:Solutions]] |
Latest revision as of 15:40, 21 December 2023
Article Is Unfinished
This article has been marked by editors or authors as incomplete. Please see the Talk page for details. Discussion and collaboration can improve an article and lead to a better Wiki.
To determine whether an attack upon a trigger or NPC is either physical or magical, the following script should be used:
scriptname WeaponHitScript begin OnMagicEffectHit return end begin OnHit Player <do stuff...> end
The Return command terminates the entire script, and not just the block that it's called from. This can be used to have one trigger override another if they are triggered at the same time.