This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.
HELLOOOOOOOOOO!!! Everybody!
Everybody: Hi, Dr. Nick!
Ok seriousness.
Location Widow By: Eccid
Background:
Okay, a little while back a "Person" named Gatene
made a script that whenever you called it it would
show an icon and whatever else you wanted(most
likely a map name). Well I kinda liked it but I didn't
want to create a bunch of icons. So I made my own!
What it does:
Whenever you call it it will show what type of map you
are on (town, city, etc.) and the name of it. There is
also an option to just show the map name.
SCRIPT!!!
THE SCRIPT!!:
Make a new script and call it Location Window and put this in it:
Code:
#===============================================================================
# Location Window
# By: Eccid
#-------------------------------------------------------------------------------
# What this does-
#
# Whenever you call this script it will state what type of location it is
# and the name of the location.
# (Supports 26 character map names)
#-------------------------------------------------------------------------------
# To call-
#
# Call a script (preferably after character is teleported) that says:
#
# $maptype = (map type)
# Location_Window.new("name of map")
#-------------------------------------------------------------------------------
# Map Types -
#
# 1 = Town
# 2 = City
# 3 = Dungeon
# 4 = Castle
# 5 = Tower
# 6 = World
# 7 = (None) - If you don't want it to show the map type
#===============================================================================
class Location_Window < Window_Base
attr_accessor :text
def delay(seconds) # Sets delay options
for i in 0...(seconds * 1)
sleep 1
Graphics.update
end
end
def initialize(text)
if $maptype == 1# initializes map type
$mt = 26
end
if $maptype == 2
$mt = 35
end
if $maptype == 3
$mt = 0
end
if $maptype == 4
$mt = 18
end
if $maptype == 5
$mt = 22
end
if $maptype == 6
$mt = 22
end
if $maptype == 7
$mt = 64
end
super(220, 180,54-$mt+text.size*7+60,60)#initializes message box
self.contents = Bitmap.new(width - 32, height - 32)
self.contents.font.name = "Arial"#font type
self.contents.font.size = 18 #font size
self.back_opacity=160#sets message box opacity
self.contents.font.color = text_color(6)#Sets Map type to show in yellow
if $maptype == 1
self.contents.draw_text(0, -3, 200, 32, "Town:")#Shows what type of map
end
if $maptype == 2
self.contents.draw_text(0, -3, 200, 32, "City:")
end
if $maptype == 3
self.contents.draw_text(0, -3, 200, 32, "Dungeon:")
end
if $maptype == 4
self.contents.draw_text(0, -3, 200, 32, "Castle:")
end
if $maptype == 5
self.contents.draw_text(0, -3, 200, 32, "Tower:")
end
if $maptype == 6
self.contents.draw_text(0, -3, 200, 32, "World:")
end
if $maptype == 7
self.contents.draw_text(0, -3, 200, 32, "")
end
self.contents.font.color = text_color(0)
self.contents.draw_text(67-$mt, -3, 200, 32, text)#Draws map name
delay(4)
self.dispose
end
end
Now in case you didn't read my comments here is how you call it:
Call a script with this in it:
Code:
$maptype = (map type)
Location_Window.new("name of map")
It's that simple!
Enjoy
P.S.
I love Spoiler boxes!
P.P.S. Little note about me:
I have a minor case of O.C.D., whitch is ONE of the reasons
my text is only so long across the text box.