Constant Effect That Drains Magicka?

Post » Mon Jun 18, 2012 2:42 am

I'm trying to create a custom spell of sorts that will continue to drain the magicka of the player until he either toggles the spell off or until the player runs out of magicka. Right now I'm trying some fairly ridiculous code to make it happen but I'm wondering if there is a built in spell type within the game that can make this happen. (The magic drain portion, I can handle the toggling myself.)

Any help appreciated.
User avatar
Kayla Bee
 
Posts: 3349
Joined: Fri Aug 24, 2007 5:34 pm

Post » Mon Jun 18, 2012 12:12 pm

Untested, but I suppose you can just create a copy of "AlchDamageMagickaDuration" (Lingering Damage Magicka) that does NOT check for poison resistance.
User avatar
Jhenna lee Lizama
 
Posts: 3344
Joined: Wed Jun 06, 2007 5:39 am

Post » Mon Jun 18, 2012 9:06 am

The problem with constant effect damaging spells is sometimes they get stuck on and you can't wait or fast travel
See AbDamageHealthConstant, you can just dup that and change the AV to magicka
User avatar
Jessica Colville
 
Posts: 3349
Joined: Wed Oct 18, 2006 6:53 pm

Post » Mon Jun 18, 2012 8:32 am

Just talked to the guys in the steam group. I can apparently create a copy of the "damage health" constant effect and change it to magicka. Going to check in a minute and see if that works.

EDIT: Yeah fowl just suggested the same thing, so we'll see how it works!
User avatar
Astargoth Rockin' Design
 
Posts: 3450
Joined: Mon Apr 02, 2007 2:51 pm

Post » Mon Jun 18, 2012 7:48 am

Seems to be working, great. Now I just need to make it end early in the event the player runs out of mana.
User avatar
Eliza Potter
 
Posts: 3481
Joined: Mon Mar 05, 2007 3:20 am

Post » Mon Jun 18, 2012 11:10 am

@delfofthebla, based on your OP, you are using this effect in a spell, correct? I'm trying to do the same thing with an item enchantment, but it doesn't seem to work. Any ideas?
User avatar
jaideep singh
 
Posts: 3357
Joined: Sun Jul 08, 2007 8:45 pm

Post » Mon Jun 18, 2012 7:48 am

@delfofthebla, based on your OP, you are using this effect in a spell, correct? I'm trying to do the same thing with an item enchantment, but it doesn't seem to work. Any ideas?

I don't really know, I haven't messed with echantments yet. But yes, I am using this as a magic effect, and I basically just copied the damage health effect and switched it's variable over to magicka. If there is a similar effect for an enchantment, I'd recommend you do the same.
User avatar
Nicole Mark
 
Posts: 3384
Joined: Wed Apr 25, 2007 7:33 pm


Return to V - Skyrim