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 기타 이벤트 뿌리기 + 범위지정 8 file 허걱 2009.07.13 2698
516 이동속도의 한계를 없앤다 11 file RPGbooster 2008.10.08 2815
515 이동 및 탈것 이동 기능 파워업 (장애물 등을 피하는 이동방식) 8 file 파노 2014.04.27 1723
514 메뉴 윈도우창 크기 조절 스크립트 0.3 5 아방스 2008.01.30 3038
513 메뉴 윈도우 색변경 스크립트 7 file 비극ㆍ 2010.03.01 2598
512 웨이포인트 9 file RPGbooster 2008.10.08 3415
511 맵/타일 월드맵 스크립트 49 아방스 2008.09.07 6123
510 원경 원경(파노라마) 바꾸기 9 file 허걱 2010.05.28 3369
509 움직이는커서 11 file RPGbooster 2008.10.08 5090
508 기타 요리 시스템을 도입하는 스크립트입니다. 9 file 스페나로츠 2011.08.18 3145
507 온라인 온라인입니다 4 file 알피지GM 2010.03.07 6358
506 저장 오토세이브 VX 5 file 카르와푸딩의아틀리에 2009.10.05 4138
505 전투 오버 드라이브 프로블럼 2 Man... 2008.10.28 2268
504 오버 드라이브 8/24 버젼 20 file RPGbooster 2008.10.11 2904
503 퀘스트 오메가7 퀘스트 스크립트 한글화,사용법,데모게임 직접제작 32 file DH Games 2010.02.14 4578
502 영어 잘하는 사람만 보세요..저도 모르겠음(무슨 스크립트인지) 3 Man... 2008.10.27 1372
501 메시지 여러항목 선택지 ... Scene처리.. 23 file 허걱 2009.02.14 5277
500 기타 여러스크립트(목적은 포인트) 12 file 인생은 힘들다. 2011.08.26 3088
499 전투 에너미를 아이템으로 변화하는 스킬 8 Evangelista 2009.05.27 2850
498 엄청 좋음(DEMO)클릭 하이퍼링크 걸려있음(누가 변혁좀 해 줬으면...) 4 Man... 2008.10.27 1745
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