[RMVX ACE] NPC DIALOGUE BASED ON WHO YOU CURRENTLY CONTROL
Posts
Pages:
1
This probably sounds like a dumb question and maybe I just haven't found the right method but still...you know how with Yanfly's Party System script where you can rearrange who you're controlling in-field and in-battle? Well whether it be through that or however others may do it, what I'm curious about is what the best way to make it so that if you're character A and you switch to character B then you get dialogue meant for B instead of A. So say like...
NPC to A: Hey there! How you doing?
NPC to B: ...Hey...
Now I don't know if there's some sort of scripting method to it because I know it will involve conditional branches with it but I haven't been able to figure it out. It's something that would be cool to have if at one point in a game I have NPCs that will only respond to like a certain character in your party and only if you're directly controlling them. So if any of that is possible, I'd like to know how I can do it.
NPC to A: Hey there! How you doing?
NPC to B: ...Hey...
Now I don't know if there's some sort of scripting method to it because I know it will involve conditional branches with it but I haven't been able to figure it out. It's something that would be cool to have if at one point in a game I have NPCs that will only respond to like a certain character in your party and only if you're directly controlling them. So if any of that is possible, I'd like to know how I can do it.
There's a simple way to do that. In the Variable Event there's a Game Data check (Game Data> Party) for the ID of Member x (x being the number of the character. The lead would be Member #1). Just set a variable to this, then use Conditional branches to check which ID corresponds to that variable.
The ID is the number next to them in the Database. So, say Tony is 0001 ID and Jack is 0004 ID. Set the variable equal to the ID of Member #1. Then have a conditional branch check the variable. If it's set to 1 then Tony is in the lead. If it's set to 4, then it's Jack instead.
^.^
The ID is the number next to them in the Database. So, say Tony is 0001 ID and Jack is 0004 ID. Set the variable equal to the ID of Member #1. Then have a conditional branch check the variable. If it's set to 1 then Tony is in the lead. If it's set to 4, then it's Jack instead.
^.^
@Liberty Well what do you know, it actually worked! Thank you very much! This was just something that's bugged me for a long time and I can't believe it was that simple.
Pages:
1















