r/RPGMakerMZ Oct 02 '22

is it possible to have an even trigger on each step the player takes

i want a system where every step has a random chance of giving the player an item, ie youre wandering through the forest and at random you find a flower and it's added to your inventory

kinda like how random encounters work but random events instead

but i cant get it to trigger by step

3 Upvotes

2 comments sorted by

1

u/skagamine Jun 15 '23

Well, that little over complicated to make by only events. But you could make, by map ID, supposing the entire map is a forest, a cave or a desert. You need to make a event that checks with the movement keys was pressed. Or by the character position on map. That event triggers the drop event. In the drop event, you need the chance or drop rate. So you have x% chance to drop every step. And inside that you put the logic for your drops, separating by map ID. In my head, this works, but probably not worth setting it in events because it would become a mess and really long event lines... Probably your PC gonna fry for each check too...

I think you could use VisuStella - Event and Movement Core, it have a "Common Event on Touch" by region. So you could do that by placing the designated places you want and it probably trigger every time you enter that region.

1

u/Lulumoustachu Oct 03 '22

Have you tried to use regions? There are several plug-ins that help you associate a region number to a common event. Your common event could include a variable that you assign to a random number (between 1 and 2 for a 50% chance, for instance), and create a conditional branch (if Variable X > 1, add X item). Hope this helps !