Tile Substitution and Placement

Discussion in 'RGSS Scripts (RMXP)' started by PK8, Jun 27, 2012.

  1. PK8

    PK8 I sense there's something in the wind... Veteran

    Messages:
    1,220
    Likes Received:
    152
    Location:
    Spiral Hill
    Tile Substitution and Placement

    Introduction

    This once classic event-command-turned-script lets users substitute a particular tile (either picked out from the tileset or through map coordinates) with another (also picked out by tile index or coordinate) on any or all layers through a call. This also comes with a tile placing call which lets users place a tile picked out from the tileset or through map coordinates onto multiple tiles and layers.

    Features

    • Substitute a tile (picked from the tileset or from map coordinates) with another (also picked from the tileset or from map coordinates) through script calls.
    • Place a tile (picked from the tileset or from the map coordinates) onto a map coordinate (Ranges and Arrays are allowed for x/y coordinates and layers).
    • Decide if these changes are permanent or not.

    Screenshots

    [​IMG]Before multiple tile placement calls

    [​IMG]

    After multiple tile placement calls


    Script

    Tile Substitution and Placement (RMXP)

    Instructions

    All the info is in the header.

    Author's Notes

    This script (well, the Tile Substitution part) was something that hasn't been seen since the days of RPG Maker 2003. I thought I'd try to script this for the more modern RPG Makers.

    As anybody who watched a stream of me making this script can attest to is that getting the "permanent" setting in my script calls was a tough task for me to accomplish. I was trying to find ways to make certain changes to the map permanent and others not so much until I eventually figured one out. It took me a few hours.

    Thanks

    Bravo2Kilo, Bird_Eater, DerVVulfman, SolarGale, RGangsta, Kaiserkami, Kain Nobel, and IceDragon for checking out the stream.
     
    Last edited by a moderator: Jun 27, 2012
    #1
  2. ChooseUserName

    ChooseUserName Warper Member

    Messages:
    1
    Likes Received:
    0
    First Language:
    English
    Forgive me for my ignorance, but how do I actually install/apply this script? I am new to scripting in RMXP. Do I just copy/paste these sections into the relevant sections of the game's script? If so, how do I add the part you have listed under "CONFIGURATION" as there seems to be no such section in the script that I have? Sorry, I realize these must seem like rather ridiculous questions to anyone with any experience, but keep in mind I am still figuring out how scripting works in this program.

    Finally--if I use the functions in this script to change a tile in-game, will that spot now have the terrain tag of its new tile-type, or will it keep it's old terrain tag? In other words--let's say I designate a grass tile as terrain tag "1" and a forest tile as terrain tag "2" in the database editor. Then, in-game, the player triggers an event which turns a grass tile into a forest tile. Does the tile still have its old terrain tag of "1" or will the game now recognize it as a "2"?
     
    #2

Share This Page