Random Event Positions

randomEventPositions1

This script allows you to randomize an event’s position when you enter the
map. Regions are used to designate the tiles where an event can appear.

Download

Script: download here

Installation

Place this script below Materials and above Main

Usage

To designate an event page where the event’s position is randomized, create
a comment and write

<random position region: x type>

For some region ID x

The type determines when position randomization occurs

start - only once: when the event is first created
init  - whenever the event is created
page  - whenever you change to that page

randomEventPositions2

If that page is active when the map is loaded, then the event will be randomly
moved to a tile in that region.

This is applied to events on a per-page basis, so you may need to add the
comment to multiple pages.

In the configuration there is a switch that will allow you to disable random event positioning if the switch is ON.

Note that the “start” type does not memorize the event’s location, so you will
need a different script for that.

You may also like...

25 Responses

  1. little,slice says:

    Maybe I am just a numb skull and/or sleep deprived but I can’t really grasp what to do to make this script work. Although I am somewhat of a novice, could a video of someone
    setting up the events be created by a kinds soul? It would help a lot

  2. Randomguy says:

    I’m also looking for a version for RPG Maker MV : (
    Please contect me if availible : D

  3. Anonymous says:

    Yep, for MV, please!
    Thanks!

  4. Solaire Astora says:

    Are you planning on remaking this for RPG Maker MV? Thanks!

    • Hime says:

      Since you’ve requested it I will consider making one for MV. I’m going to have to put together a design first though to avoid some issues I had in Ace.

  5. NovaK says:

    Hey, I sent a message through the contact form but haven’t received a response. No rush but was Just wondering on the commercial usage of this script?

  6. parafusion says:

    I've recently ran into a rather peculiar situation while using this script. When using the :page type, it works as intended with one exception. This exception occurs when I start spamming page changes on different events. The first few events will properly randomize when switching to the page with the <random comment> but after awhile, the events will stop randomizing. I have recorded the testing here:
    https://www.youtube.com/watch?v=Zv-8aU99-4Q
    I will provide all the event pages if necessary.

  7. parafusion says:

    Hello there. I have some testing on the script and so far, it works great. I do however, have one question. How do I get the page type to work? I am currently trying something in the format of
    <random position region: 2 page>
    but the event does not seem to relocate the event to a new random location when the event enters a new page, even though the comment has been put into the top of the page.
    Is this working as intended? Thank you so much!

  8. Master Daisy says:

    Hello Thanks for this script …

    will be helpful to randomize the NPCs,

    i would like to ask if more than 10 npcs have the same regions id for example all of them

    and the map have more than 20 places where i put the Regions, is there a chance that two npc move in the same place?

    • Tsukihime says:

      I have updated the script so that events do not overlap each other. Unfortunately this also means that if there is no available tiles left, the event’s position does not get randomized.

  9. Rodjie says:

    Nice script, but how will i randomize two graphics at the same time? for example, graphic 1 must be always place on the top of the graphic 2.

  10. I’m not sure if this is intentional or not. But sometimes the events will stack on top of each other when they randomly choose the same tile to land on. I just thought you should know. Beautiful work, truly. 🙂

    • Mike says:

      Yes, I also noticed that 🙁 Could you please fix this Tsukihime?

      • Hime says:

        I thought I had addressed the issue before. It still occurs? Do you have enough spaces available for your events? For example, if you have 3 events but only two squares, two of them will likely stack up.

  11. Sangmanjin says:

    I think this is great for mining nodes.Herbalism.

  12. It worked perfectly, but only when I used the code from the image out instead of the code that are in the script description .

Leave a Reply to parafusion Cancel reply

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