Dialog based on Party-Formation

Hey there, I wanted to ask, if there is a way to implement conditional branch dialog with "if character x is leader then..."? I wanted to let a passage be blocked by an NPC for my Character (1) and only with another partymember (a mother, 2) it'll be possible to trigger a dialog where she will distract him (during this dialog she will leave the party to be visually able to keep talking to the npc), so that he leaves (with her) his place and the (now solo) Character1 can enter the restricted area....
use a control variable to get the ID of the party leader (using the game data option), and then compare the content in a conditional branch
Sorry, ich switch kurz, ums eventuell etwas verständlicher zu machen^^'


Könntest du's mir etwas detaillierter erklären? Konnte aus der ersten Erklärung leider nicht ganz ableiten, was ich da am besten tun sollte...


Die Party-ID find ich (wenn das eh die 0001-0004 [default Akteure] wäre?), das mit der bedingten Verzweigung wäre auch kein Problem, aber das mit der Variablen hab ich nicht ganz nachvollziehen können, wie ich die zusammenstellen muss, damit das funktioniert, worauf ich hinaus wollte.
@Mozes, please post in english only, this is an english forum.


You use a control variable command, then click the selection of game data (the one that defaults to map ID), then click on the selector to the right of that.


In the next window, you select the option to get member#1's ID - that is how you get the ID of the party leader into the variable.


and then compare the variable if it is actor 1 or actor 2 or whatever
or In a condtional branch go to the script section and use the script call :


$gameParty.leader() === $gameActors.actor(x)


where x is the id of the actor you want to check for.
thank you for your help 🙂  ill try both of these!


PS: Sorry for writing German, I just thought since both of us use it as main-language, it would be ok :x ill keep that in mind for the future
German (or any other language...) is fine, as long as there's an English translation with it. Sometimes a nuance of an original language can help understand the question or post. Just sayin'.

Original thread: https://forums.rpgmakerweb.com/threads/dialog-based-on-party-formation.70162/