I thought I had to use parallel processing for this, one of the staff mentioned it.
[MV] Free time event/friendship?
RPG Maker MV SupportI thought I had to use parallel processing for this, one of the staff mentioned it.
Nope. We just said do you know how to use them, as it MIGHT come up. There's a difference.
As for how to do this, make sure you have only one person in the party, the other party members are on the map as events. Everything you want to happen with that party member is in the event that represents that party member. Repeat for each party member. The event priority is same as character, action button. Nothing else will work well in my experience.
As for how to do this, make sure you have only one person in the party, the other party members are on the map as events. Everything you want to happen with that party member is in the event that represents that party member. Repeat for each party member. The event priority is same as character, action button. Nothing else will work well in my experience.
kk, how do I create a variable to determine how far you are into the friendship, ex: after first event fills the friendship gauge 1/5, then second time is 2/5, etc. basically 5 free time events for each character is what I want to do.
Alright ... you said that you will be the main character, going around talking to everyone else. Do you know for sure who is going to be in the party at this stage? Will the number of people you can talk to on this map increase as you go along? If it's always going to be exactly the same people, then it's easy to do. If the number of people will change, or people leave/join your party at different times so it could always be a different group of people, then it will be more complicated.
Let's use the example that you know exactly who is going to be there, and it will always be the same group, no matter when you come to this map during the game.
Create a parallel process common event that has Change Party Member commands for every actor except the main character, to remove them from the party. At the end, add an Erase Event command.
Create NPC events for each one of those actors and add whatever dialogue you want to happen between them and the main character. If the dialogue will change at different stages of the game, use a switch or variable to change the game "state" (where the game is up to), and then use multiple pages for each event, conditioned by that switch/variable so later pages become active as the game progresses.
Then on the exit event, either before or after you transfer off the map, add Change Party Member commands for every actor except the main character, to add them back to the party.
Now, using the example that you DON'T know exactly who is going to be there, and that the party members will change, it will be similar, but you will need to add a check for who's in the party to all of your events.
On the parallel process event, do a Conditional Branch for each actor to see if they're in the party. If they are, turn on a switch (a different switch for each actor), and remove them from the party. Again, add the Erase Event command at the end.
On the NPC events, condition every page by the switch for that actor.
And on the exit event, do a Conditional Branch to see if the switch for each actor is on, and if it is, add them back to the party. At the end, turn all of those switches off.
With this version, it keeps track of who is in the party, and it only makes the NPC events for those characters active, and it only adds those characters back at the end.
Note - both of these methods will very likely change the order of party members, if your player is allowed to change their order through the Formation command in the menu. You are adding them back in a specific order each time, rather than checking what order they were in when you removed them. To add that ability, it would be quite a bit more complicated, and would require script calls.
To change the friendship variables, you just use Control Variables, and do += 1 rather than "set" 1. And don't ever set the variables to 0 unless you want to reset the friendship status. By default, they will be 0 to start with.
Let's use the example that you know exactly who is going to be there, and it will always be the same group, no matter when you come to this map during the game.
Create a parallel process common event that has Change Party Member commands for every actor except the main character, to remove them from the party. At the end, add an Erase Event command.
Create NPC events for each one of those actors and add whatever dialogue you want to happen between them and the main character. If the dialogue will change at different stages of the game, use a switch or variable to change the game "state" (where the game is up to), and then use multiple pages for each event, conditioned by that switch/variable so later pages become active as the game progresses.
Then on the exit event, either before or after you transfer off the map, add Change Party Member commands for every actor except the main character, to add them back to the party.
Now, using the example that you DON'T know exactly who is going to be there, and that the party members will change, it will be similar, but you will need to add a check for who's in the party to all of your events.
On the parallel process event, do a Conditional Branch for each actor to see if they're in the party. If they are, turn on a switch (a different switch for each actor), and remove them from the party. Again, add the Erase Event command at the end.
On the NPC events, condition every page by the switch for that actor.
And on the exit event, do a Conditional Branch to see if the switch for each actor is on, and if it is, add them back to the party. At the end, turn all of those switches off.
With this version, it keeps track of who is in the party, and it only makes the NPC events for those characters active, and it only adds those characters back at the end.
Note - both of these methods will very likely change the order of party members, if your player is allowed to change their order through the Formation command in the menu. You are adding them back in a specific order each time, rather than checking what order they were in when you removed them. To add that ability, it would be quite a bit more complicated, and would require script calls.
To change the friendship variables, you just use Control Variables, and do += 1 rather than "set" 1. And don't ever set the variables to 0 unless you want to reset the friendship status. By default, they will be 0 to start with.
actually your party only gets changed during each mission in the story, whenever you're not doing a mission or dungeons (bonus stages for materials/cash/etc) it is only the main character in your party, also is there a way to put a friendship cap? as in once your friendship is maxed with a character, the character can still be seen during free time, however, interacting with them is like talking to any other NPC.
You know, you don't have to quote the entire post every time you reply.
For a max, you just do a conditional branch to see if the variable is less than the cap, and you only increment it if it is.
You should probably go through some of the beginner tutorials in Andar's signature. This is pretty basic stuff that you really should learn about in the early stages of working on your game.
For a max, you just do a conditional branch to see if the variable is less than the cap, and you only increment it if it is.
You should probably go through some of the beginner tutorials in Andar's signature. This is pretty basic stuff that you really should learn about in the early stages of working on your game.
actually I've been following a series of videos, however, they never went over the parallel stuff.
Be careful with videos - sometimes they teach the wrong way to do things.
Well I tried my best at understanding Andar's guide but it didn't work I set up an event in a way that let's me repeat it until I reach the friendship cap at 5, no skill is added or anything, here's my event.
And? Does it work? We can't read your mind - are you just showing us the event, or are you asking for help because it doesn't do what you want it to do? You really need to give us more information. What happens? What are you expecting to happen? Did you talk to the NPC 5 times? What's self switch A for? That's going to turn on the very first time you talk to the NPC, not after 5 times, but it's not going to do anything because you have no other page conditioned by self switch A.
You've used variable 1. Do you have any plugins? Do any of those plugins use variable 1? I'm almost certain we've told you that you can't use the same variable numbers as your plugins - that they are plugins which is NOT the same as plug-n-play.
If nothing happens it's probably because you've got a plugin that uses variable 1, and it's already greater than 5.
You've used variable 1. Do you have any plugins? Do any of those plugins use variable 1? I'm almost certain we've told you that you can't use the same variable numbers as your plugins - that they are plugins which is NOT the same as plug-n-play.
If nothing happens it's probably because you've got a plugin that uses variable 1, and it's already greater than 5.
Above the picture, I mentioned "but it doesn't work"
and as far as I can see, none of my chosen plugins use variable 1.
Please answer ALL the questions you are asked. I don't want to have to keep asking the same things over and over. "It doesn't work" means absolutely nothing to us without the other answers.
Hit F9 and see what is in variable 1, before and after talking to the NPC.
1. It plays the event
2. to play the event then increase the variable by 1 which it does.
3. I spoke to the NPC several times.
4. I forgot to remove that when I tried adding more before.
5. here's what it shows is on the variables.
@Lyseth I have already mentioned to you the importance of helping people to help you. One of the most fundamental ways you can do that is to answer all the questions you are asked. Before hitting that Post Reply button, check through the other person's post to make sure you have done just that. People cannot act on information that you withhold from them - and yes, not giving it is the same as withholding it. Why do you want to make it more difficult to help you?
As for Andar's tutorial - did you actually play through the 2 playable tutorials that he links to, one on Event Commands and one on Switches and Variables, because it seems you probably didn't. You will not learn anything like as much from watching a video as actively playing through these.
EDIT
You were asked to check the variable before and after you have spoken to the NPC. Is that screenshot of the variables from before or after? You don't tell us.
As for Andar's tutorial - did you actually play through the 2 playable tutorials that he links to, one on Event Commands and one on Switches and Variables, because it seems you probably didn't. You will not learn anything like as much from watching a video as actively playing through these.
EDIT
You were asked to check the variable before and after you have spoken to the NPC. Is that screenshot of the variables from before or after? You don't tell us.
Well, there is no reason I can see on your event that it would not increment. After the Control Variables, do a Show Text box and put in \v[1] as the text to show. This will repeat back to you the value of variable 1 after each increment. Also do a Show Text at the time you give the skill - say something like "giving venom blade". Show Text can be really useful when debugging an event - it lets you see exactly what is being executed. Then go and interact with the NPC 5 times and confirm that the variable is being incremented to 5, and that the "giving venom blade" text gets shown on the 5th time. If it doesn't, go back into F9 and see what the variable is set to.
Who is the actor {Friendship}? Is that actor 2? Are you checking actor 2 to see if they've learned the skill? What is the skill type set to? Does the actor have the ability to learn the skill?
I bet the event is working just fine, and it's something to do with the skill/actor/class - the skill is being given, but the actor isn't able to use it, so you don't see it in the menu.
Who is the actor {Friendship}? Is that actor 2? Are you checking actor 2 to see if they've learned the skill? What is the skill type set to? Does the actor have the ability to learn the skill?
I bet the event is working just fine, and it's something to do with the skill/actor/class - the skill is being given, but the actor isn't able to use it, so you don't see it in the menu.
Friendship is just the variable name for the testing, it's linked to actor 2 presently
EDIT: Also the skill is added to the main character (Actor 1), the main character unlike the rest doesn't learn many skills as he levels up, but he has skills that change his skill roster around as well as his element, and he gets these unique skills from befriending characters.
EDIT 2: Skill type is "special" which the character has access to, and the \v[1] doesn't display until the parallel process hits 5, even then, the skill is not added, I made sure actor 1 had all appropriate credentials to learn the skill and that the skill also has appropriate credentials, but nothing's happening still
EDIT 3: NVM, fixed the \v[1] error, I just placed it in the wrong spot.
So when you put \v[1] in the correct place, does it count up to 5, and does the extra that you added when the skill is learned text show when it reaches 5?
If {Friendship} is linked to actor 2, and you only have actor 2 in the party, how do you know whether actor 1 is getting the skill or not? Where are you giving the skill to actor 1? I only see you give it to the actor called {Friendship} - you just said that is not actor 1.
If {Friendship} is linked to actor 2, and you only have actor 2 in the party, how do you know whether actor 1 is getting the skill or not? Where are you giving the skill to actor 1? I only see you give it to the actor called {Friendship} - you just said that is not actor 1.
Friendship is just a variable, not an actor, I just linked it to actor 2 is all, also yes it does count up each time now, and as stated the special friendship skills are added to Actor 1, not to anyone else, I just set up "change skill" to trigger upon reaching 5 now.
Actually, it IS an actor. Right there in your If variable = 5 test, you say to give the skill to the actor whose name is {Friendship}. We can't see the actor id in that command. You say {Friendship} is linked to actor 2, but the skill is being given to actor 1. Both of those statements can't be true. Unless Actor 1 is called {Friendship} as well, then you are giving the skill to actor 2, and it's therefore obvious why actor 1 is not getting the skill.
Please show a screenshot of your Actors tab, with actors 1 and 2 visible.
And PLEASE answer all questions. It is really tiring to only get some answers and have to ask the same questions again.
OH okay, yeah I never saw anything about the variable requiring an actors name as well
here's the list of ALL actors with their actual names (Actor 1 was Selidan and actor 2 was Cynthia)
Original thread: https://forums.rpgmakerweb.com/threads/mv-free-time-event-friendship.89057/