FO4EditTESVEdit - 'AND' & 'OR' for Perk Conditions

Post » Thu Nov 26, 2015 11:04 am

I'm trying to fix the perk 'Ninja' for my mod Simple Bug Fixes. It reads as thus: Trained as a shadow warrior, your ranged sneak attacks do 2.5x normal damage and your melee sneak attacks do 4x normal damage.

However it is not applying any bonus to 2H melee weapons and only the partial bonus to Unarmed. I know what I need to do to fix it, however doing it properly is what I'm getting hung up on.

Keeping everything contained within the same perk condition subset like this must clearly mean 'AND', essentially what this is saying is 'if the player does NOT have Ninja 2 AND the weapon is NOT 1H Melee AND the weapon is NOT 2H Melee, add this much to sneak attack' (this would be the lower amount that the perk can get): https://i.imgur.com/GYHVS89.png

However, when we're talking about the main part of the perk, here's where it gets confusing: https://i.imgur.com/7GXztp7.png

If it's supposed to mean 'the player does NOT have Ninja 2 AND the weapon is 1H Melee, add this much to sneak attack'' then wouldn't they be within the same perk condition like the previous example instead of separate ones? It seems to be saying 'The user is using a one handed weapon OR doesn't have Ninja 2.'

But maybe both of these structures mean 'AND' and it's just another way of doing it. So if that's the case, how do you do an 'OR'?

Very confusing. If anyone knows please respond.

User avatar
Your Mum
 
Posts: 3434
Joined: Sun Jun 25, 2006 6:23 pm

Post » Thu Nov 26, 2015 11:12 am

From what I can see and remember from lightly modding skyrim, condition within the same subset are AND, otherwise it's OR.

I think sneak attack are meant to 3.0X for melee without the ninja perk. Try sneak attacking with a 1h weapon without the ninja, you'll have 3.0X sneak attack multiplier. The ninja02 check is for ranged weapons and augmenting the multiplier for melee.

I can't test it right now (at work), but it seems consistent with the perk itself ( why would the lvl 1 add 2.0X sneak attack multiplier, and lvl 2 only 1.0X).

User avatar
Sudah mati ini Keparat
 
Posts: 3605
Joined: Mon Jul 23, 2007 6:14 pm

Post » Thu Nov 26, 2015 5:03 am

Both multipliers have the ninja02 check, though.

User avatar
Rachyroo
 
Posts: 3415
Joined: Tue Jun 20, 2006 11:23 pm

Post » Thu Nov 26, 2015 5:10 pm

Okay, I see what's going on here. It is definitely an OR function. The perk check shouldn't be there at all because each rank is simply adding, not replacing.

Good lord this perk-line is bugged.

User avatar
Miranda Taylor
 
Posts: 3406
Joined: Sat Feb 24, 2007 3:39 pm

Post » Thu Nov 26, 2015 7:13 pm

http://www.creationkit.com/Category:Conditions#Or

User avatar
Sharra Llenos
 
Posts: 3399
Joined: Wed Jan 17, 2007 1:09 pm

Post » Thu Nov 26, 2015 11:01 am

Sigh.. that's right. I forgot the Creation Kit wiki doesn't allow Google to index it, no wonder I wasn't getting any useful results. (Why do they do this???)

Thank you.

User avatar
Gavin boyce
 
Posts: 3436
Joined: Sat Jul 28, 2007 11:19 pm

Post » Thu Nov 26, 2015 1:45 pm

Hmm, actually, this doesn't really seem to translate very well to xEdit's structure. There's nothing in here that could be an 'OR' checkbox.

I think Khaelgor had the right idea.

User avatar
Leah
 
Posts: 3358
Joined: Wed Nov 01, 2006 3:11 pm

Post » Thu Nov 26, 2015 8:03 pm

So that means we can't properly edit condition with xEdit? I really messed my up my compatibility patches then.

User avatar
Kat Lehmann
 
Posts: 3409
Joined: Tue Jun 27, 2006 6:24 am

Post » Thu Nov 26, 2015 5:11 pm

I think you were right the first time. It just looks different in xEdit.

User avatar
Love iz not
 
Posts: 3377
Joined: Sat Aug 25, 2007 8:55 pm

Post » Thu Nov 26, 2015 10:51 am

First of all FO4Edit is experimental. Don't expect to keep any work done now when the proper version comes out.

As for CTDA, if the type native value is odd then it's an or, otherwise, it's an and.

User avatar
Katey Meyer
 
Posts: 3464
Joined: Sat Dec 30, 2006 10:14 pm

Post » Thu Nov 26, 2015 6:15 pm

Are you referring to PRKC - Run On (Tab Index)?

Because there's no way to affect the CTDA row.

Or are you referring to Parameter? I've never seen that be anything but -1.

User avatar
Michelle Smith
 
Posts: 3417
Joined: Wed Nov 15, 2006 2:03 am

Post » Thu Nov 26, 2015 5:07 pm

Not I mean the field titled Type in the CTDA record under the PRKC. If it were an Or it would show next to the comparison operator.

User avatar
Sierra Ritsuka
 
Posts: 3506
Joined: Mon Dec 11, 2006 7:56 am

Post » Thu Nov 26, 2015 8:59 am

Oh! So there is. I didn't realize it was a multi-selection field.

But then that only raises further questions! It would seem Ninja 1, 2, and 3 all add up to the sneak attack multiplier individually instead of overwriting one another. And yet, there's a perk check that tries to keep them from stacking, so that perk check is essentially doing nothing. But why?

User avatar
Mel E
 
Posts: 3354
Joined: Mon Apr 09, 2007 11:23 pm

Post » Thu Nov 26, 2015 3:22 pm

Here, if you can answer this question, it would help me understand what's going on. https://i.imgur.com/cbcY1Gt.png

User avatar
RObert loVes MOmmy
 
Posts: 3432
Joined: Fri Dec 08, 2006 10:12 am

Post » Thu Nov 26, 2015 2:07 pm

Nevermind, the perk check IS working. I managed to confuse myself.

User avatar
Charles Mckinna
 
Posts: 3511
Joined: Mon Nov 12, 2007 6:51 am

Post » Thu Nov 26, 2015 7:01 pm

Managed to get Ninja fixed. Thanks for the help folks.

User avatar
Hilm Music
 
Posts: 3357
Joined: Wed Jun 06, 2007 9:36 pm


Return to Fallout 4