Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.
Original Source
- Original title: [Solved] Making random encounters
- Original author: MegaGothmog
- Original date: May 29, 2023
- Source thread: https://forums.rpgmakerweb.com/threads/solved-making-random-encounters.157909/
- Source forum path: Game Development Engines > RPG Maker MZ Support
Summary
I want to add random encounters to the world, but not simply enemy encounters after x-amount of steps. For example; I want to have the characters walk in region 1, and while they're there, there is a chance one of 5 encounters is triggered. I thought I could do it like this; When the characters walk through Region 1, a region tracker would play a Common Event.
Archived First Post
I want to add random encounters to the world, but not simply enemy encounters after x-amount of steps.
For example; I want to have the characters walk in region 1, and while they're there, there is a chance one of 5 encounters is triggered.
I thought I could do it like this;
When the characters walk through Region 1, a region tracker would play a Common Event. Protected download
That common event would then pick a number between 1 and 30. If the picked number is 1, 5 or 7 etc. an event would play. Any other number and nothing would happen.Protected download
Unfortunately its not working the way i want to. At first the region tracker event caused the common event to play constantly, since I have it run parallel. Otherwise it wouldn't play at all.
Now, after changing the name, it runs either not at all, or only when I enter the map after leaving a village. And then it only plays once and not again.
What I want is the common event to play when a character stands on a tile that is marked as Region 1.
The common event then runs a number once. If that number corresponds with an encounter, the encounter is played. If not, then nothing happens until the player moves to the next tile marked as Region 1.
I hope it makes sense. Does anyone know if this can be done within MZ itself, or do I need a plugin for this?
For example; I want to have the characters walk in region 1, and while they're there, there is a chance one of 5 encounters is triggered.
I thought I could do it like this;
When the characters walk through Region 1, a region tracker would play a Common Event. Protected download
That common event would then pick a number between 1 and 30. If the picked number is 1, 5 or 7 etc. an event would play. Any other number and nothing would happen.Protected download
Unfortunately its not working the way i want to. At first the region tracker event caused the common event to play constantly, since I have it run parallel. Otherwise it wouldn't play at all.
Now, after changing the name, it runs either not at all, or only when I enter the map after leaving a village. And then it only plays once and not again.
What I want is the common event to play when a character stands on a tile that is marked as Region 1.
The common event then runs a number once. If that number corresponds with an encounter, the encounter is played. If not, then nothing happens until the player moves to the next tile marked as Region 1.
I hope it makes sense. Does anyone know if this can be done within MZ itself, or do I need a plugin for this?
Downloads / Referenced Files
Log in to download
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadReferenced Images / Attachments
Creator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
0
replies
1
view
Topic Summary
Loading summary...

