Electric water

Post » Mon Nov 28, 2011 3:21 pm

Is it possible to make it when you cast a spell that uses electricity on water to shock you or anything in it? Like maybe stun you or hurt you depending onbthe spell
User avatar
Maeva
 
Posts: 3349
Joined: Mon Mar 26, 2007 11:27 pm

Post » Tue Nov 29, 2011 2:43 am

I would doubt it. The only thing I could suggest is to make it have to do with the Z axis and somehow spread the effect so far.
User avatar
Sabrina garzotto
 
Posts: 3384
Joined: Fri Dec 29, 2006 4:58 pm

Post » Mon Nov 28, 2011 11:00 pm

AFAIK :
there's no way to detect which effects are in a on touch / on target spell that you're casting without placing a creature in front of the PC and checking the effects on it, so it doesn't seem very doable for shock spells that don't affect the player.

You can detect if the player is swimming (I think the code patch fixes potential water level errors?) so you could have additional effects when the player (or a specific creature or NPC, specific as in you've attached a script to it) is swimming and affected by shock damage. That much is easy.


I think with the script extender it's possible to detect what the player is aiming at when casting a spell, and if it's a creature or NPC, check if it's swimming and then check if it has shock effects on it, and from there add whatever effects you want.

Adding electricity propagation to any possible water area (without having aimed specifically at some actor inside the water) ... hard. Maybe by spawning (same way Water Life does it with fishes) a saturation of small invisible creatures in water ? With an exception for a bubble around the player, so weapon hits in water aren't intercepted by them... ?
User avatar
rolanda h
 
Posts: 3314
Joined: Tue Mar 27, 2007 9:09 pm

Post » Mon Nov 28, 2011 5:21 pm

Have a script lying around I have for similar thing, tho my water is under elecricity all the time which I doubt would help you much..
User avatar
Jennifer Rose
 
Posts: 3432
Joined: Wed Jan 17, 2007 2:54 pm

Post » Mon Nov 28, 2011 2:18 pm

Ok thanks
User avatar
no_excuse
 
Posts: 3380
Joined: Sun Jul 16, 2006 3:56 am


Return to III - Morrowind