Object Defintion/Custom Event Reward? {Solved}
Aug 2, 2016 9:09:28 GMT -5
freeasabird and onemorekayaker like this
Post by brittpinkiesims on Aug 2, 2016 9:09:28 GMT -5
I'm working on creating a custom event type I've got the event down pretty much, but now I want to give out custom rewards. I know Zerbu has done this with his Experiences mod pack, so it's possible, but I'm just a bit stuck. I've tried looking at the .xmls for existing parties/rewards, and I'm stuck on the part where it references the object definition. (I've also tried looking at Zerbu's .xmls but I'm still stuck). How do I find out this number, and how do I link that to an object? Then, taking it a step further, how could I link the object definition/reward to a custom object?
Here's the .xml I'm talking about...the example is taken from the Date Event, gold reward, which is the VIP bucket:
I'm assuming the part I need to change is:
Can anyone shed some light on this? phyre , any ideas?
Here's the .xml I'm talking about...the example is taken from the Date Event, gold reward, which is the VIP bucket:
<!--?xml version="1.0" encoding="utf-8"?-->
<t p="InGame\UI\Icons\Events\EventGoal_RewardGold.png" n="icon">2f7d0004:00000000:5b5e8aec109cc09e</t>
<t n="name">0x85BAD94B<!--String: "Gold Level"--></t>
<v n="notification" t="enabled">
<v n="enabled" t="literal">
<v t="enabled" n="icon">
<v n="enabled" t="resource_key">
<t p="InGame\UI\Icons\Events\EventGoal_RewardGold.png" n="key">2f7d0004:00000000:5b5e8aec109cc09e</t>
</v>
</v>
<v n="text" t="single">
<t n="single">0x3F50D8CF<!--String: "Legendary date! There is something special in your Sim's household inventory to help remember it. "--></t>
</v>
<v t="enabled" n="title">
<t n="enabled">0xF01CDC0E<!--String: "Reward!"--></t>
</v>
</v>
</v>
<t n="reward_description">0xFE7808B<!--String: "Gold Level rewards include a new item."--></t>
<l n="rewards">
<v t="specific_reward">
<v n="specific_reward" t="object_definition">
<t n="definition">33383</t>
<v n="text" t="override">
<t n="override">0x144A231<!--String: "Your Sim have been rewarded with a new decorative item! It'll be waiting in your Sim's Household Inventory."--></t>
</v>
</v>
</v>
<v t="specific_reward">
<v n="specific_reward" t="build_buy_object">
<t n="object_definition">33382</t>
</v>
</v>
</l>
<t p="InGame\UI\Icons\Events\EventGoal_RewardGold.png" n="icon">2f7d0004:00000000:5b5e8aec109cc09e</t>
<t n="name">0x85BAD94B<!--String: "Gold Level"--></t>
<v n="notification" t="enabled">
<v n="enabled" t="literal">
<v t="enabled" n="icon">
<v n="enabled" t="resource_key">
<t p="InGame\UI\Icons\Events\EventGoal_RewardGold.png" n="key">2f7d0004:00000000:5b5e8aec109cc09e</t>
</v>
</v>
<v n="text" t="single">
<t n="single">0x3F50D8CF<!--String: "Legendary date! There is something special in your Sim's household inventory to help remember it. "--></t>
</v>
<v t="enabled" n="title">
<t n="enabled">0xF01CDC0E<!--String: "Reward!"--></t>
</v>
</v>
</v>
<t n="reward_description">0xFE7808B<!--String: "Gold Level rewards include a new item."--></t>
<l n="rewards">
<v t="specific_reward">
<v n="specific_reward" t="object_definition">
<t n="definition">33383</t>
<v n="text" t="override">
<t n="override">0x144A231<!--String: "Your Sim have been rewarded with a new decorative item! It'll be waiting in your Sim's Household Inventory."--></t>
</v>
</v>
</v>
<v t="specific_reward">
<v n="specific_reward" t="build_buy_object">
<t n="object_definition">33382</t>
</v>
</v>
</l>
I'm assuming the part I need to change is:
<l n="rewards">
<v t="specific_reward">
<v n="specific_reward" t="object_definition">
<t n="definition">33383</t>
<v n="text" t="override">
<t n="override">0x144A231<!--String: "Your Sim have been rewarded with a new decorative item! It'll be waiting in your Sim's Household Inventory."--></t>
</v>
</v>
</v>
<v t="specific_reward">
<v n="specific_reward" t="build_buy_object">
<t n="object_definition">33382
</t></v></v></l>
<v t="specific_reward">
<v n="specific_reward" t="object_definition">
<t n="definition">33383</t>
<v n="text" t="override">
<t n="override">0x144A231<!--String: "Your Sim have been rewarded with a new decorative item! It'll be waiting in your Sim's Household Inventory."--></t>
</v>
</v>
</v>
<v t="specific_reward">
<v n="specific_reward" t="build_buy_object">
<t n="object_definition">33382
</t></v></v></l>
Can anyone shed some light on this? phyre , any ideas?