캐릭터들이 보이지 않게 저장을 하고싶은데 어디서 손을 대야하나요?
RMVX
2015.09.09 22:04
저장및 로드시 캐릭터들이 보이지 않는 방법
조회 수 279 추천 수 0 댓글 4
| 첨부 '1' |
|---|
Comment '4'
- ?
-
?
위 링크의 스크립트를 확인 해보니 다른분은 잘 되신다고 하시는데 저는 오류가 나네요.
같은 분이 작성했지만 조금 다른 스크립트 입니다. 혹 위에것이 안되시면 이걸로 해보세요
# =============================================================================
# TheoAllen - Face Graphics on Save Menu
# Version : 1.1
# Contact : www.rpgmakerid.com (or) http://theolized.blogspot.com
# (This script is translated by AbsoluteIce)
# =============================================================================
($imported ||= {})[:Theo_SaveMenuFace] = true
# =============================================================================
# CHANGE LOGS:
# -----------------------------------------------------------------------------
# 2013.06.03 - Include map name as save header
# 2013.06.02 - Started and finished script
# =============================================================================
=begin
Introduction :
This script gives the ability to see faces on the save menu
How to use :
Put below material and above main
Terms of use :
This script has a special condition, Feel free to use it.
Note :
This script lets you handle the look of the save menu. If you use another
persons script that changes the way/design of the save menu, its highly
possible that this script is compatible with it.
=end
# =============================================================================
Include_Mapname = true # Set true / false to not include mapname
# =============================================================================
module DataManager
def self.make_save_header
header = {}
header[:characters] = $game_party.characters_for_savefile
header[:playtime_s] = $game_system.playtime_s
header[:faces] = $game_party.faces_for_savefile
header[:map_name] = $game_map.display_name
header
end
end
class Window_SaveFile
def refresh
contents.clear
change_color(normal_color)
name = Vocab::File + " #{@file_index + 1}"
draw_text(4, 0, 200, line_height, name)
@name_width = text_size(name).width
#draw_party_characters(152, 58)
draw_party_faces(80, 0)
draw_mapname(0,0,contents.width,2)
draw_playtime(0, contents.height - line_height, contents.width - 4, 2)
end
def draw_mapname(x,y,width,align)
return unless Include_Mapname
header = DataManager.load_header(@file_index)
return unless header
draw_text(x,y,width,line_height,header[:map_name],align)
end
def draw_party_faces(x, y)
header = DataManager.load_header(@file_index)
return unless header && header[:faces]
puts header[:faces].size
header[:faces].each_with_index do |data, i|
draw_face(data[0], data[1], x + i * 96, y)
end
end
end
class Game_Party < Game_Unit
def faces_for_savefile
battle_members.collect do |actor|
[actor.face_name,actor.face_index]
end
end
end -
?
해본 결과 window savefile 51번쨰 줄에서 오류가 뜨더군요
아마도 vxa라서 그러는거같네요...
vx는 없나요ㅜㅜ -
?
아 다행이도 savefile에서 잠깐 만지니 됬네요 ^^
답변감사드립니다!
해당 글이 도움이 될 것 같습니다. 스크립트 내용은 페이스칩으로 대체하는 경우지만
스크립트에서
73번째줄인 draw_face($game_party.leader.face_name, $game_party.leader.face_index, 350, y) 이 부분을 지우시거나 앞에#을 붙여주시면 페이스칩도 보이지 않게됩니다.