VX 스크립트

변수를 화면에 나타나게 해주는 스크립트입니다.
제작자: sojabird

#################################################################### # Window_HUD_VARS v2.0 # # By: SojaBird # Site: http://www.nestcast.blogspot.com # Discription: This little script creates a HUD wich can show up to 10 different variables simultaneously. # #################################################################### module SojaBird_WHV ############# # Start SETUP # ############# HUD_SWITCH = 40 # Turn this ON to show the HUD AMOUNT = 2 # Amount of variables used [1-10] VAR_ID_1 = 1 TEXT1 = "one" VAR_ID_2 = 2 TEXT2 = "two" VAR_ID_3 = 3 TEXT3 = "three" VAR_ID_4 = 4 TEXT4 = "four" VAR_ID_5 = 5 TEXT5 = "five" VAR_ID_6 = 6 TEXT6 = "six" VAR_ID_7 = 7 TEXT7 = "seven" VAR_ID_8 = 8 TEXT8 = "eight" VAR_ID_9 = 9 TEXT9 = "nine" VAR_ID_10 = 10 TEXT10 = "ten" FILE = "Window" # Name of windowstyle [Default "Window"] X_PLACEMENT = 1 # Left=1, Right=2 Y_PLACEMENT = 3 # Top=1, Middle=2, Bottom=3 WIDTH = 100 # Width of the hud ############ # End SETUP # ############ end class Window_HUD_VARS < Window_Base include SojaBird_WHV def initialize super(0, 0, WIDTH, 24*AMOUNT+32) case X_PLACEMENT when 1 self.x = 0 when 2 self.x = 494 end case Y_PLACEMENT when 1 self.y = 0 when 2 self.y = 208-(24*AMOUNT+32)/2 when 3 self.y = 416-(24*AMOUNT+32) end self.windowskin = Cache.system(FILE) self.visible = $game_switches[HUD_SWITCH] refresh end def refresh contents.clear # get values @v1 = $game_variables[VAR_ID_1] @v2 = $game_variables[VAR_ID_2] @v3 = $game_variables[VAR_ID_3] @v4 = $game_variables[VAR_ID_4] @v5 = $game_variables[VAR_ID_5] @v6 = $game_variables[VAR_ID_6] @v7 = $game_variables[VAR_ID_7] @v8 = $game_variables[VAR_ID_8] @v9 = $game_variables[VAR_ID_9] @v10 = $game_variables[VAR_ID_10] # draw values contents.draw_text(0, 0, contents.width - 0, WLH, @v1, 2) contents.draw_text(0, 24, contents.width - 0, WLH, @v2, 2) contents.draw_text(0, 48, contents.width - 0, WLH, @v3, 2) contents.draw_text(0, 72, contents.width - 0, WLH, @v4, 2) contents.draw_text(0, 96, contents.width - 0, WLH, @v5, 2) contents.draw_text(0, 120, contents.width - 0, WLH, @v6, 2) contents.draw_text(0, 144, contents.width - 0, WLH, @v7, 2) contents.draw_text(0, 168, contents.width - 0, WLH, @v8, 2) contents.draw_text(0, 192, contents.width - 0, WLH, @v9, 2) contents.draw_text(0, 216, contents.width - 0, WLH, @v10, 2) # draw text contents.draw_text(0, 0, contents.width - 0, WLH, TEXT1, 0) contents.draw_text(0, 24, contents.width - 0, WLH, TEXT2, 0) contents.draw_text(0, 48, contents.width - 0, WLH, TEXT3, 0) contents.draw_text(0, 72, contents.width - 0, WLH, TEXT4, 0) contents.draw_text(0, 96, contents.width - 0, WLH, TEXT5, 0) contents.draw_text(0, 120, contents.width - 0, WLH, TEXT6, 0) contents.draw_text(0, 144, contents.width - 0, WLH, TEXT7, 0) contents.draw_text(0, 168, contents.width - 0, WLH, TEXT8, 0) contents.draw_text(0, 192, contents.width - 0, WLH, TEXT9, 0) contents.draw_text(0, 216, contents.width - 0, WLH, TEXT10, 0) end def update self.visible = $game_switches[HUD_SWITCH] return if !self.visible if @v1 != $game_variables[VAR_ID_1] or @v2 != $game_variables[VAR_ID_2] or @v3 != $game_variables[VAR_ID_3] or @v4 != $game_variables[VAR_ID_4] or @v5 != $game_variables[VAR_ID_5] or @v6 != $game_variables[VAR_ID_6] or @v7 != $game_variables[VAR_ID_7] or @v8 != $game_variables[VAR_ID_8] or @v9 != $game_variables[VAR_ID_9] or @v10 != $game_variables[VAR_ID_10] refresh end end end #------------------------------------------------------------ # * Scene_Map: Attach HUD to map #------------------------------------------------------------ class Scene_Map < Scene_Base alias soja_scemap_sta_hudv start alias soja_scemap_ter_hudv terminate alias soja_scemap_upd_hudv update def start soja_scemap_sta_hudv @soj_hudv = Window_HUD_VARS.new end def terminate @soj_hudv.dispose soja_scemap_ter_hudv end def update soja_scemap_upd_hudv @soj_hudv.update end end


출처: rpgrevolution.com

Who's Tofuman

?
WE ARE!? PENN STATE!!!!!
Comment '8'

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 3 습작 2012.12.24 5453
377 메뉴 GuiRPG menu시스템 13 file 할렘 2009.02.07 4873
376 기타 데이터베이스 자체 제한 해체 스크립트 [Database Limit Breaker] 13 file 할렘 2009.02.07 3565
375 메뉴 (모그메뉴 풀세트팩 SEL Style.) 유니크급 자료 147 file 할렘 2009.02.07 9565
374 기타 심플 마우스 시스템 1.5 애드온 11 file RMdude 2009.02.11 4329
373 이동 및 탈것 Wachunga님의 XP용 MapLink VX용으로 개조 6 file 허걱 2009.02.13 3041
372 기타 게임시간&밤낮 54 file 허걱 2009.02.14 6114
371 메시지 여러항목 선택지 ... Scene처리.. 23 file 허걱 2009.02.14 5278
» HUD 변수 표시 HUD 8 Tofuman 2009.02.15 2472
369 기타 Kylock 밤낮 스크립트 부분 한글화 + 달력 모드 (모드는 자작) 31 file RMdude 2009.02.15 4117
368 메뉴 모그메뉴 스킨입니다. 1 file 아부리 2009.02.16 6869
367 메뉴 CogWheelBars 시스템. 13 file 할렘 2009.02.20 4364
366 기타 태양 스크립트. 15 file 할렘 2009.02.20 4465
365 영상 동영상 재생 스크립트.-Game_Film II-(테스트) 7 할렘 2009.02.22 3744
364 기타 아키루냥님 요청 스크립트(자작) 4 file Last H 2009.02.22 2756
363 기타 [kcg] 슬립 데미지 상세화 19 BoneheadedAlien 2009.02.22 3244
362 스킬 미완성 구버전. 2칸 위에 있는 글을 이용해주세요. 7 Last H 2009.02.23 1927
361 타이틀/게임오버 륀느님 요청] 전투 전멸후 Game over없이 특정위치로 이동 10 Last H 2009.02.24 2837
360 이름입력 아이템 이름을 내마음대로 정하자! name_changer 1.0v 26 file Last H 2009.02.25 4068
359 기타 액터선택지제작 간편화 스크립트 7 Evangelista 2009.02.26 4085
358 전투 ORBS [새로운 전투 방식] 48 file 아방스 2009.03.04 10215
Board Pagination Prev 1 ... 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 ... 32 Next
/ 32