Magic Effects triggering despite Conditions

Post » Tue Jun 19, 2012 12:57 pm

I have an Enchantment which has a bunch of Magic Effects attached to it. Each Magic Effect is only allowed to have its effect apply on strike under certain conditions.

However, even when the effect shouldn't apply it still plays the Explosion and so forth as defined in that effect. Is there any way to prevent this from occurring?


e.g. a Magic Effect has Fire Storm Explosion set for its Explosion and in the enchantment's Effect Item Conditions: GetEquippedShout "FireBreath" == 1.

However, if I have, say, Unrelenting Force equipped then it still plays the Explosion effect.
User avatar
JeSsy ArEllano
 
Posts: 3369
Joined: Fri Oct 20, 2006 10:51 am

Post » Tue Jun 19, 2012 10:15 am

I think, though I am not sure, that you should be able to disable the Explosion from the spell and place it via script whenever you want.
User avatar
Richus Dude
 
Posts: 3381
Joined: Fri Jun 16, 2006 1:17 am

Post » Tue Jun 19, 2012 6:05 am

You should probably post your code up to get more help.
User avatar
Carlitos Avila
 
Posts: 3438
Joined: Fri Sep 21, 2007 3:05 pm

Post » Tue Jun 19, 2012 6:40 am

You should probably post your code up to get more help.

I don't think he's got any code. This is simply the way MGEFs work in some cases. The non HIT event shaders still trigger but the effect (say health dmg) isn't applied if the evaluation isn't true. for instance I tried to modify Drain health to only work when sneaking. That being said, are you applying the condition to the Enchantment's effect use, or to the Effect itself? I think, if memory serves, either way still failed for me. Another sample of this is a spell done as ability that drains health with a condition in the spell to only apply when the player is, say...swimming. The game engine still evaluates that the player is taking damage and won't let them fast travel even though they aren't swimming, and more specifically, aren't taking damage.

I agree you're probably going to have to do some scripting to handle this creatively.
  • Create a spell for each of the effects
  • Create a dummy effect which uses a script
  • Have the script check for those conditions and cast the appropriate spell on the target
  • Have the enchantment use the dummy effect
-MM
User avatar
kennedy
 
Posts: 3299
Joined: Mon Oct 16, 2006 1:53 am


Return to V - Skyrim