The forum has been set to read-only mode. For community discussion and questions, head over to our Discord: https://discord.taleoftwowastelands.com

Need Help with Recipe Requirement configuration

General mod discussion and requests.
Post Reply
User avatar
leafonthewind
Posts: 63
Joined: Mon Jan 12, 2015 6:32 am
Location: United States

Need Help with Recipe Requirement configuration

Post by leafonthewind » Thu Feb 19, 2015 8:13 am

Alright, so I'm working on something right now where I am editing the requirements for some recipes so that either two or 3 specific items, or just a different item is needed in the inventory for the recipe to be crafted (for example to craft a certain item, the player would need both a hammer and a knife, or just a crowbar in their inventory to craft the item) (and by this I don't mean those items would be used in crafting the item, but having them in the inventory would be necessary for crafting the recipe) Is there a way to set the condition flags in such a scenario where the getitemcount would need to be positive on either item a, or both b and c?



 


User avatar
Puppettron
Gary
Posts: 1715
Joined: Sat Nov 23, 2013 10:47 pm

getitemcount crowbar > 0 or

Post by Puppettron » Thu Feb 19, 2015 5:36 pm

getitemcount crowbar > 0 or

getitemcount hammer > 0 and

getitemcount knife > 0 and



that would be the condition set to do exactly what you want, for explanation:  http://geck.bethsoft.com/index.php?title=Category:Conditions#The_Condition_List


perms:  either a full fireworks display spelling out "Puppettron Made This" anytime a user accesses my content in-game, or just give me credit somewhere.

User avatar
leafonthewind
Posts: 63
Joined: Mon Jan 12, 2015 6:32 am
Location: United States

Thank you, that seems to

Post by leafonthewind » Thu Feb 19, 2015 8:29 pm

Thank you, that seems to  have fixed it.



Post Reply