'Object In Mail' Opportunity Reward

Apply within. 6 years of experience required. Must not like coffee.
Post Reply
User avatar
Missy_Hissy
Reactions:
Posts: 168
Joined: February 20th, 2013, 6:00 pm
Answers: 4
Location: UK
Contact:

'Object In Mail' Opportunity Reward

Post by Missy_Hissy » January 21st, 2019, 3:51 pm

Guess who?
I'm working on a project whereby I'm hoping to provide an EP object as a reward for completing an opportunity. Simply providing the object instance name didn't work, nor did the 'MetadorInstance', as seen in some of EA's opportunities.

While browsing through the documentation and tutorials for the Careers mod, I came across the following in the EA Scripting Constant RewardInfo section:

ObjectInMail
  • ObjectInMail,<a random list of object names separated by semicolons>,<the unlocalized name of a sim in town>
  • A random object is chosen from the given list, and the reward is attributed to the sim with the given name (if one is found)
  • Note if the sim is not located, the object is added to the mailbox regardless
I'm not entirely sure I follow the explanation. The random list of objects is fine but it's the 'unlocalized name of sim in town' that's thrown me. Would I be right in assuming this refers to the sim who's completing the opportunity? If so, would the unlocalized name simply be {0.SimName} or {1.SimName} or is there something else to put here that I'm missing entirely?
Finally, would an EP object work in the random list of objects? I do remember a few years ago when I was creating my Apprenticeships there were issues in getting EP objects to work as promotional rewards (I was unable to get the Generations Diploma as the reward object at the end of the apprenticeship; I ended up using the skill certificates). If I remember correctly (and over the last couple of years my memory's gone to pot, so I apologise if I got this wrong) the issue extended to the OmniPromotionalRewards. So I was wondering if this extends to opportunity rewards too.

It's not a major thing however if I could get this working, I'd be really grateful.

Best Answer by Chain_Reaction » January 23rd, 2019, 4:04 am
Missy_Hissy wrote:
January 21st, 2019, 3:51 pm
Would I be right in assuming this refers to the sim who's completing the opportunity?
Nope. This was added for date gifts mostly. It's the Sim name whom you want the 'gift' to appear to be from. It has to be the English unlocalized name with no spaces, like BellaGoth. You can leave it blank or put gibberish there, but the comma needs to be there.
Missy_Hissy wrote:
January 21st, 2019, 3:51 pm
Finally, would an EP object work in the random list of objects?
Base game objects only I'm afraid.

GO TO FULL POST ➙

User avatar
Chain_Reaction
Site Admin
Reactions:
Posts: 7568
Joined: December 30th, 2011, 6:00 pm
Answers: 81
Contact:

'Object In Mail' Opportunity Reward

Post by Chain_Reaction » January 23rd, 2019, 4:04 am

Missy_Hissy wrote:
January 21st, 2019, 3:51 pm
Would I be right in assuming this refers to the sim who's completing the opportunity?
Nope. This was added for date gifts mostly. It's the Sim name whom you want the 'gift' to appear to be from. It has to be the English unlocalized name with no spaces, like BellaGoth. You can leave it blank or put gibberish there, but the comma needs to be there.
Missy_Hissy wrote:
January 21st, 2019, 3:51 pm
Finally, would an EP object work in the random list of objects?
Base game objects only I'm afraid.

User avatar
Missy_Hissy
Reactions:
Posts: 168
Joined: February 20th, 2013, 6:00 pm
Answers: 4
Location: UK
Contact:

'Object In Mail' Opportunity Reward

Post by Missy_Hissy » January 23rd, 2019, 7:30 am

Thanks for clarifying, Chain. I thought it probably was base game only but wanted to double check.
I shall adapt to my circumstances then! :yes: :D

Post Reply