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
197 직업 서브클래스 선택 시스템 Subclass Selection System 7 file 카르와푸딩의아틀리에 2009.06.30 3943
196 기타 설명하기 힘든 스크립트 (스크린샷 확인) 10 file 사람이라면? 2010.08.16 3818
195 저장 세이브 시스템 확장 스크립트 9 file 신규회원 2012.02.24 3315
194 저장 세이브 파일 개수 16개로 늘리기 (기본 세이브 엔진용) 1 file Bunny_Boy 2015.09.07 817
193 기타 세이브 포인트 2 비극ㆍ 2010.04.19 2518
192 저장 세이브/로드가 불가능한 스크립트!!! 9 file ~AYARSB~ 2010.03.08 3298
191 메시지 소설풍(노벨풍) 문자 스크립트 31 file 맛난호빵 2011.01.03 5551
190 이동 및 탈것 스위치 on일때 못 움직이게...(이동고정) 6 허걱 2009.07.14 2326
189 기타 스크린샷 기능 14 비극ㆍ 2010.04.19 2090
188 기타 스크립트강좌 4 아하!잘봤어요. 2009.05.04 2158
187 기타 스크립트로 커먼 이벤트 실행 [수정] 3 허걱 2009.08.17 2311
186 스킬 스킬 사용시 컷인 연출 (번역) 26 file 훈덕 2009.02.05 5387
185 상점 스킬 샾 스크립트 2.0 48 아방스 2008.03.05 6628
184 전투 스킬 커맨드 스크립트 16 아방스 2009.02.05 4535
183 스킬 스킬 필요 조건(번역) 23 file 훈덕 2009.02.03 4644
182 스킬 스킬 필요조건에 살짝 손대봤습니다. -- 수정 18 아이미르 2011.03.23 2499
181 스킬 스킬, 아이템 적아 구분 없이 쓰기 10 file EuclidE 2011.10.16 2900
180 스킬 스킬북으로 스킬 레벨업!, 'SW_BookSkill' by SiotWarrior(재수정) 21 file 시옷전사 2011.05.15 2817
179 스킬분류 16 file RPGbooster 2008.10.11 2833
178 장비 스킬습득장비 [죄송] 19 file RPGbooster 2008.10.11 4049
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