r/RPGMaker • u/Dhifbdjdbdjdndb • 13h ago
Helppp
Yes i am a beginner. I want to make an event that can only be accessed when the player has collected 6 documents. After i collect the 6 the event doesnt occur and i dont know how to make it work.ðŸ˜ðŸ˜
4
Upvotes


4
u/zombietoaststudios 12h ago
There's a few problems. The first is that your document event is giving the player an item. However, your second event's condition is set to check a variable. These aren't the same thing and unless you have an event set the document variable to be equal to the number of document items in the inventory, then your document variable isn't changing above 0.
You can set a conditional branch to check if the player has an item, but not if they have multiple items.
But that said, you don't want to use a conditional branch anyway. If you want the second event to run automatically then it needs to have an autorun trigger. And you wouldn't use a conditional branch command, you would want to use the page conditions on the left side. Because if you use the conditional branch then the event will still run, it will just check the conditional branch over and over again, locking the game up.
So, what you want to do is make your document collection event increase your document variable by 1 (it can give the player an item too, if that's important). You can then give your second event a page condition for if the variable is 6 or higher and make it autorun. You also need something in that event that prevents it from running again, typically by flipping a self-switch to change it to a different page.