|
Post by Basemental on Jun 2, 2017 19:53:16 GMT -5
Hey! I am wondering if anyone knows how to help me with this.
I am trying to make an interaction tuning that is only useable if I spend 10 of the same item from my inventory. This tuning works like a charm with only 1 item, but I have no idea how to make the requirement into 10 of the same item.
<L n="interaction_category_tags"> <E>Interaction_Super</E> <E>Interaction_All</E> </L> <U n="item_cost"> <L n="ingredients"> <U> <T n="ingredient">3254166364<!--Inventory_Item--></T> </U> </L> </U> <V t="single" n="outcome"> <U n="single"> <U n="actions"> <L n="basic_extras"> Ofcourse I can add the same item ten times underneath each other, but then it looks a mess when hovering over the object with the interaction, since the tooltip reads "Requires: 1 x Inventory item 1 x Inventory item 1 x Inventory item 1 x Inventory item" and so on...
I tried using this code:
<L n="interaction_category_tags"> <E>Interaction_Super</E> <E>Interaction_All</E> </L> <U n="item_cost"> <L n="ingredients"> <U> <T n="ingredient">3254166364<!--Inventory_Item--></T> <T n="count>10</T> </U> </L> </U> <V t="single" n="outcome"> <U n="single"> <U n="actions"> <L n="basic_extras"> Which did not work.
Anyone know how to solve this? I am sure there must be a way seeing that if I only have the 1 item as an "ingredient" the tooltip reads "Requires: 1 x Inventory Item"
I would be super grateful for any help on this matter!
|
|
|
Post by Leniad on Jun 3, 2017 20:34:02 GMT -5
I use recipes a lot and have never figured out a way to do what you suggest. If you find one or figure it out, sharing would be appreciated. The only way I have ever been able to pay once for multiples is by creating a multi recipe like the cupcakes, if that helps.
|
|
|
Post by Basemental on Jun 4, 2017 5:08:47 GMT -5
I will of course let you know if I figure out a way to do this. I have almost given up though, as I have tried what seems like all the countless variations of ways to do it.
|
|
|
Post by Leniad on Jun 4, 2017 7:15:29 GMT -5
OK. now that I am awake. Try this
<V t="enabled" n="use_ingredients"> <U n="enabled"> <T n="all_ingredients_required">True</T> <L n="ingredient_list"> <V t="ingredient_by_definition"> <U n="ingredient_by_definition"> <T n="ingredient_ref">3254166364<!--Inventory_Item--></T> <T n="count">10</T> </U> </V> </L> </U> </V>
|
|
|
Post by andrew on Jun 4, 2017 10:56:56 GMT -5
Have you tried "quantity" instead of "count"?
Here is in example from toilet_Upgrade_SelfCleaning:
<U n="item_cost"> <L n="ingredients"> <U> <T n="ingredient">22678</T> <T n="quantity">3</T> </U> <U> <T n="ingredient">22669</T> <T n="quantity">2</T> </U> </L> </U>
|
|
|
Post by Basemental on Jun 4, 2017 12:05:24 GMT -5
Ooh. Thanks Andrew. I'll try that out, tried count, amount, value, and whatnot. Not tried Quantity yet though.
Thanks Leniad as well, unfortunately that did not work as I think that is more for recipe tunings. Appreciate the suggestion nonetheless though!
|
|
|
Post by Basemental on Jun 4, 2017 17:53:42 GMT -5
That worked Andrew. Thank you so much! Once again!
|
|