Fake Locations

Manipulate the Player's position on the Region Map by using a Game Variable's value.

Overview

The purpose of this setting could be for example if you a lot of Gates connecting Routes and Cities, you can put them all on 1 big map and then manipulate the player's position like this. Since you can only assign 1 MapPosition to each map.

This Setting is a set of hashes. Each Hash is a map ID which may contain multiple Game Variables. Each Game Variable may then be assigned several values which on their turn are assigned the Map Position.

Each Hash must meet these requirements:

  • An ID as it's name; this is the Map the Player must be on to then eventually use the Set Map Location.

    • 1 or more Game Variable's ID as key names; which is checked their values.

      • 1 or more Values for the Game Variable above it.

        • A map Position including the Region ID, X position and Y position in an Array format. This is then only used when all the above requirements are met (Game ID, Game Variable and it's value).


Example

FAKE_REGION_LOCATIONS = {
  14 => {
    98 => { 
      1 => [1, 1, 1],
      2 => [0, 2, 2]
    },
    99 => {
      2 => [1, 5, 5]
    }
  },
  70 => {
    98 => {
      3 => [1, 3, 3]
    },
    99 => {
      1 => [0, 4, 4]
    }
  }
}

Breakdown of the First Hash

  • 14 : When the Player opens the Region Map from this Game Map with ID 14, the content of this hash is being checked.

    • Variable ID:

      • 98 : The ID of the Game Variable that needs it's value being checked.

        • Variable Value:

          • 1 : When Game Variable 98's value is 1, the following Position is used for the Player's Map Position:

            • [1, 1, 1] : The Region with ID 1, X position 1 and Y position 1.

          • 2 : When Game Variable 98's value is 2, the following Position is used for the Player's Map Position:

            • [0, 2, 2] : The Region with ID 0, X position 2 and Y position 2.

        99 : The ID of the Game Variable that needs it's value being checked.

        • Variable Value:

          • 2 : When Game Variable 99's value is 2, the following Position is used for the Player's Map Position:

            • [1, 5, 5] : The Region with ID 1, X position 5 and Y position 5.


Breakdown of the Second Hash

  • 70 : When the Player open the Region Map from this Game Map with ID 70, the content of this hash is being checked.

    • Variable ID:

      • 98 : The ID of the Game Variable that needs it's value being checked.

        • Variable Value:

          • 3 : When the Game Variable 98's value is 3, the following Position is used for the Player's Map Position:

            • [1, 3, 3] : The Region with ID 1, X position 3 and Y position 3.

      • 99 : The ID of the Game Variable that needs it's value being checked.

        • Variable Value:

          • 1 : When the Game Variable 99's value is 1, the following Position is used for the Player's Map Position:

            • [0, 4, 4] : The Region with ID 0, X position 4 and Y position 4.


Notice that you can use the same Variable for multiple maps. You can also allow them to have the same value (this isn't recommened though). It's best to reset the Game Variable's Value upon the player leaving the map so nothing unexpected is caused to happen.

Last updated