Extended Common Events

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

This script replaces the way common events are created and managed. Instead of using the database to set up common events, you create a special “common event map” and all events on that map will be loaded as common events.

The advantage of using these extended common events include having multiple pages for a single common event and setting up complex common events using conditions.

These extended common events will replace the database common events, but you can still use the database common events to set the names so that you can reference them throughout your project.

Download

Script: download here

Installation

In the script editor, place this script below Materials and above Main.
You should place this above other custom scripts.

Usage

Create a map for your common events, and then in the configuration set up
the filename of this common event map. Note that you don’t have to use an
actual map in your current project: you can choose any name you want as long
as it is a map file. This means you can create the common event map in a
separate project.

By default, each event created on the map will be loaded as a common event
based on its ID. So for example, if the event’s ID is 12, then it will replace
common event 12 in the database.

You can choose which common event an event will replace manually by writing
the following as its name:

<common event: x>

Where x is the common event ID. This allows you to replace specific common
events.

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. Mahnermahner says:

    Is this not compatible with the scene interpreter? 🙁

  2. KanaX says:

    A compatibility patch with your scene interpreter script, perhaps?

  3. orathan says:

    Items can call common events. Is it also possible to use map-made common events the same manner as a regular common event?
    For an easier explanation: When I use an item 1 that calls common event 1, can I also set item 2 to call a map-made common event? If possible, how will it be set up?

    • Hime says:

      The same way you would set up any other common event. Basically, you can imagine that whichever common event you have in your database is being replaced by the event’s data.

  1. February 13, 2015

    […] Extended Common Events […]

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