XP 스크립트





1. Window_Base 에서 아래의 문장을 찾습니다. ( 193 라인 근처입니다. )
------------------------------------------------------------------------------------------------
def draw_actor_graphic(actor, x, y)
 bitmap = RPG::Cache.character(actor.character_name, actor.character_hue)
 cw = bitmap.width / 4
 ch = bitmap.height / 4
 src_rect = Rect.new(0, 0, cw, ch)
 self.contents.blt(x - cw / 2, y - ch, bitmap, src_rect)
end
------------------------------------------------------------------------------------------------

2. 위문장 아래에 다음의 문장을 추가해줍니다.
------------------------------------------------------------------------------------------------
#--------------------------------------------------------------------------
# ?This def lets you use the battler graphic in the Window classes
#--------------------------------------------------------------------------
def draw_actor_battler_graphic(actor, x, y)
bitmap = RPG::Cache.battler(actor.battler_name, actor.battler_hue)
cw = bitmap.width
ch = bitmap.height
src_rect = Rect.new(0, 0, cw, ch)
self.contents.blt(x - cw / 2, y - ch, bitmap, src_rect)
end
#--------------------------------------------------------------------------
# Draw A Picture Using draw_picture
#--------------------------------------------------------------------------
def draw_picture(image, x, y)
 bitmap = RPG::Cache.picture(image)
 iw=bitmap.width
 ih=bitmap.height
 self.contents.blt(x, y , bitmap, Rect.new(0, 0, iw, ih))
end
--------------------------------------------------------------------------------------------------

3. Scene_Status 에서 아래의 문장을 찾습니다. ( 55라인 근처입니다. )
--------------------------------------------------------------------------------------------------
# R ボタンが押された場合
 if Input.trigger?(Input::R)
  # カーソル SE を演奏
  $game_system.se_play($data_system.cursor_se)
  # 次のアクターへ
  @actor_index += 1
  @actor_index %= $game_party.actors.size
  # 別のステータス画面に切り替え
  $scene = Scene_Status.new(@actor_index)
  return
 end
 # L ボタンが押された場合
 if Input.trigger?(Input::L)
  # カーソル SE を演奏
  $game_system.se_play($data_system.cursor_se)
  # 前のアクターへ
  @actor_index += $game_party.actors.size - 1
  @actor_index %= $game_party.actors.size
  # 別のステータス画面に切り替え
  $scene = Scene_Status.new(@actor_index)
------------------------------------------------------------------------------------------------

4. 위의 문장을 아래의 문장으로 교체해줍니다.
------------------------------------------------------------------------------------------------
# Right Trigger Input
 if Input.trigger?(Input::RIGHT)
  # Cursor SE
  $game_system.se_play($data_system.cursor_se)
  # Change Of Party Member (+1)
  @actor_index += 1
  @actor_index %= $game_party.actors.size
  # Refreshing Scene_Status
  $scene = Scene_Status.new(@actor_index)
  return
 end
 # Left Trigger Input
 if Input.trigger?(Input::LEFT)
  # Cursor SE
  $game_system.se_play($data_system.cursor_se)
  # Change Of Party Member (-1)
  @actor_index += $game_party.actors.size - 1
  @actor_index %= $game_party.actors.size
  # Refreshing Of Scene_Status
  $scene = Scene_Status.new(@actor_index)
--------------------------------------------------------------------------------------------------

5.  Window_Status 을 아래의 문장으로 교체해줍니다. (교체하기전 오류를 대비해 Window_Status 는 백업해주세요. )
--------------------------------------------------------------------------------------------------
#==============================================================================
# ■ Window_Status
# ● New Status Screen V2
# ● Created by: SunZeroX
#==============================================================================

class Window_Status < Window_Base
#--------------------------------------------------------------------------
# ● Initialision of the definations
#--------------------------------------------------------------------------
def initialize(actor)
 super(0, 0, 640, 480)
 self.contents = Bitmap.new(width - 32, height - 32)
 self.contents.font.name = $fontface
 self.contents.font.size = $fontsize
 @actor = actor
 refresh
end
#--------------------------------------------------------------------------
# ● The layout of the Status Screen
#--------------------------------------------------------------------------
def refresh
 self.contents.clear
 draw_picture("L-Cursor.png", 0, 0)
 draw_picture("R-Cursor.png", 560, 0)
 draw_actor_battler_graphic(@actor, 500, 400)
 draw_actor_name(@actor, 169, 0)
 draw_actor_level(@actor, 241, 0)
 draw_actor_state(@actor, 312, 0)
 draw_actor_hp(@actor, 0, 35, 172)
 draw_actor_sp(@actor, 0, 63, 172)
 draw_actor_parameter(@actor, 400, 35, 0)
 draw_actor_parameter(@actor, 400, 63, 1)
 draw_actor_parameter(@actor, 400, 91, 2)
 draw_actor_parameter(@actor, 200, 35, 3)
 draw_actor_parameter(@actor, 200, 63, 4)
 draw_actor_parameter(@actor, 200, 91, 5)
 draw_actor_parameter(@actor, 200, 119, 6)
 self.contents.font.color = system_color
 self.contents.draw_text(0, 91, 80, 32, "Exp")
 self.contents.draw_text(0, 119, 80, 32, "Next")
 self.contents.font.color = normal_color
 self.contents.draw_text(82 + 0, 91, 80, 32, @actor.exp_s, 2)
 self.contents.draw_text(82 + 0, 119, 80, 32, @actor.next_rest_exp_s, 2)
 self.contents.font.color = system_color
 self.contents.draw_text(0, 175, 80, 32, "Weapon")
 self.contents.draw_text(0, 231, 80, 32, "Shield")
 self.contents.draw_text(0, 287, 80, 32, "Helmet")
 self.contents.draw_text(0, 343, 80, 32, "Armor")
 self.contents.draw_text(0, 399, 80, 32, "Accessory")
 draw_item_name($data_weapons[@actor.weapon_id], 0 + 16, 203)
 draw_item_name($data_armors[@actor.armor1_id], 0 + 16, 259)
 draw_item_name($data_armors[@actor.armor2_id], 0 + 16, 315)
 draw_item_name($data_armors[@actor.armor3_id], 0 + 16, 371)
 draw_item_name($data_armors[@actor.armor4_id], 0 + 16, 427)
end
def dummy
 self.contents.font.color = system_color
 self.contents.draw_text(320, 112, 96, 32, $data_system.words.weapon)
 self.contents.draw_text(320, 176, 96, 32, $data_system.words.armor1)
 self.contents.draw_text(320, 240, 96, 32, $data_system.words.armor2)
 self.contents.draw_text(320, 304, 96, 32, $data_system.words.armor3)
 self.contents.draw_text(320, 368, 96, 32, $data_system.words.armor4)
 draw_item_name($data_weapons[@actor.weapon_id], 320 + 24, 144)
 draw_item_name($data_armors[@actor.armor1_id], 320 + 24, 208)
 draw_item_name($data_armors[@actor.armor2_id], 320 + 24, 272)
 draw_item_name($data_armors[@actor.armor3_id], 320 + 24, 336)
 draw_item_name($data_armors[@actor.armor4_id], 320 + 24, 400)
end
end
-------------------------------------------------------------------------------------------------------

6. 위에 그림중 2번째 3번째 그림을 당신의 게임제작 폴더 pictures 에 복사합니다.

끝~

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6153
401 시스템2C 4 file 글러브111 2011.01.15 2118
400 스킬 기술문서(스킬 습득 아이템) 7 ok하승헌 2010.02.18 2132
399 기타 KGC꺼 몬스터도감 수정해봤어요;;; 9 file 백호 2009.02.21 2134
398 기타 Upload & Download files with RGSS 2.1 by berka (XP/VX 공용) 5 Alkaid 2010.11.20 2134
397 기타 홈페이지 띄우기 (VX 상관없음.) 6 KNAVE 2009.08.25 2137
396 키입력 Aleworks Input Module 1.21 by vgvgf (SDK호환) 8 WMN 2008.04.06 2145
395 기타 [맵 아이디 확인 스크립트] 맵아이디 모르는 사람을 위한 스크립트 9 file 코아 코스튬 2010.10.09 2161
394 맵/타일 H-Mode7 Engine 1.0 by MGCaladtogel 8 Alkaid 2010.12.23 2161
393 기타 데이터베이스 자체 제한 해체 XP Ver. 13 THE풀잎 2010.07.04 2171
392 온라인 Multi-Netplay Extended[구버전용] 3 백호 2009.02.22 2176
391 메시지 Etude87_Item_Choice_XP ver.1.10 13 file 습작 2013.05.19 2178
390 기타 [All RGSS] 윈도우 메세지박스 스크립트 (Completed ver) 5 file Cheapmunk 2014.06.22 2179
389 메시지 Universal Message System 1.8.0 by ccoa 1 file Alkaid 2010.09.08 2184
388 기타 대화창 글자 한글자씩뜨는 스크립트 7 백호 2009.02.22 2185
387 기타 [신기술 체험] 레이싱 스크립트 8 file 백호 2009.02.22 2185
386 기타 [신기술 체험] 솔로채팅창 17 file 백호 2009.02.22 2187
385 기타 클리어 횟수 기록하기 1 file 허걱 2009.08.22 2188
384 상점 상점아템 가격변동(중뷁?) 4 캉쿤 2011.09.14 2188
383 기타 [회복] 대기 회복 스크립트4.0 여러 오류 문제 해결 및 길이 줄임 11 file 코아 코스튬 2010.11.06 2189
382 전투 오버드라이브 8 file 키라링 2009.01.23 2193
Board Pagination Prev 1 ... 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 ... 52 Next
/ 52