Connecting Maps

This tutorial is fairly basic and should not take much time.

All that you have to do to connect maps is place one notetag in the notebox of the two maps you’re connecting. <connect map: map_id offset_x offset_y recurse_limit>

I will explain what each term means:

  • map_id – the id of the map that you are going to connect to your current map.
  • offset_x – where the map is connected relative to the old map (horazontally)
  • offset_y – where the map is connected relative to the old map (vertically)
  • resurse_limit – how many times the map will repeat itself (optional)

The rest of the tutorial can be found in the header of Connected Maps:
“To connect a map to another, write a note-tag in the map object

<connect map: map_id offset_x offset_y>
<connect map: map_id offset_x offset_y recurse_limit>

The map_id is the ID of the map that you want to the current map.
Offset_x and Offset_y is the position that the new map will be placed.

You can use the letter “w” for offset_x to mean the width of the map.
You can use the letter “h” for offset_y to mean the height of the map.

The recurse_limit is special and will be described later.

— Positioning modes —

There are two types of map connecting modes in this script.

1. Absolute connection.
All offsets are specified relative to the current map, where the
origin is located at (0, 0), the upper-left corner of the current map.

2. Recursive connection.
All offsets are specified relative to the parent map, where the
origin is the position of the upper-left corner of the parent map.

If you are using recursive mode, you can use the recurse limit in the note-tag.

The recurse limit is meant to save you some effort when connecting maps.
For example, suppose you have the following connection between two maps, A
and B

A –> B
B –> A

The recurse limit allows you to specify how many times these connections
should repeat. For example, if recurse limit is 2, then the connection is
allowed to repeat twice

A –> B –> A –> B –> A -> B -> A”

Note that it does say you can’t connect to the left of above, however I modified the script just place a negative value for offset_x of offset_y.

1 Comment

One thought on “Connecting Maps

  1. Brian

    So, iwas trying to place the script in my project but i noticed that this script have some compatibility issues with the scrips of SAS (Saphire Action System) family, for example, when the maps are already connected i can’t leave the map one but the map two still there, help me pls.

    PS: I’m from Brazil, sorry if the text have orthographic problems. I hope that you’ll understand.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: