Post by bees123 on Apr 3, 2021 13:04:15 GMT -5
Hi,
I've got a series of buffs that I want to be added to a Sim from a single interaction, randomised and depending on which trait that Sim has. I'm using just the emotional traits for now (Active, Hot-Headed etc) and have put them all in a RandomWeightedLoot action with the whitelists set up, all weighted at 1, with a default buff with no conditions weighted at 1 as well. This is all in a separate loot list, which is set to run after a successful interaction
Trouble is that everything in the regular loot list works fine (buffs, relationship bits etc) but not for the RandomWeightedLoot. I've checked each buff and it's buffdata, all of them can be added via other means. Am I missing something?
Code's below, I've changed the names of items as the mod is NSFW and I'm not sure what the rules are about that here but assume that it's fine as I've spotted other NSFW mod creators on here as well. No LastExceptions or errors
RandomWeightedLoot:
LootAction (Calling RandomWeightedLoot)
I've got a series of buffs that I want to be added to a Sim from a single interaction, randomised and depending on which trait that Sim has. I'm using just the emotional traits for now (Active, Hot-Headed etc) and have put them all in a RandomWeightedLoot action with the whitelists set up, all weighted at 1, with a default buff with no conditions weighted at 1 as well. This is all in a separate loot list, which is set to run after a successful interaction
Trouble is that everything in the regular loot list works fine (buffs, relationship bits etc) but not for the RandomWeightedLoot. I've checked each buff and it's buffdata, all of them can be added via other means. Am I missing something?
Code's below, I've changed the names of items as the mod is NSFW and I'm not sure what the rules are about that here but assume that it's fine as I've spotted other NSFW mod creators on here as well. No LastExceptions or errors
RandomWeightedLoot:
<I c="RandomWeightedLoot" i="action" m="interactions.utils.loot" n="bees123_Loot_Buffs" s="12345">
<L n="random_loot_actions">
<U>
<!--Default-->
<V n="action" t="buff">
<U n="buff">
<U n="buff">
<T n="buff_type">12<!--Buff: bees123_Buff_Trait_Default--></T>
</U>
</U>
<U n="weight">
<T n="base_value">1</T>
</U>
</V>
<!--Active-->
<V n="action" t="buff">
<U n="buff">
<U n="buff">
<T n="buff_type">23<!--Buff: bees123_Buff_Trait_Active--></T>
</U>
<L n="tests">
<L>
<V t="trait">
<U n="trait">
<L n="whitelist_traits">
<T>27419<!--Trait: trait_active--></T>
</L>
</U>
</V>
</L>
</L>
</U>
<U n="weight">
<T n="base_value">1</T>
</U>
</V>
<!--Cheerful-->
<V n="action" t="buff">
<U n="buff">
<U n="buff">
<T n="buff_type">34<!--Buff: bees123_Buff_Trait_Cheerful--></T>
</U>
<L n="tests">
<L>
<V t="trait">
<U n="trait">
<L n="whitelist_traits">
<T>9322<!--Trait: trait_Cheerful--></T>
</L>
</U>
</V>
</L>
</L>
</U>
<U n="weight">
<T n="base_value">1</T>
</U>
</V>
<!--Creative-->
<V n="action" t="buff">
<U n="buff">
<U n="buff">
<T n="buff_type">45<!--Buff: bees123_Buff_Trait_Creative--></T>
</U>
<L n="tests">
<L>
<V t="trait">
<U n="trait">
<L n="whitelist_traits">
<T>12697<!--Buff: Buff_Trait_Creative--></T>
</L>
</U>
</V>
</L>
</L>
</U>
<U n="weight">
<T n="base_value">1</T>
</U>
</V>
<!--Genius-->
<V n="action" t="buff">
<U n="buff">
<U n="buff">
<T n="buff_type">56<!--Buff: bees123_Buff_Trait_Genius--></T>
</U>
<L n="tests">
<L>
<V t="trait">
<U n="trait">
<L n="whitelist_traits">
<T>12687<!--Buff: Buff_Trait_Genius--></T>
</L>
</U>
</V>
</L>
</L>
</U>
<U n="weight">
<T n="base_value">1</T>
</U>
</V>
<!--Gloomy-->
<V n="action" t="buff">
<U n="buff">
<U n="buff">
<T n="buff_type">67<!--Buff: bees123_Buff_Trait_Gloomy--></T>
</U>
<L n="tests">
<L>
<V t="trait">
<U n="trait">
<L n="whitelist_traits">
<T>9333<!--Buff: Buff_Trait_Gloomy--></T>
</L>
</U>
</V>
</L>
</L>
</U>
<U n="weight">
<T n="base_value">1</T>
</U>
</V>
<!--Goofball-->
<V n="action" t="buff">
<U n="buff">
<U n="buff">
<T n="buff_type">78<!--Buff: bees123_Buff_Trait_Goofball--></T>
</U>
<L n="tests">
<L>
<V t="trait">
<U n="trait">
<L n="whitelist_traits">
<T>9338<!--Buff: Buff_Trait_Goofball--></T>
</L>
</U>
</V>
</L>
</L>
</U>
<U n="weight">
<T n="base_value">1</T>
</U>
</V>
<!--Hot-Headed-->
<V n="action" t="buff">
<U n="buff">
<U n="buff">
<T n="buff_type">89<!--Buff: bees123_Buff_Trait_Hot-Headed--></T>
</U>
<L n="tests">
<L>
<V t="trait">
<U n="trait">
<L n="whitelist_traits">
<T>16845<!--Trait: trait_HotHeaded--></T>
</L>
</U>
</V>
</L>
</L>
</U>
<U n="weight">
<T n="base_value">1</T>
</U>
</V>
<!--Romantic-->
<V n="action" t="buff">
<U n="buff">
<U n="buff">
<T n="buff_type">90<!--Buff: bees123_Buff_Trait_Romantic--></T>
</U>
<L n="tests">
<L>
<V t="trait">
<U n="trait">
<L n="whitelist_traits">
<T>9302<!--Buff: Buff_Trait_Romantic--></T>
</L>
</U>
</V>
</L>
</L>
</U>
<U n="weight">
<T n="base_value">1</T>
</U>
</V>
<!--Self-Assured-->
<V n="action" t="buff">
<U n="buff">
<U n="buff">
<T n="buff_type">123<!--Buff: bees123_Buff_Trait_Self-Assured--></T>
</U>
<L n="tests">
<L>
<V t="trait">
<U n="trait">
<L n="whitelist_traits">
<T>16824<!--Trait: trait_SelfAssured--></T>
</L>
</U>
</V>
</L>
</L>
</U>
<U n="weight">
<T n="base_value">1</T>
</U>
</V>
<!--Unflirty-->
<V n="action" t="buff">
<U n="buff">
<U n="buff">
<T n="buff_type">234<!--Buff: bees123_Buff_Trait_Unflirty--></T>
</U>
<L n="tests">
<L>
<V t="trait">
<U n="trait">
<L n="whitelist_traits">
<T>132589<!--Trait: trait_Unflirty--></T>
</L>
</U>
</V>
</L>
</L>
</U>
<U n="weight">
<T n="base_value">1</T>
</U>
</V>
</U>
</L>
</I>
LootAction (Calling RandomWeightedLoot)
<I c="LootActions" i="action" m="interactions.utils.loot" n="bees123_Loot" s="67890">
<L n="loot_actions">
<V t="actions">
<T n="actions">12345<!--RandomWeightedLoot: bees123_Loot_Buffs--></T>
</V>
<V t="relationship_bits_loot">
<U n="relationship_bits_loot">
<L n="bit_operations">
<U>
<T n="bit">841<!--RelationshipBit: bees123_RelBit_Template--></T>
<E n="operation">ADD</E>
<E n="recipients">Actor</E>
<E n="targets">TargetSim</E>
</U>
</L>
</U>
</V>
<V t="buff">
<U n="buff">
<U n="buff">
<T n="buff_type">12<!--Buff: bees123_Buff_Trait_Default--></T>
</U>
<E n="subject">TargetSim</E>
</U>
</V>
<V t="dynamic_skill_loot">
<U n="dynamic_skill_loot">
<U n="skill_loot_data_override">
<E n="effectiveness">STANDARD</E>
<T n="stat">480475<!--Skill: bees123_Skill--></T>
</U>
</U>
</V>
</L>
</I>