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
841 기타 전투 승리 BGM+페이드아웃 스크립트 1 file 백호 2009.02.21 1159
840 상태/속성 순간 적으로 무적상태되는 스크립트 백호 2009.02.21 1161
839 기타 상점 변동시세 적용 스크립트 3 file 백호 2009.02.21 1162
838 기타 Resolution Changer Ultimate by Zeus81 7 file 습작 2013.05.05 1162
837 전투 데미지마루 백호 2009.02.21 1163
836 기타 마우스로 길찾기 스크립트 예제 file 백호 2009.02.21 1168
835 이름입력 Advanced Enter Hero Name Window by RPG Advocate 백호 2009.02.22 1168
834 기타 메세지를 분출해 표시 백호 2009.02.22 1169
833 기타 Shift Puzzles v2 by SephirothSpawn (SDK호환) 3 file 백호 2009.02.22 1170
832 장비 장비무기가이드&쉴드방어 1 백호 2009.02.22 1179
831 기타 현재 맵BGM을 그대로 전투 BGM으로 연결 from phylomortis.com 백호 2009.02.22 1180
830 기타 Steal Script (SDK Required) file 백호 2009.02.21 1182
829 전투 RTAB 1.15와 애드온 from 歯車の城 4 file 백호 2009.02.22 1186
828 영상 XP에서 AVI파일을 지원가능하게 하는 스크립트 2 백호 2009.02.21 1189
827 전투 Advanced Individual Battle Command v2.1 by Trickster@rmxp.org (SDK호환) 1 file 백호 2009.02.22 1189
826 스킬 KGC - 도주스킬 스크립트 백호 2009.02.22 1193
825 이동 및 탈것 RMVX dash for RMXP by PK8 2 Alkaid 2013.01.22 1193
824 전투 SimpleAction (출처 -RPGXP 포럼 비밀소년님의 자작품) 1 file 백호 2009.02.21 1194
823 저장 StupidStormy36's Custom Save System 3 Alkaid 2010.10.05 1199
822 변수/스위치 Switchless Common Events by PK8(XP/VX/VXA) Alkaid 2012.09.15 1199
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ... 52 Next
/ 52