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 6202
54 전투 배틀포인트 + 배틀샵 1 file 백호 2009.02.21 1272
53 전투 버틀러 색조 변경 5 file 백호 2009.02.21 1552
52 전투 보행그래픽으로 싸우는 턴알 17 백호 2009.02.22 3782
51 전투 사이드뷰 방식 스크립트. 8 file 백호 2009.02.21 4640
50 전투 사이드뷰 배틀 (2003 형식으 전투)| 12 file 아방스 2007.11.09 4747
49 전투 사이드뷰 전투(보행그래픽) 15 file 백호 2009.02.21 4244
48 전투 사이비 CTB 1 file 백호 2009.02.21 1701
47 전투 사이트뷰 전투 스크립트 (CBS R1) 8 file 백호 2009.02.21 3499
46 전투 숙력도 시스템 스크립트 2 백호 2009.02.21 1409
45 전투 시뮬레이션 턴알 3 file 백호 2009.02.21 3055
44 전투 심플액알 더더 수정(스위치, 변수) 17 file 백호 2009.02.21 3046
43 전투 액알 스크립트 24 백호 2009.02.22 6017
42 전투 액티브 타임 배틀(보행그래픽) file 백호 2009.02.21 2104
41 전투 에너미 HP&SP 스크립트 4 파이널판타지 2011.08.16 2902
40 전투 에너미 HP&SP 표시 스크립트 2 file 백호 2009.02.21 2544
39 전투 에너미 HP·SP투시 11 file 백호 2009.02.21 3088
38 전투 에너미들도 게이지바 달고싶다~!! 14 file 백호 2009.02.21 4100
37 전투 엑터, 에너미 개별적인 효과음 스크립트 1 백호 2009.02.21 1292
36 전투 오버드라이브 8 file 키라링 2009.01.23 2194
» 전투 위치보정스크립트 한글화 1 백호 2009.02.22 922
Board Pagination Prev 1 2 3 4 5 6 7 8 9 Next
/ 9