VX 스크립트

Created by: AmIMeYet
Version: 1.1
Updates: Come back to this topic and see if the version number changed!
Creator's Website: AmIMeYet.nl.tp

Information:
With this script you can show maps (or other images) with titles.
It sound's quite lame but it's actually quite handy!

With this system you can make item's (or skills, or scripts) that basically show a map.
It uses images (you have to create) and displays it on the screen.

The reason that I made this script is that I wanted to show a map on the screen, but it would't dissapear with button input. dry.gif

Readme:
Put the script under the 'materials' section in the script editor.
For usage and costumization instructions, see the script.

Screenshots:
Screeshots with comments!
[Show/Hide] screenshots (2)

MiniCity map


World Map (Note: I made the 'globe' effect myself, including the black glow.. this is not produced by the script...)
시작
################################################################################
################# Map-System by AmIMeYet ###############
#------------------------------------------------------------------------------#
# Created by: AmIMeYet
# Version: 1.1
# Updates: Check the website where you downloaded this script.
# Creator's Website: amimeyet.nl.tp
#------------------------------------------------------------------------------#
### READ FIRST -- INFO ###
=begin
This map system is used to display maps, or other images on the screen.

Below is the "DECLATATIONS" part, there you must fill in your preferred text,
plus your image names.
The image files should be 513 x 324 in size. (513 X [width], and 324 Y [hight])
You should put the images in the /system/ folder...

Ofcourse you can edit Map1 and Map2, and add more maps!
Even if you do not wish to use map2 etc. you do not have to remove it.

-How do I add more maps?
go to line 27
-How do I call the map screen and make it display my map?
go to line 40
-How do I edit the 'ok'-button text?
go to line 56

### HOW TO ADD MORE MAPS ###
First, you must add a new entry to the 'DECLARATIONS'.
After the other declarations, add:

$Map<NUMBER> = "<MAP NAME>"
$Map<NUMBER>IMG = "<IMAGE NAME>"

#Replace <NUMBER> with the incremental number (+1).
#Replace <MAP NAME> with the name you want to display at the top-left corner.
#Replace <IMAGE NAME> with the same name as the image you want (excluding extension).
EXAMPLE: $Map3 = "My cool name for map 3!"
$Map3IMG = "map3image"

### HOW TO CALL THE MAP'S ###
Create and event/common event and on page 3 of event commands select 'script'
Then, make it call:

$MapSystemMap = $Map<NUMBER>
$MapSystemIMG = $Map<NUMBER>IMG
$scene = Scene_MapSystem.new

#Replace <NUMBER> with the number of your map and image..
EXAMPLE: $MapSystemMap = $Map1
$MapSystemIMG = $Map1IMG
$scene = Scene_MapSystem.new

Ofcourse you can also make a script in the script editor that call's that code,
if you like.

### HOW TO EDIT THE OK BUTTON TEXT ###
Go to 'Create Command Window' below (aproximately line 128 or more, depending on how many
map you have added).

Then change the text after 's1 = ' into something you like,
keeping the double quotes.

ORIGINAL: s1 = "OK" (so you can press ctlr + f to search for it biggrin.gif )
EXAMPLE: s1 = "Go back"

Please note that not all text will fit in the small window at the bottom.
ADVANCED USERS: you have to manually alter the size and XY of that box(line 115)
###

If you have any questions,
please post them in the topic where you found my script.

=end
#######

############################## SCENE CLASS ####################################
## THIS MANAGES CLASS THAT DISPLAYS THE WINDOW + BUTTONS ##
###############################################################################

class Scene_MapSystem < Scene_Base
###################### DECLARATIONS ######################
$Map1 = "The world!" #Name of the first map
$Map1IMG = "map1" #Image of the first map
$Map2 = "Minicity" #Name of the second map
$Map2IMG = "map2" #Image of the second map
#################### END DECLARATIONS ####################
$MapSystemMap = "" #Clear MapSystemMap
$MapSysetmIMG = "" #Clear MapSystemIMG
#--------------------------------------------------------------------------
# * Start processing
#--------------------------------------------------------------------------
def start
super
create_menu_background
create_command_window
@map_window = Window_MapSystem.new(0, 0)
end
#--------------------------------------------------------------------------
# * Termination Processing
#--------------------------------------------------------------------------
def terminate
super
dispose_menu_background
dispose_command_window
@map_window.dispose
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
super
update_menu_background
@command_window.update
@map_window.update
if @command_window.active
update_command_selection
update_map_window
elsif @map_window.active
update_map_window
end
end
#--------------------------------------------------------------------------
# * Create Command Window
#--------------------------------------------------------------------------
def create_command_window
s1 = "OK"
@command_window = Window_Command.new(150, [s1], 1)
@command_window.y = 370
@command_window.x = 169
end
#--------------------------------------------------------------------------
# * Dispose of Command Window
#--------------------------------------------------------------------------
def dispose_command_window
@command_window.dispose
end
#--------------------------------------------------------------------------
# * Update Command Selection
#--------------------------------------------------------------------------
def update_command_selection
if Input.trigger?(Input::cool.gif
Sound.play_cancel
$scene = Scene_Map.new
elsif Input.trigger?(Input::C)
case @command_window.index
when 0 #terug
Sound.play_decision
$scene = Scene_Map.new
end
end
end
#--------------------------------------------------------------------------
# * Update Buy Item Selection
#--------------------------------------------------------------------------
def update_map_window
if Input.trigger?(Input::cool.gif
Sound.play_cancel
@command_window.active = true
@map_window.active = false
@map_window.visible = false
return
end
end
end
############################## WINDOW CLASS ###################################
## THIS MANAGES THE WINDOW, DISPLAYED INSIDE THE SCENE CLASS ##
###############################################################################

class Window_MapSystem < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
# x : window X coordinate
# y : window Y coordinate
#--------------------------------------------------------------------------
def initialize(x, y)
super(x, y, 544, 356)
refresh
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------

def nd_mapic
mapic = Cache.system("")
end
def refresh
self.contents.clear
mapic = Cache.system($MapSystemIMG) rescue nd_mapic #sets map IMG
cw = mapic.width
ch = mapic.height
src_rect = Rect.new(0, 0, cw, ch)
self.contents.blt(0 , 0, mapic, src_rect)
self.contents.draw_text(0, 0, 400, 20, $MapSystemMap, 0) #Displays the map name
end
end

TAG •
Comment '9'

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 3 습작 2012.12.24 5398
517 기타 Kylock 밤낮 스크립트 부분 한글화 + 달력 모드 (모드는 자작) 31 file RMdude 2009.02.15 4100
516 기타 Kylock1.2+(RMDude-Kylock1.5) Time System Script 4 file communnn 2011.10.20 2595
515 스킬 Learn Skills By Use 10 비극ㆍ 2010.04.19 2037
514 LevelMe v1.2 3 Man... 2008.10.27 1154
513 Limit Break VX 3 Man... 2008.10.28 1777
512 기타 Lock Screen 3 비극ㆍ 2010.04.19 2012
511 맵/타일 Map Saver 17 file 비극ㆍ 2010.04.18 2415
» 미니맵 Map-System by AmIMeYet [미니맵] 9 Man... 2008.10.28 2746
509 변수/스위치 MapSwitch VX Version: 1.1 1 Man... 2008.10.27 1327
508 MAX Level Limitation System 3 Man... 2008.10.28 1198
507 Menu Background Effects(온라인 스크립트 올릴려고 했다가 못 올렸음)아깝다.. Man... 2008.10.28 1665
506 메시지 MessageSound v2.0 글자에 소리 다다닥 스크립트 21 할렘 2009.02.02 3510
505 미니맵 MiniMap 1.0 미니맵 스크립트. 39 아방스 2010.12.02 4740
504 기타 Modified Advanced Weather Script VX 1.1 3 file Alkaid 2010.10.08 1967
503 상태/속성 MOG - Menu Status V 2.0 16 아방스 2011.01.01 3316
502 메뉴 MOG - Scroll Bar for VX file 습작 2014.07.06 1115
501 MOG 스토리 씬 22 file RPGbooster 2008.10.08 3345
500 이름입력 MOG 이름바꾸기 11 file RPGbooster 2008.10.08 3285
499 More SaveFlies(대박) 2 Man... 2008.10.28 2125
498 기타 MSX - XP Characters on VX/VX Ace 2 Alkaid 2013.01.26 1346
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ... 32 Next
/ 32