Background
My current project involves a lot of work on henchman and NPC conversations, including developing reaction and loyalty sub-systems.
Observation
The various XP2 henchman scripts make liberal use of OBJECT_SELF as the default source object of henchman. Many of these scripts execute from the PC's Action Taken tab of the conversation.
My Thoughts
In this recent experience of developing the reaction and loyalty sub-systems, it appears that when a script on either of the PC's convo tabs calls OBJECT_SELF, it always points to the most recent NPC Speaker. My theory is that the conversation is executing on the NPC object, since the conversation always starts on the NPC tab.
Questions
- How is it that the engine knows that OBJECT_SELF is the henchman and not the NPC when the script is executed on the PC's convo?
- Is it because the convo is started from the NPC?
- Is this true in the Text Appears tab of the PC's convo as well?
- What if another henchman butts in, does OBJECT_SELF point to the intruding henchman now?
- If so, at what point does it point back to the original henchman, if ever?
Can any of you expert scripters explain to this novice what may be painfully obvious to you but not to myself?
Thanks!