=begin _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_ |_| |_| ** Common Event Tiles ** |_| v2.3a |_| |_| Script by |_| ~| Imagination'd Workshop Scripters |~ |_| |imaginationdworkshop.weebly.com/scripters.html| |_| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |_| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |_| |_|-Description- |_| |_| This script allows you to set certain tiles to do your bidding |_| through the corresponding Common Event. Both the Tile ID's |_| and the Common Event ID's are configurable. Want more then three? |_| It should be obvious even to a nonscripter how to add more. |_| |_| Also included is a Tile ID Finder. Use it to find the tile ID numbers |_| to use for the Tile ID's. |_| |_| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |_| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |_| |_|-Log- |_| |_| 1/9/2012 - Scripted, Re-scripted, and completed |_| 1/9/2012 - Added Tile ID Finder |_| 1/9/2012 - Finished configuration |_| |_| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |_| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |_| |_|-Usage & Credits- |_| |_| If used(commercially or not) must credit with the following code; |_| |_| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |_| |_| ** Common Event Tiles ** |_| Script by |_| ~| Imagination'd Workshop Scripters |~ |_| |imaginationdworkshop.weebly.com/scripters.html| |_| |_|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_ =end # _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ #===================================================# #| | B E G I N C O N F I G | |# #===================================================# # _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ module IWS_ComTiles # Tile ID Finder On? true = on, false = off Tile_ID_Finder_ON = false # Tile ID's Tile_ID_0 = 1591 Tile_ID_1 = 1586 Tile_ID_2 = 1590 #Corresponding Common Event ID's Common_Event_ID_0 = 1 Common_Event_ID_1 = 2 Common_Event_ID_2 = 3 end # _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ #===================================================# #| | B E G I N S C R I P T | |# #===================================================# # _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ class Game_Party alias ComTilesPwalk on_player_walk unless $@ def on_player_walk(*args) ComTilesPwalk(*args) if get_maptiles.include? IWS_ComTiles::Tile_ID_0 $game_temp.common_event_id = IWS_ComTiles::Common_Event_ID_0 end if get_maptiles.include? IWS_ComTiles::Tile_ID_1 $game_temp.common_event_id = IWS_ComTiles::Common_Event_ID_1 end if get_maptiles.include? IWS_ComTiles::Tile_ID_2 $game_temp.common_event_id = IWS_ComTiles::Common_Event_ID_2 end end def get_maptiles output_data = [] map_data = $game_map.data player_x = $game_player.x player_y = $game_player.y for i in 0..2 output_data << map_data[player_x, player_y, i] end return output_data end end # _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ #===================================================# #| | B E G I N T I L E F I N D E R | |# #===================================================# # _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ class Window_TileID < Window_Base def initialize(x = 0, y = 0) super(x, y, 160, 3 * WLH + 32) self.back_opacity = 200 @counter = 0 refresh end def refresh self.contents.clear data = $game_map.data px = $game_player.x py = $game_player.y width = self.contents.width for i in 0..2 text = "Layer %d: %d" % [i, data[px, py, i]] self.contents.draw_text(0, i * WLH, width, WLH, text) end end def update @counter += 1 if @counter > 5 refresh @counter = 0 end end end class Scene_Map alias nr_windowTileID_main main unless $@ alias nr_windowTileID_update update unless $@ if IWS_ComTiles::Tile_ID_Finder_ON == true def main(*args) @id_window = Window_TileID.new nr_windowTileID_main(*args) @id_window.dispose end def update(*args) @id_window.update return nr_windowTileID_update(*args) end else end end # _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ #===================================================# #| | E N D S C R I P T | |# #===================================================# # _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _