Random Encounter Events MV

In RPG Maker, you can set up your maps so that the player will randomly encounter enemies. You can choose what enemies will be present on the map, what regions they will be available in, how often they will show up, and so on.

randomEncounterEvents3

During the game, the player can then explore your maps and randomly encounter enemies.

However, what happens if you wanted to have some more control over the random encounters? What if you wanted to increment some variables depending on what you encountered? Or perhaps give the player a chance to skip the encounter by pressing a certain sequence of buttons in time!

This plugin gives you the tools to apply your eventing knowledge towards random encounters as well.

When the player runs into a random encounter, a common event of your choice will execute, before the battle begins.

Download

Plugin: download here (right click and save as)

Installation

Download the plugin and place it in the “plugins” folder in your project’s “js” folder. Then open your Plugin Manager (F10), double-click an empty row, and select the HIME_RandomEncounterEvents plugin. Please do not rename this.

Once it is in your list of plugins, turn the plugin on.

Usage

Begin by reserving a variable in your game. This is a special variable that the game will use to determine which common event will run.

Next, go to the plugin manager, double-click on the RandomEncounterEvents entry, double-click on the “Variable ID” entry, and enter the ID of the variable that you’ve decided to use.

randomEncounterEvents2

And now everything is ready.

Quick Tutorial

To test that it works, follow this example:

1. Let’s assume you have chosen variable 10 as your random encounter variable, and that your map has some random encounters set up.

2. Create a common event that will display a message “Encounter!” We’ll assume this is common event 1.

randomEncounterEvents4

3. Start testplay, press F9, and change the value of variable 10 to the ID of the common event you set up in step 2. In this case, I will set it to 1.

randomEncounterEvents6

4. Now, run around and wait for a random encounter. At some point, you should get a message that says “Encounter!”, and once you finish reading the message, the battle will occur.

randomEncounterEvents5

If you see the encounter message, then your random encounter event has been set up successfully. You can choose which common event to run at anytime using events.

Skipping Encounters

This plugin let’s you skip random encounters in your random encounter
event.

To do this, you would make a script call

  $gamePlayer.cancelEncounter();

Which would basically tell the engine to ignore the battle.

Accessing Encountered Enemy Information

In your common event, you will have access to the enemy troop that you encounter.

You can access the troop through this object in script calls

  $gameTroop

I will provide a separate tutorial showing some things you can do with the troop information.

You may also like...

36 Responses

  1. Hi, It has come to our attention that you are using our client’s photographs on your site without a valid licence. We have already posted out all supporting documents to the address of your office. Please confirm once you have received them. In the meantime, we would like to invite you to settle this dispute by making the below payment of £500. Visual Rights Group Ltd, KBC Bank London, IBAN: GB39 KRED 1654 8703, 1135 11, Account Number: 03113511, Sort Code: 16-54-87 Once you have made the payment, please email us with your payment reference number. Please note that a failure to settle at this stage will only accrue greater costs once the matter is referred to court. I thank you for your cooperation and look forward to your reply. Yours sincerely, Visual Rights Group Ltd, Company No. 11747843, Polhill Business Centre, London Road, Polhill, TN14 7AA, Registered Address: 42-44 Clarendon Road, Watford WD17 1JJ

  2. How to take CBD Gummies for the best results: There are many benefits of CBD Gummies, but the question of how to take them is still a bit mysterious. Here are some of the most common questions and answers.You can also read more about their ingredients. You may also be interested in how to take them at work. After all, how can CBD gummy help you in the office? Let’s find out! Keep reading! Then, you will be able to decide if they are for you!  Taking CBD Gummies with you to work is a convenient way to boost your energy levels and combat anxiety. These tasty treats do not take up much space and will not disturb your day. Besides, there are no obvious side effects that will draw attention to your consumption.These tasty Gummies are as harmless as any other supplement or medication. So, you can use them without worrying about being judged or ridiculed. CBD is an effective pain reliever. When taken regularly, these Gummies can significantly boost your energy levels. It has been shown that CBD improves the ECS, which regulates sleep-wake cycles. This in turn leads to less pain.CBD Gummies offer a delicious way to boost your energy levels and get the rest you need at work. For optimal results, use a single dose every day CBD Gummies are a popular way to supplement your CBD intake. They are made from hemp extracts and come in a variety of flavours. CBD Gummies dosing:osing depends on your body’s tolerance to cannabidiol (CBD) and how much you’re willing to consume. They are easy to take, but the proper dosage for you will depend on your weight and the strength of the gummy.CBD is a compound extracted from the hemp plant, a member of the cannabis plant family. CBD is extracted from the hemp plant and is known as CBD oil. Dosage will depend on the desired effects. The recommended dose for adults is 0.25mg to 0.5mg per kilogram of body weight. Regular CBD dosages will improve immune function, limit environmental hypersensitivity, and reduce minor discomfort.You can double your dosage to 0.5mg every 8 hours or up to twice a day. If you feel like you need more CBD, you can double or triple it. To take CBD in gummies, you can either take one or two gummies once or twice a day.  Taking CBD Gummies with you everywhere:

  3. gen 200 says:

    CBD Edibles are currently legal in the UK, making them a safe and convenient option for those looking to incorporate CBD into their wellness routine. At our store, we use only high-quality CBD oil in our edibles, ensuring that you get the best possible experience.

  4. drag vapes says:

    CBD is believed to interact with the body’s ECS, which is thought to play a role in regulating various bodily functions, potentially contributing to a sense of overall balance and well-being.For a convenient and enjoyable addition to your wellness routine, CBD gummies can be a practical choice. A single daily dose is typically recommended for consistent support of a health-focused lifestyle.

  5. Best CBD Gummies UK in 2024

  6. CBD edibles do not need to be refrigerated unless you are living in a hot climate. They will be comfortable below 25 degrees Celsius. However, CBD edibles should be avoided from coming into contact with direct sunlight. Excessive heat for a sufficient period can cause long-term damage to the taste and potency of this item.

  7. We recommend up to 3 gummies per day for the 300mg regular strength jar or 2 gummies per day for the 900mg high strength jar. Depending on the strength you choose, you can expect the following doses per gummy:Regular Strength CBD Gummies, 300mg: each CBD Gummy is 10mg CBD.

  8. CBD is believed to interact with the body’s ECS, which is thought to play a role in regulating various bodily functions, potentially contributing to a sense of overall balance and well-being.For a convenient and enjoyable addition to your wellness routine, CBD gummies can be a practical choice. A single daily dose is typically recommended for consistent support of a health-focused lifestyle.

  9. The rate of uptake for CBD varies, depending on a few factors, such as age, weight, metabolism, and the type of product you use. CBD gummies have medium absorption, meaning they are typically felt after 20-30 minutes. Each person reacts differently to CBD, so you may find it can take shorter or longer for the CBD to be absorbed into your system.We recommend up to 3 gummies per day for the 300mg regular strength jar or 2 gummies per day for the 900mg high strength jar. Depending on the strength you choose, you can expect the following doses per gummy:Regular Strength CBD Gummies, 300mg: each CBD Gummy is 10mg CBD.High Strength CBD Gummies, 900mg: each CBD Gummy is 30mg CBD.Our CBD Gummies can be enjoyed alone or they’re great to mix and match with our CBD Oils and CBD Capsules.We know our gummies taste delicious and it would be easy to eat the whole tub in one go, but it is important you limit yourself to make sure you do not take too much CBD. We recommend taking no more than 70mg a day.We recommend ‘starting low and going slow’ initially to test your body’s tolerance. Once you are comfortable with taking CBD, you can work your way up to higher doses if needed. Each gummy is 10mg CBD, making them perfect for beginners looking to find their CBD sweet spot.

  10. Hi, It has come to our attention that you are using our client’s photographs on your site without a valid licence. We have already posted out all supporting documents to the address of your office. Please confirm once you have received them. In the meantime, we would like to invite you to settle this dispute by making the below payment of £500. Visual Rights Group Ltd, KBC Bank London, IBAN: GB39 KRED 1654 8703, 1135 11, Account Number: 03113511, Sort Code: 16-54-87 Once you have made the payment, please email us with your payment reference number. Please note that a failure to settle at this stage will only accrue greater costs once the matter is referred to court. I thank you for your cooperation and look forward to your reply. Yours sincerely, Visual Rights Group Ltd, Company No. 11747843, Polhill Business Centre, London Road, Polhill, TN14 7AA, Registered Address: 42-44 Clarendon Road, Watford WD17 1JJ

  11. vape online says:

    Hi, It has come to our attention that you are using our client’s photographs on your site without a valid licence. We have already posted out all supporting documents to the address of your office. Please confirm once you have received them. In the meantime, we would like to invite you to settle this dispute by making the below payment of £500. Visual Rights Group Ltd, KBC Bank London, IBAN: GB39 KRED 1654 8703, 1135 11, Account Number: 03113511, Sort Code: 16-54-87 Once you have made the payment, please email us with your payment reference number. Please note that a failure to settle at this stage will only accrue greater costs once the matter is referred to court. I thank you for your cooperation and look forward to your reply. Yours sincerely, Visual Rights Group Ltd, Company No. 11747843, Polhill Business Centre, London Road, Polhill, TN14 7AA, Registered Address: 42-44 Clarendon Road, Watford WD17 1JJ

  12. Hi, It has come to our attention that you are using our client’s photographs on your site without a valid licence. We have already posted out all supporting documents to the address of your office. Please confirm once you have received them. In the meantime, we would like to invite you to settle this dispute by making the below payment of £500. Visual Rights Group Ltd, KBC Bank London, IBAN: GB39 KRED 1654 8703, 1135 11, Account Number: 03113511, Sort Code: 16-54-87 Once you have made the payment, please email us with your payment reference number. Please note that a failure to settle at this stage will only accrue greater costs once the matter is referred to court. I thank you for your cooperation and look forward to your reply. Yours sincerely, Visual Rights Group Ltd, Company No. 11747843, Polhill Business Centre, London Road, Polhill, TN14 7AA, Registered Address: 42-44 Clarendon Road, Watford WD17 1JJ

  13. Hi, It has come to our attention that you are using our client’s photographs on your site without a valid licence. We have already posted out all supporting documents to the address of your office. Please confirm once you have received them. In the meantime, we would like to invite you to settle this dispute by making the below payment of £500. Visual Rights Group Ltd, KBC Bank London, IBAN: GB39 KRED 1654 8703, 1135 11, Account Number: 03113511, Sort Code: 16-54-87 Once you have made the payment, please email us with your payment reference number. Please note that a failure to settle at this stage will only accrue greater costs once the matter is referred to court. I thank you for your cooperation and look forward to your reply. Yours sincerely, Visual Rights Group Ltd, Company No. 11747843, Polhill Business Centre, London Road, Polhill, TN14 7AA, Registered Address: 42-44 Clarendon Road, Watford WD17 1JJ

  14. Hi, It has come to our attention that you are using our client’s photographs on your site without a valid licence. We have already posted out all supporting documents to the address of your office. Please confirm once you have received them. In the meantime, we would like to invite you to settle this dispute by making the below payment of £500. Visual Rights Group Ltd, KBC Bank London, IBAN: GB39 KRED 1654 8703, 1135 11, Account Number: 03113511, Sort Code: 16-54-87 Once you have made the payment, please email us with your payment reference number. Please note that a failure to settle at this stage will only accrue greater costs once the matter is referred to court. I thank you for your cooperation and look forward to your reply. Yours sincerely, Visual Rights Group Ltd, Company No. 11747843, Polhill Business Centre, London Road, Polhill, TN14 7AA, Registered Address: 42-44 Clarendon Road, Watford WD17 1JJ

  15. Hi, It has come to our attention that you are using our client’s photographs on your site without a valid licence. We have already posted out all supporting documents to the address of your office. Please confirm once you have received them. In the meantime, we would like to invite you to settle this dispute by making the below payment of £500. Visual Rights Group Ltd, KBC Bank London, IBAN: GB39 KRED 1654 8703, 1135 11, Account Number: 03113511, Sort Code: 16-54-87 Once you have made the payment, please email us with your payment reference number. Please note that a failure to settle at this stage will only accrue greater costs once the matter is referred to court. I thank you for your cooperation and look forward to your reply. Yours sincerely, Visual Rights Group Ltd, Company No. 11747843, Polhill Business Centre, London Road, Polhill, TN14 7AA, Registered Address: 42-44 Clarendon Road, Watford WD17 1JJ

  16. Hi, It has come to our attention that you are using our client’s photographs on your site without a valid licence. We have already posted out all supporting documents to the address of your office. Please confirm once you have received them. In the meantime, we would like to invite you to settle this dispute by making the below payment of £500. Visual Rights Group Ltd, KBC Bank London, IBAN: GB39 KRED 1654 8703, 1135 11, Account Number: 03113511, Sort Code: 16-54-87 Once you have made the payment, please email us with your payment reference number. Please note that a failure to settle at this stage will only accrue greater costs once the matter is referred to court. I thank you for your cooperation and look forward to your reply. Yours sincerely, Visual Rights Group Ltd, Company No. 11747843, Polhill Business Centre, London Road, Polhill, TN14 7AA, Registered Address: 42-44 Clarendon Road, Watford WD17 1JJ

  17. voopoo pro says:

    Hi, It has come to our attention that you are using our client’s photographs on your site without a valid licence. We have already posted out all supporting documents to the address of your office. Please confirm once you have received them. In the meantime, we would like to invite you to settle this dispute by making the below payment of £500. Visual Rights Group Ltd, KBC Bank London, IBAN: GB39 KRED 1654 8703, 1135 11, Account Number: 03113511, Sort Code: 16-54-87 Once you have made the payment, please email us with your payment reference number. Please note that a failure to settle at this stage will only accrue greater costs once the matter is referred to court. I thank you for your cooperation and look forward to your reply. Yours sincerely, Visual Rights Group Ltd, Company No. 11747843, Polhill Business Centre, London Road, Polhill, TN14 7AA, Registered Address: 42-44 Clarendon Road, Watford WD17 1JJ

  18. Hi, It has come to our attention that you are using our client’s photographs on your site without a valid licence. We have already posted out all supporting documents to the address of your office. Please confirm once you have received them. In the meantime, we would like to invite you to settle this dispute by making the below payment of £500. Visual Rights Group Ltd, KBC Bank London, IBAN: GB39 KRED 1654 8703, 1135 11, Account Number: 03113511, Sort Code: 16-54-87 Once you have made the payment, please email us with your payment reference number. Please note that a failure to settle at this stage will only accrue greater costs once the matter is referred to court. I thank you for your cooperation and look forward to your reply. Yours sincerely, Visual Rights Group Ltd, Company No. 11747843, Polhill Business Centre, London Road, Polhill, TN14 7AA, Registered Address: 42-44 Clarendon Road, Watford WD17 1JJ

  19. box mod vape says:

    Hi, It has come to our attention that you are using our client’s photographs on your site without a valid licence. We have already posted out all supporting documents to the address of your office. Please confirm once you have received them. In the meantime, we would like to invite you to settle this dispute by making the below payment of £500. Visual Rights Group Ltd, KBC Bank London, IBAN: GB39 KRED 1654 8703, 1135 11, Account Number: 03113511, Sort Code: 16-54-87 Once you have made the payment, please email us with your payment reference number. Please note that a failure to settle at this stage will only accrue greater costs once the matter is referred to court. I thank you for your cooperation and look forward to your reply. Yours sincerely, Visual Rights Group Ltd, Company No. 11747843, Polhill Business Centre, London Road, Polhill, TN14 7AA, Registered Address: 42-44 Clarendon Road, Watford WD17 1JJ

  20. cell charger says:

    Hi, It has come to our attention that you are using our client’s photographs on your site without a valid licence. We have already posted out all supporting documents to the address of your office. Please confirm once you have received them. In the meantime, we would like to invite you to settle this dispute by making the below payment of £500. Visual Rights Group Ltd, KBC Bank London, IBAN: GB39 KRED 1654 8703, 1135 11, Account Number: 03113511, Sort Code: 16-54-87 Once you have made the payment, please email us with your payment reference number. Please note that a failure to settle at this stage will only accrue greater costs once the matter is referred to court. I thank you for your cooperation and look forward to your reply. Yours sincerely, Visual Rights Group Ltd, Company No. 11747843, Polhill Business Centre, London Road, Polhill, TN14 7AA, Registered Address: 42-44 Clarendon Road, Watford WD17 1JJ

  21. e juice uk says:

    Hi, It has come to our attention that you are using our client’s photographs on your site without a valid licence. We have already posted out all supporting documents to the address of your office. Please confirm once you have received them. In the meantime, we would like to invite you to settle this dispute by making the below payment of £500. Visual Rights Group Ltd, KBC Bank London, IBAN: GB39 KRED 1654 8703, 1135 11, Account Number: 03113511, Sort Code: 16-54-87 Once you have made the payment, please email us with your payment reference number. Please note that a failure to settle at this stage will only accrue greater costs once the matter is referred to court. I thank you for your cooperation and look forward to your reply. Yours sincerely, Visual Rights Group Ltd, Company No. 11747843, Polhill Business Centre, London Road, Polhill, TN14 7AA, Registered Address: 42-44 Clarendon Road, Watford WD17 1JJ

  22. Hi, It has come to our attention that you are using our client’s photographs on your site without a valid licence. We have already posted out all supporting documents to the address of your office. Please confirm once you have received them. In the meantime, we would like to invite you to settle this dispute by making the below payment of £500. Visual Rights Group Ltd, KBC Bank London, IBAN: GB39 KRED 1654 8703, 1135 11, Account Number: 03113511, Sort Code: 16-54-87 Once you have made the payment, please email us with your payment reference number. Please note that a failure to settle at this stage will only accrue greater costs once the matter is referred to court. I thank you for your cooperation and look forward to your reply. Yours sincerely, Visual Rights Group Ltd, Company No. 11747843, Polhill Business Centre, London Road, Polhill, TN14 7AA, Registered Address: 42-44 Clarendon Road, Watford WD17 1JJ

  23. Hi, It has come to our attention that you are using our client’s photographs on your site without a valid licence. We have already posted out all supporting documents to the address of your office. Please confirm once you have received them. In the meantime, we would like to invite you to settle this dispute by making the below payment of £500. Visual Rights Group Ltd, KBC Bank London, IBAN: GB39 KRED 1654 8703, 1135 11, Account Number: 03113511, Sort Code: 16-54-87 Once you have made the payment, please email us with your payment reference number. Please note that a failure to settle at this stage will only accrue greater costs once the matter is referred to court. I thank you for your cooperation and look forward to your reply. Yours sincerely, Visual Rights Group Ltd, Company No. 11747843, Polhill Business Centre, London Road, Polhill, TN14 7AA, Registered Address: 42-44 Clarendon Road, Watford WD17 1JJ

  24. Renji says:

    im trying to make it so when ever my main hero kills a certain amount of a type of monster he will learn a skill and ive been having a hard time trying to figure out how to make this happen with random encounters, with your plug in do you have to hit F9 during actual game play in order to get the plug in to work or will it stay that way once you set it up?

  25. great sage wizard, 30 year old man baby says:

    Is there a way to configure this plugin for ALL battles, regardless of “randomness”?
    I see a particular use in my own game, where the main character will eventually gain the ability to rewind time in the battle.
    However, the problem lies with storing all the variables correctly at the beginning of ALL battles.
    Speaking of which, do you plan on updating your action history and time reversal script?

    • Hime says:

      No, it is meant for random encounters.
      Because it uses a common event, you can have evented battles call the common event.

  26. bob says:

    I can’t find the tutorial for “Accessing Encountered Enemy Information” anywhere, is it still available?

  27. Saghneen says:

    Combining this with moghunters theatrythm you could make evry encounter into a rythm challenge!

  28. A Figment of Your Imagination says:

    Thanks, Hime! This plugin will be very useful.

    Making a script call with “$gamePlayer.cancelEncounter();” raises an error (TypeError: Undefined is not a function), though- even on a new project without any other plugins.

    • Hime says:

      Oops, there’s another case of specification mismatch where I typed in one thing and then thought it was another thing.
      I’ve updated the plugin to reflect the instructions.

  29. I have a list of random events that will occur, only some of them are actual encounters. What I’d like to do with this strip is that, at the start of the Common Event, Cancel the Encounter, and then go through the random-generated events, and when it comes to an event that is an encounter, set it up and run that. I hope I can do it with this plug-in.

    • Hime says:

      Yes, you could use this plugin as a way to turn your random encounter into a “Random Chance event” where you roll some dice and depending on what you land on, you might run into an actual encounter, or you might win some gold or exp, or something else.

      You could use the battle processing command to set up a different battle.

Leave a Reply to Hime Cancel reply

Your email address will not be published. Required fields are marked *