Hay Dark,
here you go
#==============================================================================
# Instructions
#==============================================================================
# To setup a tone just use the mapname. You've to use this tag:
# \T[red,green,blue,gray]
# All Values have to be between -255 and 255. The gray value can be left out if
# unneeded.
# For example:
# => \T[200,0,0]
# or with a gray value:
# => \T[200,0,0,100]
#==============================================================================
# ** Game_Map
#==============================================================================
class Game_Map
#--------------------------------------------------------------------------
# * Return name of current map
#--------------------------------------------------------------------------
def name
return load_data("Data/MapInfos.rvdata")[@map_id].name
end
#--------------------------------------------------------------------------
# * Setup
#--------------------------------------------------------------------------
alias setup_worldmap setup unless $@
def setup(*args)
setup_worldmap(*args)
if name[/\\T\[(.+?)\]/i]
tone = Tone.new(0,0,0)
data = $1.scan(/\d+/)
for i in 0...data.size
case i
when 0
tone.red = data[i].to_i
when 1
tone.green = data[i].to_i
when 2
tone.blue = data[i].to_i
when 3
tone.gray = data[i].to_i
end
end
@screen.start_tone_change(tone, 0)
end
end
end
Have fun. ;O
Deity