Posts: 2,623
Thanks: 7613 in 19 Posts
26 Achievements
View My Journal
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
Perhaps someday I'll have leisure time back...