Posts: 1,382
Thanks: 2378 in 66 Posts
7 Achievements
Tree By Name name source private and Hobby Tips
I went on a wild goose chase to find out why a dining interaction crashed. I am working on a related mod and, of course, wanted to investigate the cause. I had a Dining Host invited to the lot (not working) who then went dining by herself. Initially, I thought it was somehow run stack object's stack of a bystander who was not dining.
I followed to the Tree By Name primitive, which is expected to call tree 6 "CT - Active Hobby Interaction" from the TemplatePerson, a strange place to stuff anything useful instead of PersonGlobals. But for the NPC Host tree 6 is "CT - Start Dining" to push all diners to get seated. Other NPCs have their own work-related code there.
The direct consequence of this might be that an NPC cannot share hobby tips. That would be acceptable. But it turns out that we cannot share hobby tips
to the NPC, and cause random trees from his repertoire to run instead.
It seems that the Tree By Name primitive pulls the name not from Me, as is usual, but from the target Stack Object, at least when he is in the same globals group as in the case of two people.
Here I put "CT - Start Dining" into the Easel, which was run when I clicked on an NPC Host who was painting on an easel.