Difference between revisions of "Effect Item"

2,049 bytes added ,  25 April
imported>DavidJCobb
(→‎Notes: some weird optimizations on concentration spells; I really don't get why they're needed, and they're definitely really difficult to work around)
 
(9 intermediate revisions by 2 users not shown)
Line 15: Line 15:
== Notes ==
== Notes ==
* Conditions are usually checked every second of gameplay. However, concentration spells only appear to check their effects' conditions once, when the spell is first cast.
* Conditions are usually checked every second of gameplay. However, concentration spells only appear to check their effects' conditions once, when the spell is first cast.
** Consider the case of two cloak effects that both trigger the same concentration spell. If an actor makes an uninterrupted switch from using one cloak effect to using the other, the concentration spell will only check its conditions once (at the start of the first cloak).
** Additionally, consider the case of two cloak effects that both trigger the same concentration spell. If an actor makes an uninterrupted switch from using one cloak effect to using the other, the concentration spell will only check its conditions once (at the start of the first cloak). The implication here is that you cannot force (or fake) condition re-checking by alternating between two identical cloaks sharing the same concentration spell.
** However, it ''appears'' that a concentration spell's magic effects are individually reapplied every second, at least when the concentration spell is triggered by a cloak effect. Conditions effectively work backwards in this case: the magic effect conditions run once per second, while the spell conditions run at cast start.
*** Note that while the effects are reapplied every second, their shaders are not. Flags like FX Persist are still needed.
* Conditions are not acted upon until they are all checked. If a magic effect's conditions return false, the effect will not be deactivated until all other effects from the same spell have been checked.
** Consider a spell whose first magic effect applies a perk to the subject by way of ''Perk to Apply'', and whose second magic effect tests for that very perk. When conditions are checked, if the first magic effect's conditions fail, it will be ''queued'' to deactivate, but it will still be active (and the perk will therefore still be applied) when the second magic effect's conditions are checked next. Once all effects in the spell are checked, the first effect will then deactivate, and its perk will be removed.
* If a magic effect is active for a long enough time, it will [[Active effect time imprecision bug|stop updating both its conditions and its elapsed time]]. Among other things, this means that it is impossible to make a long-lasting temporary effect on the order of multiple days: due to this bug, the elapsed time will stop updating before the duration is reached, making the effect endless outside of specific circumstances.
*There appears to be an effective limit of 15 Effect Items to an Effects List. If more than 15 effects are attached to a single spell, enchantment, potion, or scroll, the 16th effect onwards may fail to apply regardless of whatever conditions for its application return true.


{{Languages|Effect Item}}
{{Languages|Effect Item}}
[[Category:Magic]]
[[Category:Magic]]
22

edits