|
Post by daydreamerfly on Jul 9, 2017 20:43:24 GMT -5
Hey everyone, so I'm a brand new modder who previously has little to no coding experience (some basic HTML a long while back) so apologies if there is something obvious i'm missing. Everything else I've worked on for this mod is working exactly as I'd like, but I can not figure out a way to implement what I need.
I want to have my sim earn simoleons during a SimPickerInteraction. Specifically, the bush_MessAround_Picker interaction. I've searched through tons of different extracted files for different instances of selling, earning simoleons, loot actions, etc. and no matter how much it looks like something should hypothetically work, when I put it in the code it accomplishes nothing. I don't know if there is some reason that something like this can't be implemented in this interaction, if i'm putting the code in the wrong part, or if I'm just not using the right code and missing something obvious. My most recent attempt included the following:
<T n="include_uninstantiated_sims">False</T>
<L n="interaction_category_tags">
<E>Interaction_Super</E>
<E>Interaction_All</E>
</L>
<V n="outcome" t="single">
<U n="single">
<U n="actions">
<L n="loot_list">
<T>29765<!--LootActions: Loot_simoleon_DivertFunds--></T>
</L>
</U>
</U>
</V> For this, I obviously tried to simply have this existing action activate, as I saw it appear in the game in places that lead me to believe it could maybe be carried over since nothing else had worked so far. But again, it lead to failure.
Any suggestions? I could really use some help on this.
|
|
|
Post by Leniad on Jul 9, 2017 21:21:11 GMT -5
I haven't investigated this, but one89 created something similar to what it sounds like you are making. Taking what she did apart might be helpful. LINK
|
|
|
Post by daydreamerfly on Jul 10, 2017 11:16:05 GMT -5
I haven't investigated this, but one89 created something similar to what it sounds like you are making. Taking what she did apart might be helpful. LINKThanks for the suggestion, but not only is this mod currently broken and unusable (my original plan was to potentially just fix this mod or expand upon it) it's really not great for what I hope to create the way it just rewrites the Ask for Loan interaction with certain requirements. I appreciate the reply though!
|
|
|
Post by Leniad on Jul 10, 2017 11:24:34 GMT -5
Mod is still working for me. I only have BG + Dine-Out, so I am guessing one of the other Expansion packs is interfering. Good luck
|
|
|
Post by Basemental on Jul 10, 2017 16:59:40 GMT -5
If you want it to be 100 Simoleons earned, try to use this file: Gain_100_Money (38649) in your loot list. If you want it to be a different amount, alter the aforementioned file to your liking to look something like this:
<I c="LootActions" i="action" m="interaction.utils.loot" n="YourCreatorName:Gain_Money_or_Whatnot" s="4187255316614427232"> <L n="loot_actions"> <V t="money_loot"> <U n="money_loot"> <V t="literal" n="amount"> <U n="literal"> <T n="value">1800<!--Enter the amount you want earned here--></T> </U> </V> <L n="statistic_multipliers"> <U> <T n="statistic">16671<!--statistic_Object_Consumable-Quality--></T> <E n="subject">CraftingObject</E> </U> </L> <E n="subject">Actor</E> </U> </V> </L> </I>
|
|
|
Post by daydreamerfly on Jul 11, 2017 11:10:49 GMT -5
Thank you Basemental for the reply! I actually found something yesterday that seems to be working and even closer to my needs (a more random amount, possible changes based on location) so I just need to test all circumstances to be sure it's working as smoothly as it seems to be, but if not this will be extremely useful. Thank you!
|
|
|
Post by Basemental on Jul 11, 2017 12:37:33 GMT -5
You are most welcome. Good luck
|
|
|
Post by daydreamerfly on Jul 11, 2017 17:28:38 GMT -5
If you want it to be 100 Simoleons earned, try to use this file: Gain_100_Money (38649) in your loot list. If you want it to be a different amount, alter the aforementioned file to your liking to look something like this: <I c="LootActions" i="action" m="interaction.utils.loot" n="YourCreatorName:Gain_Money_or_Whatnot" s="4187255316614427232"> <L n="loot_actions"> <V t="money_loot"> <U n="money_loot"> <V t="literal" n="amount"> <U n="literal"> <T n="value">1800<!--Enter the amount you want earned here--></T> </U> </V> <L n="statistic_multipliers"> <U> <T n="statistic">16671<!--statistic_Object_Consumable-Quality--></T> <E n="subject">CraftingObject</E> </U> </L> <E n="subject">Actor</E> </U> </V> </L> </I> Using the method you provided here where I edit the actual interaction, is there a way to add a test code so that the loot only occurs if a certain interaction has occurred? I'm not sure if it's possible to test for an interaction like this so if not I have a backup method involving buffs, it's just going to be a lot more time consuming haha
|
|
|
Post by Basemental on Jul 11, 2017 19:03:09 GMT -5
You could add a loot with an invisible buff from the interaction you want tested for and then whitelist that buff in the test_globals of the new interaction (if I am understanding your question correctly that is). AFAIK that is the only way to do it.
If you are meaning that this action loot tuning (it is not an interaction tuning example I provided you with) should occur only after you perform an interaction, just add this action loot to the loot list of your interaction. Example:
<V n="outcome" t="single"> <U n="single"> <U n="actions"> <L n="loot_list"> <T>4187255316614427232<!--LootActions: The example I gave you earlier--></T> </L> </U> </U> </V>
|
|
|
Post by blackpiano on Sept 9, 2017 16:17:15 GMT -5
I am trying to build a custom trait for my Sims 4 game. I need to make a DeathEater and Muggle/Mud-Blood traits. I need them to become uncomfortable when around each other. How do I do this? I have been trying for MONTHS and nothing is working. I need DeathEaters to be confident when around other DeathEater trait holding sims and I want Muggles/Mud-Bloods to be happy when near each other too. I cannot figure out these buffs and proximity, etc. features to save a life. I am trying to use Buff and Trait Factory and Mod Constructor while picking apart BrittPinkieSims' Harry Potter traits, but I cannot duplicate the magic.
|
|