@maybesomethingdunno Thank you! I've attached both a picture and the file is below.
Here's what I'm trying to do: With the hiking interaction as a basis, I want my sim to leave the lot for a while, then return with an item in their inventory. But I am still rather amateur with the operands and opcode.
I do know I'll need to fix the hiking interaction later (Because they aren't hiking. They'll be trick or treating. I don't want random hiking elements or consequences popping up later.) I'm also thinking of the sim carrying a bag off lot and when they return, but I'll worry about pipe dreams later.
If you turn on debug mode (boolProp testingCheatsEnabled [true/false]), it will likely throw an error at node 3. That BHAV node needs to be Temp 0x000 not Temp[Temp 0x000].
So long as you are using the hiking controller and its interaction, the Sim's interaction is literally going to be the hiking interaction. You will want to use your own interaction so they don't return covered with poison ivy Furthermore, I think once you have pushed an interaction from another object onto a Sim, they will leave the current interaction. What I mean is that the hiking interaction will replace the Sim's current action on your object. The Sim will get back from the hike and their action queue will be empty; they do not continue down to where you are adding the inventory code to add the candy.
If you want to use a controller, clone the hiking controller, take out the hiking-related elements you don't want, and add the elements you do want (like getting treats) into it.
Otherwise, you would want to look at the hiking controller or a mod like Smonaff's Jogging Mod to see how to make a Sim walk to a pedestrian portal, leave the world, and come back. Extract that technique and put it into a self-contained interaction inside your object instead of pushing the interaction onto a Sim from a controller object.
Whichever of those depends upon how you want the interaction to be initiated.
I don't mind if you call me "MSD" or something for short. Tumblr
@maybesomethingdunno So, in other words, I'm probably better off putting together my own interaction and using elements like Smonaff's mod. That might be my best bet. In that case, my main work is figuring out how to get them off world then come back after a certain period of time.