Problem with RPG Maker MZ (Apple Quests)

Hello everyone I´m new here and I´m new with RPG Maker too what it means I´m pure beginners for now🙂

I tried since 2 weeks make a own Apple Quests but it doesnt work how I like it


I have distributed all the apples on the map and can easily collect all 10 apples afterwards, and they all end up in my inventory under item, that works great too, but if I want to put all the apples in the basket, it doesn't work somehow , I'll show you a few screens of my problems so that you might understand better what I mean. I hope someone will help me and Äpfel im korb is a german words and it means on english >>>>>>> apples in the basket
Problem.png
Problem.png
Problem2.png
Problem3.png
even if you call the variable "Apfel im Korb", that is NOT placing those apples into the basket.
what you're doing is loading the variable with the number of items the party has in its inventory.

that said, what exactly does not work? the sprite should change when you have 10 apples in inventory (the selfswitch is useless here, but it doesn't have any bad effect on the logic either)
Thanks you for answer 🙂

Could you maybe explain how to fix this problem? what I have to do now? sry I´m new in rpg maker and sry for my bad english, Im from germany

what should I change it?


I upload the project maybe someone can fix it for me hopefully that I learn it how I do it by myself in future:


Just click on the left side on the folder (äpfeln sammeln tutorial) with right click on mouse and download it for MZ
Thanks you for answer 🙂

Could you maybe explain how to fix this problem? what I have to do now? sry I´m new in rpg maker and sry for my bad english, Im from germany

what should I change it?
We can't help you fix the problem unless you tell us what the problem *is*.

Wir können zu nicht helfen, wenn du uns nicht sagen wo das problem liegt.
I have already described the problems and also shown screenshots and added a link to the folder
I have already described the problems
no, you haven't - you never told us what the event is supposed to do or to change.

the screenshots show what the event does (basically nothing), but at no point you describe what you wanted the event to do and the results that you want there.

and while we can make a few educated guesses, those guesses have been wrong in the past where other people made similar incomplete descriptions. and we don't want to waste our free time with wild guesses.
As Andar said, "it doesn't work somehow" gives us nothing to work with. Since we don't live in your head, we have no idea what you wanted it to do, or in what way it's not doing that. You need to tell us the expected result and also what result you're getting now.
Ok let me try to tell you all what I mean and what my goals are:


I created a map with a river and a tree, and the hero goes with a boat direction to the apple tree, and near the apple tree there are about 10 apples on the ground and I can collect them easily, so I managed to collect the whole thing and then they end up in my inventory. The only problem is when I'm approaching a basket and I want to put all the apples in the basket by simply pressing the button etc. but that doesn't work, so all 10 apples don't go in the basket, I hope you understood me my problems is So I want all my apples to be put in the basket


here a youtube video from me to show the problem, but it is on german:



what you all see is I can collects the apples easily, but I cant put the collected apples on baskets
I'm trying to download your project to see what the issue is, but my friend's wifi is veeeeeery sloooooow. Stand by.
your first mistake is thinking that you have a basket.
you don't - you have an event pretending to be a basket, but it is not a basket and as such it cannot hold anything by itself.
You need to create something that can hold the apples first, and in a lot of ways that depends on what you want to do with the apples later.

your second mistake is to assume that simply naming things would move content.
that is also wrong, and you named the variable wrongly as a result.

What you have so far is:
Code:
Control Variable #0001 "getragene Äpfel" = The number of Apfel

naming the variable as "apples in basket" does NOT place the apples into the basket, it still only counts the number of apples carried in the inventory without changing that inventory at all.

So now with that explanation, please tell us again what you want to happen to the apples.
your first mistake is thinking that you have a basket.
you don't - you have an event pretending to be a basket, but it is not a basket and as such it cannot hold anything by itself.
You need to create something that can hold the apples first, and in a lot of ways that depends on what you want to do with the apples later.

your second mistake is to assume that simply naming things would move content.
that is also wrong, and you named the variable wrongly as a result.

What you have so far is:
Code:
Control Variable #0001 "getragene Äpfel" = The number of Apfel

naming the variable as "apples in basket" does NOT place the apples into the basket, it still only counts the number of apples carried in the inventory without changing that inventory at all.

So now with that explanation, please tell us again what you want to happen to the apples.
The thing is, I can't see why it's not doing the graphic change, because even though you're 100% right, the condition for the page on the basket event that's full of apples is self switch A being on and variable 1 having a value >= 10, which should be met because when you interact with it the variable is set to the number of apples in inventory. So even though it's not "putting the apples in the basket" the event graphic should still be changing unless I've missed something obvious.

@KyouSan Have you pressed F9 during test play to bring up the debug window and checked that variable 1 does actually have a value of 10?
Trihan thanks you I hope the download will be working and I did not pressed F9 but let me try thanks

Andar; If you see the video: I´m collecting all ten apples and they are all in in my inventory >>>>>> Objects that works very fine, and what I want is I wanted put them on baskets, and should show the apples graphics in baskets event editor side 2
I think I might have figured it out.

You're setting the variable to the number of "apfel", but in your apple events, the item you're adding has no name; you know this because it's listed as "#0001" and not "apfel", so it has to be a different item. You need to change the apple events so they add 1 apfel and not whatever they're adding now.
they are all in in my inventory
that is because you never remove them from your inventory.

you'll need at least TWO variables for what you want, one variable "apple in basket" and one temporary variable for the carried apples.

then you need mathematics (control variable command) to add the carried apple to the apple in basket, and remover the apples from inventory after that (change items command)
I´m very new in rpg maker (experiencing since 2 weeks) And I dont know how to make with variables etc I hope someone making for me a sample one that I can check it out in project ( I would learn in this way better to understand the functions)

but I tried somethings that I hopped it will works too (failed)

in basket event on side 2:

Increase - 10 apples from inventory


but before Im collecting all 10 apples the baskets get full on apples, but I want collects first 10 apples and then do them to baskets and not earlier before im not collecting them....
I hope someone making for me a sample one
please search this forum for the variables guide. you can also find the link if you go through the starting point linked in my signature.

that is a game to play that explains to you how to use variables.

because no single example will be enough to learn - variables are too important and you need to fully understand them to have a chance of making any game of any kind.
but with example of an apple quest like this I would learn it easily how to use it
but thanks Im ready to learn understand the whole variables and switches, and is there maybe a ebook for MZ available? if it is possible I would learn it on german, because my english is to bad
I could be wrong, but I believe the following two content creators on YouTube both have multiple playlists (in German) for both MZ and MV. I am also very new to RPG Maker and watching tutorials on YouTube has taught me a lot. I hope this helps.



And from what I have seen so far, a lot of tutorials for MV also apply to MZ for basic functionality.
Thanks you very much, I know the two contents creators in youtube, they have a lot of good tutorials, but there is no every tutorials what you need, I need a Apple Quests tutorial, and I hope someone will make one for me and for all beginners 😉
Thanks you very much, I know the two contents creators in youtube, they have a lot of good tutorials, but there is no every tutorials what you need, I need a Apple Quests tutorial, and I hope someone will make one for me and for all beginners 😉
So you have to take what you learn from switches and variables and apply that to any quest you conceive of. You need to learn the concepts and then apply then more generally.

Or maybe someone here who knows more than me can make your quest for you.

Good luck!

Original thread: https://forums.rpgmakerweb.com/threads/problem-with-rpg-maker-mz-apple-quests.144927/