Aller au contenu

Photo

Multiple NPCs joining from a convo


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

#1
Caldarin V

Caldarin V
  • Members
  • 269 messages
so I have the plot working so that at the end of a convo an npc joins, but there is a second I want to have join as a result of the conversation. Is there a way to make 2 npcs join from the same conversation?

#2
ladydesire

ladydesire
  • Members
  • 1 928 messages
I believe it should be possible to do so; you would have to handle adding both in the same script, and only call the party picker once.

#3
Proleric

Proleric
  • Members
  • 2 350 messages
Yes, you can do this. Typically, you'd set a plot flag in conversation to trigger joining, handling that event in the plot script. There's no reason why you can't have two plot flags on different conversation nodes for the two followers.

If you're not using the partypicker, both followers will join at end of conversation.

I'm not sure what happens if you request a partypicker launch twice in the same conversation. If it doesn't work, you'd need to modify the join plot script to defer partypicker launch until end of dialogue.

The only issue I've encountered with simultaneous joiners is with a test script that uses CreateObject to make an instant party with three followers. I find that a one second delay between Create Object and setting the join plot flag prevents engine meltdown. In conversation that's not a problem.

#4
Caldarin V

Caldarin V
  • Members
  • 269 messages
Thanks Proleric and Lady!

#5
Caldarin V

Caldarin V
  • Members
  • 269 messages
Sorry I've taken so long to get back on this, but I'm having the problem still- basically, the one who "initiates" the conversation joins. If I re-initiate the convo, the second one joins up though

#6
Proleric

Proleric
  • Members
  • 2 350 messages
I've seen that before. It may well be that your "join" plot script assumes that the conversation owner is the follower object. There can only be one owner at a time, so only one joins per conversation.

Assuming you have a different "join" plot flag for each follower, set the follower object explicitly in each case (using GetObjectByTag).