Looking for help creating a mini-game in my game.

The character has to push these sheep into a barn. I was able to figure out how to do one. But don't know how to do the rest.
Could this tutorial help you?
Nope. That is about pushing and pulling. I'm trying to make it so the barn door opening will allow multiple sheep to be pushed into it. Each time raising the counter for each sheep.
In that case, can you be a bit more detailed about what you want to happen in the events and where the problem is? The player should just "scare" the sheep into moving to the barn door, and then disappear into it? What happens when you try with another sheep? And so on :LZSwink:
IDK how to set the parallel process on the barn door to accept more than one sheep. It can track and count the first one. Yes, the sheep disappears for good when it is pushed in. I tried copying it with the second sheep but it has no effect.
well your barn door open event says when sheep 1 is at the same position do this.
you don't have anything there for sheep 2 or 3 and so on.

You could maybe reverse that and have the condition checks on the sheep so each sheep is checking
where it is when you push it. if on the door then turn switch on, door opens and move sheep in.
Yeah, I tried different things but since they didn't work I erased them. Can you do a screenshot to show me how to set it up? I know how to set up the other sheep. But not the events themselves. Well, I just start with the barn door already open.
*Bump
In my case, I'm a scripter not an eventer but a demo would help people like me modify it till it finally pushes all the sheep inside the barn.
You have an 'erase event' command there after you push the first sheep inside. Take that out.
Also add 'through on' in the movement route after the 'change graphic -> none'.
And after the 'control variables: sheep in barn' add a conditional IF (sheep in barn) >= *the total number of your sheeps* ---> self switch A on (to a page that says "all sheep in barn", or whatever).

Then have your parallel process also track the coordinates of sheep 2, sheep 3 etc, the same way as sheep 1.
And copy (of course changing the coordinates to sheep 2, 3 etc) the conditionals in your "button" parallel event for sheeps 2, sheep 3 etc (no erase event, and with 'through on' and with the conditional for total number of sheeps, like said above).

That should work?
EDIT: PS. I'm also not sure why you have that 'change transparency: OFF' in that one parallel event? Seems useless?
make the sheep do it's own calculation, not the door.
you can code the move route with script calls for collision and such.

another way is to use dynamic copies of the same sheep (the same exact event, with the same code, duplicated) or with something like Victor Sant's plugins, which I know have route tools.
but try first flipping it around, and we'll see from there.
You have an 'erase event' command there after you push the first sheep inside. Take that out.
Also add 'through on' in the movement route after the 'change graphic -> none'.
And after the 'control variables: sheep in barn' add a conditional IF (sheep in barn) >= *the total number of your sheeps* ---> self switch A on (to a page that says "all sheep in barn", or whatever).

Then have your parallel process also track the coordinates of sheep 2, sheep 3 etc, the same way as sheep 1.
And copy (of course changing the coordinates to sheep 2, 3 etc) the conditionals in your "button" parallel event for sheeps 2, sheep 3 etc (no erase event, and with 'through on' and with the conditional for total number of sheeps, like said above).

That should work?
EDIT: PS. I'm also not sure why you have that 'change transparency: OFF' in that one parallel event? Seems useless?
Ok, I tried following your instructions. But I'm still doing something wrong. I don't know what you mean by 'to a page that says "all sheep in barn",' All the pages are on one event per sheep and all are named the same. I tried using the parallel process to track more than one. Can't get it to work either. The change transparency is off because I have it set to default to 'on' in the system setting. So you don't see the characters when the game starts. And I'm using a test map until I can get it working right.
make the sheep do it's own calculation, not the door.
you can code the move route with script calls for collision and such.

another way is to use dynamic copies of the same sheep (the same exact event, with the same code, duplicated) or with something like Victor Sant's plugins, which I know have route tools.
but try first flipping it around, and we'll see from there.
Yes, that is what I'm trying to do. I'm using too many scripts already. I had to completely remove one script because it stopped another one from working.
Took a quick glance, it seems your move route is trying to control sheep 2 in both cases. The other one should control sheep 1?

Also, don't put that 'sheep in barn' >= 4 (EDIT: should be 2, with 2 sheep?) inside the other conditionals. Put it on its own, at the end (but leave the move route and the control variables: sheep in barn +1 inside the other conditionals).
Yep, I missed that move sheep one. I'm only using two for now until I can get it to work. I have a learning disorder. I can't follow written directions very well. Can you just post screenshots of what it looks like?
Ok here (for the other sheep just replace everything that says sheep1 with sheep2):


Sheep.JPG
Ok. Thank you. It's working now. Now it's time to add all the stuff I forgot to mention.

Original thread: https://forums.rpgmakerweb.com/threads/looking-for-help-creating-a-mini-game-in-my-game.158577/