|
Post by mainasims on Apr 9, 2021 18:42:20 GMT -5
Hey! I'm a beginner modder and I want add multiple functions to an object, how can I do?( I already know how to change the function of an object)
Thanks and sorry for my English 🙂
|
|
|
Post by MizoreYukii on Apr 9, 2021 20:00:47 GMT -5
You want to add new interactions/affordances to an object through tuning?
|
|
|
Post by mainasims on Apr 10, 2021 1:17:37 GMT -5
Yes 😊
|
|
|
Post by mainasims on Apr 10, 2021 18:43:16 GMT -5
Hi, I have another question too, where can I manage/change the objects animation with my sim? Thanks 😊
|
|
|
Post by mainasims on Apr 11, 2021 12:14:30 GMT -5
If anybody knows how to doo, where can I ask? 🙏🏿
|
|
|
Post by MizoreYukii on Apr 11, 2021 14:08:22 GMT -5
You will need XML Injector to add the affordances so you're not causing conflicts, it has modders documentation to download as well if you need it (and also has the examples I list). Depending on what you want, you can either: - Add affordances to objects by listing each object it should add it to. If you want it to be added to CC as well with custom tuning like CC fridges, this method is not recommended, but it's rare for people to have custom tuning.
- Add affordances by partial name. This is very broad though and might add it to unwanted objects, so not recommended. The documentation covers why in more detail.
- Add affordances by tag, which will look for the tag you listed on objects.
- Add affordances by looking for a specific affordance. Like if you want to add an affordance to all chairs that have the "Sit" affordance, it will do so.
When you make your snippet for XML Injector the add affordances by list will look like this: <L n="add_interactions_to_objects"> <U> <V n="object_selection" t="object_list"> <U n="object_list"> <L n="object_list"> <T>14940<!--GameObject: object_Mailbox--></T> <T>133176<!--GameObject: object_MailboxWall--></T> </L> </U> </V> <L n="_super_affordances"> <T>12415634905840155217<!--ImmediateSuperInteraction: Scumbumbo_XmlInjector_InteractionTest--></T> </L> </U> </L> Add affordances by partial name looks like this: <L n="add_interactions_to_objects"> <U> <V n="object_selection" t="objects_matching_name"> <U n="objects_matching_name"> <T n="partial_name">object_trash_generic</T> </U> </V> <L n="_super_affordances"> <T>12415634905840155217<!--ImmediateSuperInteraction: Scumbumbo_XmlInjector_InteractionTest--></T> </L> </U> </L> Add affordances by tag looks like this: <L n="add_interactions_to_objects"> <U> <V n="object_selection" t="objects_with_tag"> <U n="objects_with_tag"> <E n="tag">Func_DoubleBed</E> </U> </V> <L n="_super_affordances"> <T>12415634905840155217<!--ImmediateSuperInteraction: Scumbumbo_XmlInjector_InteractionTest--></T> </L> </U> </L> Add affordances by affordance looks like this: <L n="add_interactions_to_objects"> <U> <V n="object_selection" t="objects_with_affordance"> <U n="objects_with_affordance"> <T n="affordance">225064<!--SimPickerInteraction: computer_Locking_LockForEveryone--></T> </U> </V> <L n="_super_affordances"> <T>12415634905840155217<!--ImmediateSuperInteraction: Scumbumbo_XmlInjector_InteractionTest--></T> </L> </U> </L>
|
|
|
Post by MizoreYukii on Apr 11, 2021 14:18:18 GMT -5
Hi, I have another question too, where can I manage/change the objects animation with my sim? Thanks 😊 The actual animation, or the animation an interaction uses? For the actual animation if you want to edit it, it's in the Clips but I would not recommend jumping into that yet because animations can get complicated quick. If you mean your interaction animation, it depends on which one you are adding and what you want it to do, they look like this: <V n="canonical_animation" t="enabled">
<U n="enabled">
<T n="factory">11278<!--AnimationElement: Bed_Nap_InteractionIdle_Idle--></T>
</U>
</V> Or this, this one is for looping: <V n="content" t="looping_content">
<U n="looping_content">
<U n="animation_ref">
<T n="factory">11220<!--AnimationElement: Baby_Actions_BottleFeed_Succeed--></T>
</U>
</U>
</V> But that one ^ is under the basic_content section.
|
|
|
Post by mainasims on Apr 11, 2021 14:31:44 GMT -5
Thanks you so much ! <3
|
|