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
197 Side View CBS 사이드뷰배틀 블리치버젼 13 RPGbooster 2008.10.11 5232
196 상점 Shopoholic(한글 설명) 11 Man... 2008.10.29 3185
195 SephirothSpawn's Slanted Bars in VX 1.1 2 Man... 2008.10.28 1572
194 Screen Shortcut Script Man... 2008.10.27 1142
193 Screen Resolution 3 Man... 2008.10.28 1171
192 Scene_Credit script Plug & Play 1 Man... 2008.10.27 1085
191 전투 sbs battler configuration 한글 번역 13 file 시트르산 2010.09.23 4475
190 기타 RTS? 미니게임 스크립트 7 file 사람이라면? 2010.08.16 2788
189 전투 rpgvx 간단액알 스크립트 제작: 41 *PS 2008.02.07 9824
188 온라인 RPGVX 3D스크립트 11 file 고자몬 2011.07.10 5050
187 전투 RPGTankentai SBS3.3b 버전 (사이드뷰) 21 file 카르와푸딩의아틀리에 2009.07.01 8455
186 메뉴 rpg 만들기 vx 정보창에 조금더 자세한 정보가 나오게 하는 스크립트 28 아방스 2008.01.25 5077
185 맵/타일 RPG 만들기 VX 로 구현한 3D~ 42 아방스 2008.09.02 8405
184 HUD rpg 만들기 vx - 맵이름 띠우는 스크립트 ^^ 74 아방스 2008.01.27 11925
183 그래픽 RPG XP의 Transitions효과를 VX에도 적용을 해보자 4 아방스 2008.01.27 3931
182 기타 rpg vx 렉 줄이는 스크립트 34 아방스 2008.03.09 4815
181 타이틀/게임오버 RPG VX - 타이틀 스크린 스크립트 23 아방스 2008.01.24 5740
180 전투 RPG tankentai에서의 치명적 문제점을 보완한 스크립트 2 file 톰소여동생 2010.11.03 3117
179 전투 RPG Tankentai SBS 3.4d + ATB 1.2c Kaduki 18 시트르산 2010.09.10 6449
178 전투 RPG Tankentai SBS 3.3 Kaduki Eng 2 아방스 2009.02.05 5467
Board Pagination Prev 1 ... 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 Next
/ 32