Making an object destroyable only when a certain damage type

Post » Mon Nov 19, 2012 12:28 pm

I'm including a puzzle in my mod involving that flammable gas you see in some dungeons- basically, what I want to happen, is when the flames are lit, a nearby cave wall is destroyed, revealing a new passage.

However, the problem is, I can't seem to do this using the object's Destruction Data. It seems, as long as any damage at all is done to it, that passageway is going to be revealed.

How can I make it so the Destruction Data for my wall only recognises the flammable gas fireball effect?
User avatar
Sanctum
 
Posts: 3524
Joined: Sun Aug 20, 2006 8:29 am

Post » Mon Nov 19, 2012 6:07 am

Try this:

Spoiler
Scriptname MagicCaveWallScript extends ObjectReference ConditionalMagicEffect Property FlammableGasEffect  AutoEvent OnMagicEffectApply(ObjectReference Caster, MagicEffect SpellEffect)if (SpellEffect == FlammableGasEffect)  ;remove wallendifEndEvent

by the way, how do you remove this wall?
User avatar
ANaIs GRelot
 
Posts: 3401
Joined: Tue Dec 12, 2006 6:19 pm

Post » Mon Nov 19, 2012 2:43 pm

by the way, how do you remove this wall?

I was just going to use the destruction data to change its model, but this script would probably work better if I just disable/enabled the "before" and "after" walls.

Anyway, thanks!
User avatar
Juan Cerda
 
Posts: 3426
Joined: Thu Jul 12, 2007 8:49 pm


Return to V - Skyrim