Post by wtg on Dec 6, 2021 20:37:19 GMT -5
Hi, I'm creating a custom Aspiration. There are tons of resources for creating items but I'm seeing hardly any help for gameplay function modding, especially using Sims4Studio.
Specifically, I'm making an aspiration for owning and growing a restaurant in Dine Out, and I want one objective to be purchasing objects for the restaurant.
I had two ideas for making this work.
Option 1: try to edit objective_Asp_Fortune_B1_1 (have a home worth at least $50000) except for an owned restaurant lot instead of a home. This is the starting point:
So I need a property-simoleon-value objective_test, and some other test(s) that it is also 1. owned by the player 2. restaurant-type venue. (I don't know if only_use_result_on_home_zone is a residential check, or ownership check -- that is exactly the kind of element I want to be able to find documentation for.)
I found this in testSet_IsRestaurantAndHasWaiterStation, but I'm not sure exactly how it would interact or how to combine them (I'm not sure if this test is intended for restaurants owned by the player)
Option 2: Spend _____ $ on objects from the "kitchen" category. For example, something like "spend $1000 on kids stuff", except with different object tags:
For that, I need to know what object tags (like BuyCatLD_KidDecoration, BuyCatEE_KidFurniture) are available to use.
Even being able to search the codebase for other instances of strings (like "only_use_result_on_home_zone", or "BuyCatLD_") throughout EA files would give me at least something to work with.
Specifically, I'm making an aspiration for owning and growing a restaurant in Dine Out, and I want one objective to be purchasing objects for the restaurant.
I had two ideas for making this work.
Option 1: try to edit objective_Asp_Fortune_B1_1 (have a home worth at least $50000) except for an owned restaurant lot instead of a home. This is the starting point:
<?xml version="1.0" encoding="utf-8"?>
<I c="Objective" i="objective" m="event_testing.objective_tuning" n="objective_Asp_Fortune_B1_1" s="25117">
<T n="display_text">0x6D166FB<!--Have a Home Worth {1.Money}--></T>
<V n="objective_completion_type" t="use_test_result">
<U n="use_test_result">
<T n="only_use_result_on_home_zone">True</T>
</U>
</V>
<V n="objective_test" t="simoleon_value">
<U n="simoleon_value">
<V n="value_context" t="property_only" />
<U n="value_threshold">
<T n="value">50000</T>
</U>
</U>
</V>
<T n="satisfaction_points">75</T>
<T n="tooltip">0x613B7E21<!--Purchase a home and objects worth at least {1.Money}. Keep in mind that Property Value counts towards this as well!--></T>
</I>
So I need a property-simoleon-value objective_test, and some other test(s) that it is also 1. owned by the player 2. restaurant-type venue. (I don't know if only_use_result_on_home_zone is a residential check, or ownership check -- that is exactly the kind of element I want to be able to find documentation for.)
I found this in testSet_IsRestaurantAndHasWaiterStation, but I'm not sure exactly how it would interact or how to combine them (I'm not sure if this test is intended for restaurants owned by the player)
<V t="location">
<U n="location">
<U n="location_tests">
<V n="is_venue_type" t="enabled">
<U n="enabled">
<T n="venue_type">130713<!--venue_Restaurant--></T>
</U>
</V>
</U>
</U>
</V>
Option 2: Spend _____ $ on objects from the "kitchen" category. For example, something like "spend $1000 on kids stuff", except with different object tags:
<?xml version="1.0" encoding="utf-8"?>
<I c="Objective" i="objective" m="event_testing.objective_tuning" n="objective_Asp_Family_A1_1" s="25806">
<T n="display_text">0x4AAB9F21<!--Spend §1,000 on Kids' Stuff--></T>
<V n="objective_completion_type" t="use_test_result">
<U n="use_test_result">
<T n="only_use_result_on_home_zone">True</T>
</U>
</V>
<V n="objective_test" t="object_criteria">
<U n="object_criteria">
<V n="identity_test" t="tags">
<U n="tags">
<L n="tag_set">
<E>BuyCatLD_KidDecoration</E>
<E>BuyCatEE_MiscKids</E>
<E>BuyCatEE_KidToy</E>
<E>BuyCatEE_KidFurniture</E>
<E>BuyCatEE_KidActivity</E>
<E>Genre_Book_Toddler_PictureBook</E>
<E>BuyCatEE_Toddlers</E>
</L>
</U>
</V>
<V n="subject_specific_tests" t="all_objects">
<U n="all_objects">
<U n="quantity">
<T n="value">0</T>
</U>
<V n="total_value" t="enabled">
<U n="enabled">
<T n="value">1000</T>
</U>
</V>
</U>
</V>
</U>
</V>
<T n="relative_to_unlock_moment">False</T>
<T n="satisfaction_points">75</T>
<T n="tooltip">0x7813F23E<!--Kids' stuff can be purchased from Build Mode under the Kids Function category.--></T>
</I>
For that, I need to know what object tags (like BuyCatLD_KidDecoration, BuyCatEE_KidFurniture) are available to use.
Even being able to search the codebase for other instances of strings (like "only_use_result_on_home_zone", or "BuyCatLD_") throughout EA files would give me at least something to work with.