No Mutants Allowed!
No Mutants Allowed
We were here before the fall....
 
FAQ  -  NMA  -  Search -  Memberlist -  UsergroupsRegister Files - Gallery 
Profile -  Log in to check your private messages -  Log in 

Defonten posters

Stuck on logical operators

 
Post new topic   Reply to topic    No Mutants Allowed Forum Index -> Fallout 3 and New Vegas Modding
View previous topic :: View next topic  
Author Message
dorostheconqueror
Hideous Freak of Nature



Joined: 29 Oct 2010
Posts: 6

Status: Offline

PostPosted: Fri Nov 05, 2010 23:35    Post subject: Stuck on logical operators Reply with quote

Hey, I had a question. How exactly are logical operators interpreted in the GECK? Specifically, in the box for Perk conditions? Even more specifically, how does the box handle order of operations and bracketing?

I'm trying to mod some CQB perks to make them available to players who specialize in either melee OR unarmed. Take Slayer, for example. I'd want something like this for the conditions:

Quote:
(MeleeWeapons >= 90 OR Unarmed >=90) AND Agility >=7


That would return true if the player met the Agility requirement and met the skill requirement in at least one CQB weapon skill, right? However, the way it's set up in the GECK menu, I have no idea what it's trying to do. The default setting:

Quote:
GetPermanentActorValue Unarmed >= 90 AND
GetPermanentActorValue Agility >= 7 AND

Is a straightforward AND conditional. I get that. But what about when I start throwing in ORs? Should it be...

Quote:
GetPermanentActorValue Unarmed >= 90 OR
GetPermanentActorValue MeleeWeapons >= 90 OR
GetPermanentActorValue Agility >= 7 AND


Or maybe...

Quote:
GetPermanentActorValue Unarmed >= 90 OR
GetPermanentActorValue MeleeWeapons >= 90 AND
GetPermanentActorValue Agility >= 7 AND


How is this calculated? Where and when exactly are these ANDs and ORs being evaluated? Or, here's another example, just for illustrative purposes, to help me get this straight. Let's say I wanted to make a perk that was available to a character who was both male and gay, or female and, uh, well traveled. Something like

Quote:
(Male AND ConfirmedBachelor) OR (Female AND BlackWidow)


How would I set this up in the box?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    No Mutants Allowed Forum Index -> Fallout 3 and New Vegas Modding All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group