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 7314
201 기타 Chaos Project Debug System 1.06b by Blizzard file Alkaid 2010.09.07 1380
200 그래픽 Weather Script(버전 불명) by ccoa 1 file Alkaid 2010.09.08 1603
199 메시지 Universal Message System 1.8.0 by ccoa 1 file Alkaid 2010.09.08 2214
198 메뉴 Ring menu edit for SDK2 (Original by Hypershadow180) file Alkaid 2010.09.08 1396
197 메뉴 Ring menu edit (Non-SDK ver.) Alkaid 2010.09.08 1570
196 기타 간단한 Scene_Base Alkaid 2010.09.09 1399
195 아이템 Categorized Items Menu 1.3 by albertfish 1 file Alkaid 2010.09.09 1821
194 메시지 Hermes(Hermes Extends RPGXP Message System) 0.3d by derula Alkaid 2010.09.10 2054
193 전투 DerVVulfman's addons for Mr.Mo's ABS file Alkaid 2010.09.10 1654
192 전투 Mr. Mo's ABS 5.5 13 Alkaid 2010.09.10 3470
191 전투 CTB by Charlie Fleed 3.1 - FF10 스타일의 전투시스템 6 Alkaid 2010.09.10 2986
190 전투 Minkoff's Animated Battlers - Enhanced 13.2 by DerVVulfman Alkaid 2010.09.10 1698
189 메뉴 L's Custom Menu #4: 'Compact' (SDK 2.x 필수) Alkaid 2010.09.11 1784
188 액터 크리쳐 합체, 'SW_CreatureMix(for_rmxp)' by SiotWarrior 21 file 시옷전사 2010.09.11 2811
187 HUD MOG_C_HUD. 6 file Bera 2010.09.11 2352
186 HUD MOG_Active_Hud 3 file Bera 2010.09.11 2482
185 저장 Advanced Save Menu 편집한 것. (SDK2용) Alkaid 2010.09.11 1238
184 메뉴 L's Custom Menu #3: 1인용 메뉴 Revision 1 3 Alkaid 2010.09.12 2403
183 그래픽 MAWS: Modified Advanced Weather Script 1.2 by Agckuu Coceg 2 file Alkaid 2010.09.13 1997
182 액터 Actor Customization 6.0.2 by Synthesize 4 file Alkaid 2010.09.17 1934
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