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 5408
517 메시지 어드밴스 텍스트 시스템 13 file 카르와푸딩의아틀리에 2009.06.30 4918
516 전투 사이드뷰배틀에서 시각적으로 위치 지정하기 9 file 078656577er 2009.10.14 4910
515 HUD 네비게이션 (나침반) 36 file 허걱 2009.08.25 4908
514 전투 전투 배경을 이미지로 설정하는 스크립트 20 file 아방스 2008.01.23 4893
513 메뉴 GuiRPG menu시스템 13 file 할렘 2009.02.07 4849
512 메뉴 캐릭터설명을 심플하게! 스크립트. 13 file 할렘 2009.02.03 4848
511 전투 VX에서 전투배경을 XP스타일로 나오게 하는 스크립트 7 아방스 2008.01.25 4844
510 타이틀/게임오버 타이틀에 스토리맵을 달자 26 file RPGbooster 2008.10.08 4829
509 기타 RPG 2000이나 RPG 2003처럼 전체화면으로 나오게 하는 스크립트(대박) 21 Man... 2008.10.28 4822
508 스킬 무기성장 랭크 시스템. 20 file 카르와푸딩의아틀리에 2009.07.08 4820
507 기타 rpg vx 렉 줄이는 스크립트 34 아방스 2008.03.09 4815
506 맵/타일 레이 월드맵 스크립트 14 file 카르와푸딩의아틀리에 2009.07.04 4813
505 기타 게임 해상도를 조절 하는 스크립트 19 아방스 2008.01.21 4780
504 HUD 맵 이름을 띠우는 스크립트 [메시지창] 24 아방스 2008.03.09 4748
503 타이틀/게임오버 타이틀 공지 37 file 허걱 2009.08.10 4748
502 미니맵 MiniMap 1.0 미니맵 스크립트. 39 아방스 2010.12.02 4740
501 이름입력 [rpg vx]한글 스크립트(저번 것보단 업그레이드 된 것입니다.^^) 17 file 레시온 2008.03.28 4736
500 케릭터 텍스트박스 18 file RPGbooster 2008.10.08 4709
499 메뉴 자작 메뉴 스크립트 for VX(L's Simple Custom Menu VX ver.) 5 Alkaid 2010.09.02 4705
498 ATB v1.0 배틀 시스템 + RPG Tankentai SBS v2.8 16 supergt 2008.10.11 4681
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