Hi, everyone. Just wondering. How do you make a henchman initiate a conversation when you do something, say open a door? Presumably you’ll need to place some script in the OnOpen slot of the door. I already know how to make a henchman blurt out a one-liner in this way, but now I’m aiming for more: I want the henchman – and only the henchman of my specification, so that if I happen to have another henchman that other one will keep silent – to start with a specified node (how to specify?) in the conversation file assigned to him as a henchman. (Or should it be a separate conversation file altogether, to be specially created for the present purpose?) I suppose I’d need to use ActionStartConversation, but I’m not sure how.
I reckon the script should go something like this if I have a henchman named Aiden:
void main()
{
//Verify that the user is Aiden’s Master.
object oAiden = GetObjectByTag(“aiden”);
object oClicker = GetLastUsedBy();
object oMaster = GetMaster(oAiden);
if (oClicker == oMaster)
{
//Verify that Aiden is still alive.
object oAiden = GetObjectByTag(“aiden”);
if (oAiden != OBJECT_INVALID)
{
//If he is, let him start a conversation and make sure he only does this once, meaning he won’t do it again if you open the thing again later.
int iAidenTalk = GetLocalInt(OBJECT_SELF, “AidenTalk”);
if (iAidenTalk < 1)
{
SetLocalInt(OBJECT_SELF, “AidenTalk”, 1);
??? (here’s where I wouldn’t really know what to do…);
}
}
}
}
Help, please, anyone? Thanks!