Aller au contenu

Photo

Companion listening patterns


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
Proleric

Proleric
  • Members
  • 2 346 messages
In a module with multiple henchmen, is it possible to script a shout from the player that emulates their radial menu commands?

I know that their OnConversation script listens for the radial menu patterns.

What I have in mind is a one-click method to get the whole party to Stand Your Ground, Follow, Attack Nearest or whatever.
  • Grymlorde aime ceci

#2
Tchos

Tchos
  • Members
  • 5 050 messages

They're listening for it.  You just have to have something speak it.  Stuff like SpeakString("ASSOCIATE_COMMAND_STANDGROUND", TALKVOLUME_SILENT_TALK);


  • Proleric et Lightfoot8 aiment ceci

#3
Proleric

Proleric
  • Members
  • 2 346 messages
Unfortunately, that doesn't work, even if shouted.

As I understand it, ASSOCIATE_COMMAND_STANDGROUND is the constant (-2) which is returned when the listening associate hears the shout. What I'm looking for is the string to be spoken, which I guess is something else, but I don't know where to find it.

#4
Proleric

Proleric
  • Members
  • 2 346 messages
Never mind. It turns out that you don't need the shout, because you can force the response. For example,

int n = 0;
object oNPC = GetHenchman(oPC, ++n);

while (GetIsObjectValid(oNPC))
  {
    AssignCommand(oNPC, bkRespondToHenchmenShout(oPC, ASSOCIATE_COMMAND_STANDGROUND));
    oNPC = GetHenchman(oPC, ++n);
  }