ShinraStrife Posted November 22, 2015 Share Posted November 22, 2015 (edited) 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 November 22, 2015 by ShinraStrife Link to comment Share on other sites More sharing options...
gibbed Posted November 22, 2015 Share Posted November 22, 2015 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). Link to comment Share on other sites More sharing options...
ShinraStrife Posted November 22, 2015 Author Share Posted November 22, 2015 (edited) 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 November 22, 2015 by ShinraStrife Link to comment Share on other sites More sharing options...
gibbed Posted November 22, 2015 Share Posted November 22, 2015 (edited) 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. Edited November 22, 2015 by gibbed Link to comment Share on other sites More sharing options...
ShinraStrife Posted November 22, 2015 Author Share Posted November 22, 2015 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 More sharing options...
gibbed Posted November 22, 2015 Share Posted November 22, 2015 (edited) Edit: sorry, made a mistake. Edit #2: I checked the FO4Edit source code, I was correct. Greater than or equal to = 0x60 = b01100000 Greater than or equal to (OR) = 0x61 = b01100001 Edited November 22, 2015 by gibbed Link to comment Share on other sites More sharing options...
ShinraStrife Posted November 22, 2015 Author Share Posted November 22, 2015 Edit: sorry, made a mistake. If what you say is correct, then: Greater than or equal to = 0xC0 = b11000000Greater 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 More sharing options...
gibbed Posted November 22, 2015 Share Posted November 22, 2015 I updated my previous post, please check again with the correct value. Link to comment Share on other sites More sharing options...
ShinraStrife Posted November 22, 2015 Author Share Posted November 22, 2015 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 More sharing options...
gibbed Posted November 22, 2015 Share Posted November 22, 2015 I got it working. Thanks for pointing me in the right direction tho. I woulda been messing with the other parameters all night XDIt 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 More sharing options...
Recommended Posts