Template:VisuMZ Tile Grafter System Plugin Commands

From Yanfly.moe Wiki
Revision as of 20:54, 28 January 2024 by Irina (talk | contribs) (Created page with "<noinclude>VisuMZ Tile Grafter System Plugin Commands</noinclude> The following are Plugin Commands that come with this plugin. They can be acce...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The following are Plugin Commands that come with this plugin. They can be accessed through the Plugin Command event command.

---

Graft Plugin Commands

---

Graft: Import Tiles Exactly
- Import and graft exact tiles from source map to current map.
- Must be used on the map scene!

  Source Map ID:
  - Insert the number of the map. Use 0 for current map.
  - You can use JavaScript code.

    Source X:
    - Insert source map's X location to start importing from.
    - You can use JavaScript code.

    Source Y:
    - Insert source map's Y location to start importing from.
    - You can use JavaScript code.

  Current Map:

    Target X:
    - Insert current map's X location to import to.
    - You can use JavaScript code.

    Target Y:
    - Insert current map's Y location to import to.
    - You can use JavaScript code.

    Width:
    - What is the width of the area to import?
    - You can use JavaScript code.

    Height:
    - What is the height of the area to import?
    - You can use JavaScript code.

  Import Layers:

    L1: Ground:
    - Utilize this layer? This is the ground layer.

    L2: Lower:
    - Utilize this layer? This is the lower layer.

    L3: Middle:
    - Utilize this layer? This is the middle layer.

    L4: Upper:
    - Utilize this layer? This is the upper layer.

    L5: Shadow:
    - Utilize this layer? This is the shadow layer.

    L6: Region:
    - Utilize this layer? This is the region layer.

    L7: Events:
    - Utilize this layer? This is the events layer.
    - Existing spawned events will be cleared before grafting.

---

Graft: Import Tiles with Autotile
- Import and graft with autotiles from source map to current map.
- Must be used on the map scene!

  Source Map ID:
  - Insert the number of the map. Use 0 for current map.
  - You can use JavaScript code.

    Source X:
    - Insert source map's X location to start importing from.
    - You can use JavaScript code.

    Source Y:
    - Insert source map's Y location to start importing from.
    - You can use JavaScript code.

  Current Map:

    Target X:
    - Insert current map's X location to import to.
    - You can use JavaScript code.

    Target Y:
    - Insert current map's Y location to import to.
    - You can use JavaScript code.

    Width:
    - What is the width of the area to import?
    - You can use JavaScript code.

    Height:
    - What is the height of the area to import?
    - You can use JavaScript code.

  Import Layers:

    L1: Ground:
    - Utilize this layer? This is the ground layer.

    L2: Lower:
    - Utilize this layer? This is the lower layer.

    L3: Middle:
    - Utilize this layer? This is the middle layer.

    L4: Upper:
    - Utilize this layer? This is the upper layer.

    L5: Shadow:
    - Utilize this layer? This is the shadow layer.

    L6: Region:
    - Utilize this layer? This is the region layer.

    L7: Events:
    - Utilize this layer? This is the events layer.
    - Existing spawned events will be cleared before grafting.

---

Preload Plugin Commands

---

Preload: Preload Source Map
- Preload a source map to use for grafting.
- Must be used on the map scene!

  Source Map ID:
  - Insert the number of the map.
  - You can use JavaScript code.

---

Restore Plugin Commands

---

Restore: Clear Tiles for Map
- Clears tiles on current map to empty tiles.
- Must be used on the map scene!

  Current Map:

    Target X:
    - Insert current map's X location to start clearing.
    - You can use JavaScript code.

    Target Y:
    - Insert current map's Y location to start clearing.
    - You can use JavaScript code.

    Width:
    - What is the width of the area to clear?
    - You can use JavaScript code.

    Height:
    - What is the height of the area to clear?
    - You can use JavaScript code.

  Clear Layers:

    L1: Ground:
    - Utilize this layer? This is the ground layer.

    L2: Lower:
    - Utilize this layer? This is the lower layer.

    L3: Middle:
    - Utilize this layer? This is the middle layer.

    L4: Upper:
    - Utilize this layer? This is the upper layer.

    L5: Shadow:
    - Utilize this layer? This is the shadow layer.

    L6: Region:
    - Utilize this layer? This is the region layer.

    L7: Events:
    - Utilize this layer? This is the events layer.
    - Existing spawned events will be cleared.

---

Restore: Revert Tiles for Map
- Revert tiles on current map to their original tiles.
- Must be used on the map scene!

  Current Map:

    Target X:
    - Insert current map's X location to start reverting.
    - You can use JavaScript code.

    Target Y:
    - Insert current map's Y location to start reverting.
    - You can use JavaScript code.

    Width:
    - What is the width of the area to revert?
    - You can use JavaScript code.

    Height:
    - What is the height of the area to revert?
    - You can use JavaScript code.

  Revert Layers:

    L1: Ground:
    - Utilize this layer? This is the ground layer.

    L2: Lower:
    - Utilize this layer? This is the lower layer.

    L3: Middle:
    - Utilize this layer? This is the middle layer.

    L4: Upper:
    - Utilize this layer? This is the upper layer.

    L5: Shadow:
    - Utilize this layer? This is the shadow layer.

    L6: Region:
    - Utilize this layer? This is the region layer.

    L7: Events:
    - Utilize this layer? This is the events layer.
    - Existing spawned events will be cleared.

---

Switche Plugin Commands

---

Switches: Check for Events in Area
- Checks area for any events of various types.
- Must be used on the map scene!

  Switches

    ID for Normal Events:
    - This switch will turn ON if any normal events are found within the
      target area vicinity.
    - OFF otherwise.

    ID for Non-Graft Spawns:
    - This switch will turn ON if any non-grafted spawned events are found
      within the target area vicinity.
    - OFF otherwise.

    ID for Grafted Spawns:
    - This switch will turn ON if any grafted spawned events are found
      within the target area vicinity.
    - OFF otherwise.

  Target Checked Area

    Target X:
    - Insert current map's X location to check.
    - You can use JavaScript code.

    Target Y:
    - Insert current map's Y location to check.
    - You can use JavaScript code.

    Width:
    - What is the width of the area to check?
    - You can use JavaScript code.

    Height:
    - What is the height of the area to check?
    - You can use JavaScript code.

---