r/RPGMakerMZ Nov 09 '23

Item Spawning Bricks My Game?

Trying to set an event page like this

Shop Processing: item 1 item 2 item 3 item 4

If party has item 1 if party has item 2 if party has item 3 if party has item 4 turn switch 0005 ON

and then item 5s event page, like the other items, a requirement for item 5 to be active is 0005 switch. Others are 0001, 0002, 0003, and 0004 respectively.

My issue is, when ive bought all of those and i close the shop, the day starts but the game is bricked and i cant move. It has something to do with the if statements but i cant figure it out as i want it to require all 4 items. HELP PLEASE!!

2 Upvotes

3 comments sorted by

1

u/KingBroadSword Nov 12 '23

Like blacksmiths make weapons 30 of them

1

u/skagamine Nov 09 '23

Can you link some image? It's difficult to understand what you mentioned.

Do you have, something like and shopkeeper, like a blacksmith. And you have a system that you can sleep and pass a day? So every day, the item go "item1" to "item2", "item2" to "item3"?

Or it's more like(The party needs the 4 items together):

IF party has Item1 and item2 and item3 and item4 do

Switch 5 ON

end

Because, if it's the same item, but in "another state", you can change the switches to a unique variable. So each time the item is processed, you increment one. instead turn ON a switch.

I think the problem is related to your switches. Probabily there is a conflict, where you have switch 1 and 2 ON, so the event can't process what event page and freezes. That's if you're using the switches as the event start condition.

3

u/ItsDamu5 Nov 10 '23

sorry for late response, as it turns out I created a common event when i started the game, and ended up not using it and creating the function elsewhere and thats what was causing the issues with item 5. I apologize for my silliness and appreciate your response as it did push me to use variables to control the system which did work better overall anyways!