ic3zy
New Member
Posts: 1
|
Post by ic3zy on Oct 31, 2024 11:36:15 GMT -5
Hello everyone,
I have a drink that I am trying to make.
I have completed the adding it to the game and made it drinkable, but I want to add a special buff after drinking it and see it in the moody section of the sim. I imported the buff and edited it according to my own wishes, but I couldn't find how to summon it and activate it after drinking it, can you help me?
Best regards Ic3zy...
|
|
|
Post by CatDevPete on Oct 31, 2024 17:34:56 GMT -5
Hello everyone,
I have a drink that I am trying to make. I have completed the adding it to the game and made it drinkable, but I want to add a special buff after drinking it and see it in the moody section of the sim. I imported the buff and edited it according to my own wishes, but I couldn't find how to summon it and activate it after drinking it, can you help me? Best regards Ic3zy... The way to apply buffs after consuming/drinking is to use a 'loot', which is kinda like a trigger. So, as an example, I have the following in my own drink, under <U n="_components">: <U n="_components"> <V n="affordance_tuning" t="enabled"> <U n="enabled"> <L n="affordance_map"> <U> <T n="key">13855<!--Put_Item_In_My_Inventory--></T> <U n="value"> <L n="tests"> <L> <V t="sim_info"> <U n="sim_info"> <V n="ages" t="specified" /> </U> </V> </L> </L> </U> </U> <U> <T n="key">156414<!--generic_consume_VampireDrink--></T> <U n="value"> <L n="false_ads"> <V t="statistic_change"> <U n="statistic_change"> <T n="amount">0.857</T> <T n="stat">149541<!--commodity_Motive_Visible_Vampire_Thirst--></T> </U> </V> </L> <L n="loot_list"> <T>155319<!--loot_Buff_Vampire_PlasmaOnNonVampire--></T> <T>9242953214956299111<!--catdevpete:loot_Buff_Plasma_Wine_Nectar_Exquisite--></T> </L> </U> </U> </L> </U> </V> etc. etc. etc.
Note the 'loot_list', specifically "<T>9242953214956299111<!--catdevpete:loot_Buff_Plasma_Wine_Nectar_Exquisite--></T>". That's my custom Action Tuning (in fact, take a look at <T>155319<!--loot_Buff_Vampire_PlasmaOnNonVampire--></T> and you'll see a loot of similarities). Within it is the following: <?xml version="1.0" encoding="utf-8"?> <I c="LootActions" i="action" m="interactions.utils.loot" n="catdevpete:loot_Buff_Plasma_Wine_Nectar_Exquisite" s="9242953214956299111"> <L n="loot_actions"> <V t="buff"> <U n="buff"> <U n="buff"> <V n="buff_reason" t="enabled"> <T n="enabled">0x5A505003<!--(From drinking DeVampiro Reserve Plasma Nectar)--></T> </V> <T n="buff_type">16616465572006469229<!--catdevpete:buff_Drink_Plasma_Wine_Nectar_Exquisite--></T> </U> <L n="tests"> <L> <V t="trait"> <U n="trait"> <L n="whitelist_traits"> <T>149527<!--trait_OccultVampire--></T> </L> </U> </V> </L> </L> </U> </V> </L> </I>
Where my custom buff is, would be where your own buff woud be placed. The test on mine is just to only whitelist for vampires; You can either remove the test or modify it to fit your own criteria if there are any.
|
|
|
Post by CatDevPete on Oct 31, 2024 17:59:18 GMT -5
Note: I don't want to presume too much, but in the off-chance that <V n="affordance_tuning" t="enabled"> is missing, you'll just need to add that in under <U n="_components">. Technically, the only part you'll need for what you're doing is the following:
<V n="affordance_tuning" t="enabled"> <U n="enabled"> <L n="affordance_map"> <U> <T n="key">13431<!--generic_consume_drink_bar--></T> <U n="value"> <L n="loot_list"> <T>9242953214956299111<!--catdevpete:loot_Buff_Plasma_Wine_Nectar_Exquisite--></T> </L> </U> </U> </L> </U> </V> Also note that in here, I used <T n="key">13431<!--generic_consume_drink_bar--></T>
You'll want to make sure it matches the consume type of your drink. You can typically find out by scrolling to the bit of your tuning that has <V n="consumable" t="enabled"> It will then look something like this:
<V n="consumable" t="enabled"> <U n="enabled"> <L n="consume_affordances"> <T>13431<!--generic_consume_drink_bar--></T> </L> etc. etc. etc. If it matches, great! If it doesn't, make sure to copy that & replace the key in the affordance_map.
|
|