Random Event Positions

Help spread the word!Share on FacebookShare on TumblrTweet about this on TwitterShare on Google+Share on LinkedInShare on RedditFlattr the author

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.

Help spread the word!Share on FacebookShare on TumblrTweet about this on TwitterShare on Google+Share on LinkedInShare on RedditFlattr the author

You may also like...

24 Responses

  1. Randomguy says:

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

  2. Anonymous says:

    Yep, for MV, please!
    Thanks!

  3. 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.

  4. 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?

  5. 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.

  6. 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!

  7. 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.

  8. 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.

  9. 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.

  10. Sangmanjin says:

    I think this is great for mining nodes.Herbalism.

  11. 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

Your email address will not be published.

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax