Jump to content

Is there an OR condition for COBJ records in FO4Edit?


ShinraStrife

Recommended Posts

I recently released my craftable alcohol mod and I'm working on removing the double entries for each recepie.

 

Basically I added one recipe that requires the Party Boy perk and another for the Party Girl perk.

 

Instead of going this route I'd like to know if there is an OR condition so I can check if the player has Party Boy or Party Girl perk in one COBJ record instead of making them separate.

 

Here is how the records are setup ATM:

 

 

the records with _m at the end are for the Party Boy perk.

EDIT: Fixed.

Edited by ShinraStrife
Link to comment
Share on other sites

I don't know how this is represented in FO4Edit, but the comparison type has additional flags. One of them is to "OR" instead of the default "AND", which is bit 0 (0x1).

The Parameter 3 might be it but i'm not sure. After looking at craftable objects in the creation kit it seems like the only thing in COBJ records not accounted for in FO4Edit

Edited by ShinraStrife
Link to comment
Share on other sites

Oh no, this would be part of what your screenshot shows as "Greater than or equal to". That should have a value of 0x60. You'd want a value of 0x61.

 

Conditions are typed in using 1's and 0's so 11000000 is Greater than or Equal to.

Link to comment
Share on other sites

Edit: sorry, made a mistake.

 

If what you say is correct, then:

 

Greater than or equal to = 0xC0 = b11000000

Greater than or equal to (OR) = 0xC1 = b11000001

 

Close but it seems that Greater than or Equal to / Or = 11010000 for some reason.

 

Ingame the recipe shows a required perk is missing (whichever party perk you dont have) but it will still allow the recipe to be crafted if you have one or the other so it seems to be working this way:

http://s24.postimg.org/esp1qnpuc/Screenshot_188.jpg

Link to comment
Share on other sites

I updated my previous post, please check again with the correct value.

 

I got it working. Thanks for pointing me in the right direction tho. I woulda been messing with the other parameters all night XD

Link to comment
Share on other sites

I got it working. Thanks for pointing me in the right direction tho. I woulda been messing with the other parameters all night XD

It turns out the developers of FO4Edit create their own fake data and don't show the real binary. What you found is actually correct.
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...