XP 스크립트

#==============================================================================
# ■ 전투 위치 조정                by Claimh
#------------------------------------------------------------------------------
#    ・전투시의 바트라? 의? 시 위치를 자동적으로 수정합니다。
#    ・1~ 4명까지 대응。
#==============================================================================

# HP등의 텍스트 수정
class Window_BattleStatus < Window_Base
  #--------------------------------------------------------------------------
  # ● 리프레쉬(재정? )
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    @item_max = $game_party.actors.size
    for i in 0...$game_party.actors.size
      actor = $game_party.actors[i]
#------
      case $game_party.actors.size
      when 1
        actor_x = 240
      when 2
        actor_x = i * 240 + 120 + 4
      when 3
        actor_x = i * 200 + 40 + 4
      when 4
        actor_x = i * 160 + 4
      end
#------
      draw_actor_name(actor, actor_x, 0)
      draw_actor_hp(actor, actor_x, 32, 120)
      draw_actor_sp(actor, actor_x, 64, 120)
      if @level_up_flags[i]
        self.contents.font.color = normal_color
        self.contents.draw_text(actor_x, 96, 120, 32, "레벨업!")
      else
        draw_actor_state(actor, actor_x, 96)
      end
    end
  end
end

# 바트르코? 드
class Scene_Battle
  #--------------------------------------------------------------------------
  # ●악??코? 드윈드우의 셋업
  #--------------------------------------------------------------------------
  alias phase3_setup_command_window_cc phase3_setup_command_window
  def phase3_setup_command_window
    phase3_setup_command_window_cc
    case $game_party.actors.size
    when 1
      actor_x = 240
    when 2
      actor_x = @actor_index * 240 + 120
    when 3
      actor_x = @actor_index * 200 + 40
    when 4
      actor_x = @actor_index * 160
    end
    # 악??코? 드윈드우의 위치를 설정
    @actor_command_window.x = actor_x
  end
end

# 바트라?
class Game_Actor < Game_Battler
  #--------------------------------------------------------------------------
  # ● 배틀 화면 X 좌표의 취득
  #--------------------------------------------------------------------------
  alias screen_x_cc screen_x
  def screen_x
    # 파티내의 줄순서로부터 X 좌표를 계산해 돌려준다
    if self.index != nil
      case $game_party.actors.size
      when 1
        actor_x = 320
      when 2
        actor_x = self.index * 240 + 200
      when 3
        actor_x = self.index * 200 + 120
      when 4
        actor_x = screen_x_cc    # 원래위치인듯....
      end
      return actor_x
    else
      return 0
    end
  end
end

Who's 백호

?

이상혁입니다.

http://elab.kr


List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6203
201 전투 전투에서도 맵 BGM 연결하는 스크립트 2 file 백호 2009.02.21 1130
200 메뉴 메뉴 화면 변경 스크립트 file 백호 2009.02.21 2237
199 메뉴 스테이터스 일람 스크립트 file 백호 2009.02.21 1330
198 오디오 음악감상 스크립트 3 file 백호 2009.02.21 1126
197 기타 CG그림 감상 스크립트 file 백호 2009.02.21 1735
196 파티 파티교환 시스템...이걸로 순서 교체도 가능할 듯... 9 file 백호 2009.02.21 2393
195 메뉴 제가 쓰고있는 메뉴 13 file 백호 2009.02.21 3030
194 메시지 메세지플러스3.1v스크립트(얼굴표시,메세지색상,속도등정하는스크립트) 8 백호 2009.02.21 4880
193 HUD 맵명을 표시하는 스크립트 한글로 번역한것 백호 2009.02.21 1257
192 아이템 아이템 소지수 무제한 1 백호 2009.02.21 887
191 전투 데미지마루 백호 2009.02.21 1163
190 스킬 선택 스킬 스크립트 4 file 백호 2009.02.21 1632
189 기타 발소리 스크립트 4 file 백호 2009.02.21 1614
188 전투 전투중의 윈도우 전부 투명화 3 file 백호 2009.02.21 1879
187 아이템 아이템 분류별로 나누기 (1) - 밑글과 다른 스크립트 3 file 백호 2009.02.21 1122
186 아이템 아이템 종류별로 분류하는 스크립트 2 file 백호 2009.02.21 1056
185 기타 전투 승리 BGM+페이드아웃 스크립트 1 file 백호 2009.02.21 1159
184 전투 전투 속도 조정 스크립트 2 file 백호 2009.02.21 1261
183 타이틀/게임오버 타이틀 화면 연출 4 file 백호 2009.02.21 2286
182 기타 특수효과 ElseEX 스크립트 file 백호 2009.02.21 995
Board Pagination Prev 1 ... 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 Next
/ 52