Condition to Exclude effects from AlchemyEnchanting?

Post » Thu Jun 21, 2012 5:12 am

Still kinda stumped on this one -- asked in the quick questions thread but no luck, so I'll try here. Does anyone know what the proper condition would be to use to exclude enchanting/alchemy effects from spellpower boosts? I've tried IsScenePlaying(WICraftItem01/02Scene), checking for IsEnchanting/IsAlchemy, and checking for WICraftingAlchemy/Enchanting. None of these seem to work, although it's entirely possible I'm just running them on the wrong targets (although I feel like I've tried all possible permutations). If it matters, I'm trying to check in two places for two different mod features -- one is on a Perk that does a ModSpellMagnitude, and the other is in the enchanting effects themselves (EnchFortifyDestructionConstantSelf, for instance). This really seems like it should be something simple, but it's stumping me.
User avatar
Damien Mulvenna
 
Posts: 3498
Joined: Wed Jun 27, 2007 3:33 pm

Post » Thu Jun 21, 2012 4:09 am

what conditions did you put on your ModSpellMagnitude? I think all the vanilla perks that use it have HasKeyword conditions (so they're very specific in what spells they affect)
User avatar
Abi Emily
 
Posts: 3435
Joined: Wed Aug 09, 2006 7:59 am

Post » Thu Jun 21, 2012 2:02 am

what conditions did you put on your ModSpellMagnitude? I think all the vanilla perks that use it have HasKeyword conditions (so they're very specific in what spells they affect)

I've tried pretty much all the ones named above + some others. The vanilla perks are puzzling...take Augmented Flames, for instance. The Augmented Flames perk checks to make sure that Spell Subject EPMagic_SpellHasKeyword is "MagicDamageFire", which *somehow* affects only fire spells, not fire enchantments, despite the fact that the fire enchantment effect also has the keyword MagicDamageFire. In fact, if I copy that same condition over to my new perk, it has a different effect -- enchantments *are* affected, in addition to spells. So the distinction between spells and enchantments must be done somewhere else in the CK and it must be getting filtered out there instead. Where though, I have no idea.
User avatar
Kay O'Hara
 
Posts: 3366
Joined: Sun Jan 14, 2007 8:04 pm

Post » Wed Jun 20, 2012 9:37 pm

Eureka! I think I finally figured this out. Since this took me a solid 2 days to get, I'm guessing that at some point someone else will want to do it, so here's how I did it.

Go to FormList (Under Misc in the CK), duplicate one of the lists there, rename it, empty it out. Then go to Magic Effects, highlight every Ench effect there, drag them all into the FormList. Then in the perk, under Spell conditions, check the Target for IsInList and find the list you just made. Voila!

Took me all of 3 minutes to do once I knew how. Funny how that works.


Sad Edit: Nope, nope. I was wrong. This has the same drawback as the other method that "worked" before. It's just returning a 1 so it's always excluding everything, not just Enchants/Potions. Sigh.
User avatar
Josh Dagreat
 
Posts: 3438
Joined: Fri Oct 19, 2007 3:07 am

Post » Thu Jun 21, 2012 1:36 am

Quick and dirty temp solution:

Scriptname EnchFurnitureScript extends ObjectReferenceGlobalVariable Property IsEnchanting AutoEvent OnActivate(ObjectReference akActionRef)    if (akActionRef == Game.GetPlayer())        IsEnchanting.SetValue(1.0)        RegisterForSingleUpdate(5)    endifEndEventEvent OnUpdate()    if (IsFurnitureInUse())        RegisterForSingleUpdate(5)    else        IsEnchanting.SetValue(0.0)    endifEndEvent
User avatar
Tha King o Geekz
 
Posts: 3556
Joined: Mon May 07, 2007 9:14 pm

Post » Thu Jun 21, 2012 4:47 am

Quick and dirty temp solution:

Great idea, assuming I'm understanding it. ;) Let me make sure I'm following...that script gets attached to the enchanting table furniture item and just sets the global flag IsEnchanting to 1 for as long as the table is in use, correct? And then what condition function do I use in the perk to check IsEnchanting?
User avatar
Robyn Lena
 
Posts: 3338
Joined: Mon Jan 01, 2007 6:17 am

Post » Wed Jun 20, 2012 11:51 pm

http://www.creationkit.com/GetGlobalValue IsEnchanting == 0
User avatar
Melis Hristina
 
Posts: 3509
Joined: Sat Jun 17, 2006 10:36 pm

Post » Thu Jun 21, 2012 6:25 am

I kept banging my head on the desk trying to figure out why this wouldn't work -- it seemed to exclude alchemy/enchanting from getting the bonus, but was also excluding everything else too. And then, in a flash of doh!-like inspiration, I realized: I kept going into the menu to check the values for the other spells immediately after using the enchanting table. It takes a few seconds for IsEnchanting to evaluate to false again. Whoops.

Thanks a ton, RandomNoob. I had really been struggling with this.
User avatar
Sarah Unwin
 
Posts: 3413
Joined: Tue Aug 01, 2006 10:31 pm


Return to V - Skyrim