Can anyone tell me how you customize extra terrain using this script? I am using it with the Encounter Control script, which I finally figured out (the older version, can't get new one to work). This is the part that I need an example for:
# Extra_Terrains = { tileset_name => { tile_id => n, ...}, ... }
#
# Calculating Tile ID:
#
# - x = (tile_id - 384) % 8 * 32
# - y - (tile_id - 384) / 8 * 32
What should tileset_name be? And how exactly do you get the tile_id using those two formulas? Also, will this even work with encounter control? Here is the full script:
# Extra_Terrains = { tileset_name => { tile_id => n, ...}, ... }
#
# Calculating Tile ID:
#
# - x = (tile_id - 384) % 8 * 32
# - y - (tile_id - 384) / 8 * 32
What should tileset_name be? And how exactly do you get the tile_id using those two formulas? Also, will this even work with encounter control? Here is the full script:
Code:
#==============================================================================
# ** Extra Terrains
#------------------------------------------------------------------------------
# SephirothSpawn
# Version 1.01
# 2007-01-24
# SDK : Version 2.0+, Parts I & II
#------------------------------------------------------------------------------
# * Version History :
#
# Version 1 ---------------------------------------------------- (2006-12-14)
# Version 1.01 ------------------------------------------------ (2007-01-24)
# - Update : Updated to SDK 2.0
#------------------------------------------------------------------------------
# * Description :
#
# This Script was designed to allow you to have more than the default
# terrains. You can set the terrain for any tile.
#------------------------------------------------------------------------------
# * Instructions :
#
# Place The Script Below the SDK and Above Main.
# To Customize your terrains, refer to the customization instructions.
#------------------------------------------------------------------------------
# * Customization :
#
# Extra_Terrains = { tileset_name => { tile_id => n, ...}, ... }
#
# Calculating Tile ID:
#
# - x = (tile_id - 384) % 8 * 32
# - y = (tile_id - 384) / 8 * 32
#==============================================================================
#------------------------------------------------------------------------------
# * SDK Log Script
#------------------------------------------------------------------------------
SDK.log('Extra Terrains', 'SephirothSpawn', 1.01, '2007-01-24')
SDK.check_requirements(2.0, [2])
#------------------------------------------------------------------------------
# * Begin SDK Enable Test
#------------------------------------------------------------------------------
if SDK.enabled?('Extra Terrains')
#==============================================================================
# ** Game_Map
#==============================================================================
class Game_Map
#--------------------------------------------------------------------------
# * Extra Terrains
#
# Extra_Terrains = { tileset_name => { tile_id => n, ...}, ... }
#
# Calculating Tile ID:
#
# - x = (tile_id - 384) % 8 * 32
# - y - (tile_id - 384) / 8 * 32
#--------------------------------------------------------------------------
Extra_Terrains = {}
Extra_Terrains.default = {}
#--------------------------------------------------------------------------
# * Alias Listings
#--------------------------------------------------------------------------
alias_method :seph_extraterrain_st, :setup_tileset
#--------------------------------------------------------------------------
# * Setup Tileset
#--------------------------------------------------------------------------
def setup_tileset
# Original Setup Tilesets
seph_extraterrain_st
# Setup Extra Terrains
seph_setup_extra_terrains(map_id)
end
#--------------------------------------------------------------------------
# * Setup : Extra Terrains
#--------------------------------------------------------------------------
def seph_setup_extra_terrains(map_id)
# Pass Through All Defined Tile_IDs
Extra_Terrains[@tileset_name].each do |tile_id, n|
# Overwrite Terrain Tag
@terrain_tags[tile_id] = n
end
end
end
#--------------------------------------------------------------------------
# * End SDK Enable Test
#--------------------------------------------------------------------------
end