Event Parallel Pages

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

You may be familiar with “parallel process” events, but one thing that you can’t do with parallel processes is to assign an action trigger to it so that the event will do something different when you trigger it.

This script extends the functionality of events by allowing you to assign “parallel pages” to an event page. A parallel page is just a list of events, but they will be run in the background. Furthermore, because the parallel page automatically runs, it does not use up your event page and allows you to set up your event page as usual.

This will allow a single event page to perform background commands while waiting for the trigger condition to activate. You can reduce the amount of events on your map and possibly the number of switches/variables used by making use of self-switches and parallel pages.

The possibilities are endless, and best of all it comes with all of the features of the event editor.

Download

Script: download here

Usage

First, set up a parallel page by creating an event page, adding a comment as the first command with the string

<parallel page>

You can then set up the page usual.

event_parallel_pages1

To assign a parallel page to another event page, simply include the comment

<parallel page: n>

Where n is the page number that you wish to use as the parallel page.
When the event page is active, the parallel page will also run if the parallel page’s conditions are met.

event_parallel_pages2

Parallel pages will only be run when a page they are assigned to is active.
They are ignored when the event is searching for a page to activate.

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

5 Responses

  1. CaptainBinary says:

    Nice script, however i find even having one parallel_page running will start to cause lag. On 3 its very noticeable.

  2. kotatenk says:

    want to use this for multiple parallel moving car that crash and injure hero but it’s bugged. Parallel page never trigger

    • Hime says:

      You should create a topic on one of the forums showing how you have set up your event. I don’t know what the problem is if you just tell me “it don’t work”

  1. February 13, 2015

    […] Event Parallel Pages […]

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