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 6153
681 기타 능력치 무한대 스크립트 (따로 넣을필요없음) 2 백호 2009.02.21 1027
680 장비 심플액션 수정본(장비드롭, 데미지표시) 원본:비밀소년 수정:kcss 10 file 백호 2009.02.21 2721
679 전투 전투후 경험치 분배와 레벨업시 HP/SP 전회복 15 백호 2009.02.21 2377
678 스킬 Grouping and Detail (Items/Skills) 1 file 백호 2009.02.21 839
677 전투 심플액알 더더 수정(스위치, 변수) 17 file 백호 2009.02.21 3046
676 기타 Steal Script (SDK Required) file 백호 2009.02.21 1182
675 키입력 키보드 입력을 변수에 받아들이기 1 file 백호 2009.02.21 1802
674 기타 횡스크롤 스크립트 한국말 번역. 15 file 백호 2009.02.21 3311
673 메시지 한글자씩 뜨는 스크립트 6 백호 2009.02.21 3001
672 직업 직업마다 다른 성장 2 백호 2009.02.22 1724
671 스킬 스킬도감 오류 수정본 2 file 백호 2009.02.22 1340
670 스킬 스킬 업데이트 시스템 4 file 백호 2009.02.22 1644
669 전투 Single/All Target Switching by RPG Advocate 백호 2009.02.22 816
668 기타 Activation_system file 백호 2009.02.22 775
667 장비 Multi-equip script 노신버전 2 file 백호 2009.02.22 1129
» 전투 위치보정스크립트 한글화 1 백호 2009.02.22 922
665 기타 Hero Databass 4 file 백호 2009.02.22 797
664 기타 몬스터 도감 18 file 백호 2009.02.22 2667
663 전투 Star Ocean Battle System 3 file 백호 2009.02.22 1228
662 전투 펫 시스템(ABS 3.4v포함) 23 file 백호 2009.02.22 3459
Board Pagination Prev 1 ... 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 ... 52 Next
/ 52