XP 스크립트



에러가 난다는 말에 = = ; 올려봅니다~ 중복이면 댓글부탁... 중복이다! 하기전에 실행 확인 여부 역시 부탁.
출처 모르....는..

# ▼▲▼ XRXS 1. 装備・全能力表示 ver.2 ▼▲▼
# by 桜雅 在土
#==============================================================================
# □ カスタマイズポイント
#==============================================================================
class Window_Base
  SYSTEM_WORD_EVA = "회피 수정치" # 「回避修正」の用語
end
#==============================================================================
# ■ Window_Base
#==============================================================================
class Window_Base
  #--------------------------------------------------------------------------
  # ● パラメータの描画
  #--------------------------------------------------------------------------
  alias xrxs_mp1_draw_actor_parameter draw_actor_parameter
  def draw_actor_parameter(actor, x, y, type)
    case type
    when 7
      parameter_name = SYSTEM_WORD_EVA
      parameter_value = actor.eva
      self.contents.font.color = system_color
      self.contents.draw_text(x, y, 120, 32, parameter_name)
      self.contents.font.color = normal_color
      self.contents.draw_text(x + 120, y, 36, 32, parameter_value.to_s, 2)
      return
    end
    xrxs_mp1_draw_actor_parameter(actor, x, y, type)
  end
end
#==============================================================================
# ■ Window_EquipLeft
#==============================================================================
class Window_EquipLeft < Window_Base
  #--------------------------------------------------------------------------
  # ○ 公開インスタンス変数
  #--------------------------------------------------------------------------
  attr_accessor :contents2
  #--------------------------------------------------------------------------
  # ● オブジェクト初期化
  #--------------------------------------------------------------------------
  alias xrxs_mp1_initialize initialize
  def initialize(actor)
    xrxs_mp1_initialize(actor)
    self.height = 416
    self.contents  = Bitmap.new(width - 32, height - 32)
    @contents2_window = Window_Base.new(self.x, self.y, self.width, self.height)
    @contents2_window.contents  = Bitmap.new(width - 32, height - 32)
    @contents2_window.opacity = 0
    refresh
    refresh2
  end
  #--------------------------------------------------------------------------
  # ● リフレッシュ [再定義]
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    draw_actor_name(@actor, 4, 0)
    draw_actor_level(@actor, 4, 32)
    draw_actor_parameter(@actor, 4, 64, 0)
    draw_actor_parameter(@actor, 4, 96, 1)
    draw_actor_parameter(@actor, 4, 128, 2)
    if @new_atk != nil
      self.contents.font.color = system_color
      self.contents.draw_text(160, 64, 40, 32, "→", 1)
      self.contents.font.color = @actor.atk < @new_atk ? system_color :
                                @actor.atk > @new_atk ? disabled_color :
                                normal_color
      self.contents.draw_text(200, 64, 36, 32, @new_atk.to_s, 2)
    end
    if @new_pdef != nil
      self.contents.font.color = system_color
      self.contents.draw_text(160, 96, 40, 32, "→", 1)
      self.contents.font.color = @actor.pdef < @new_pdef ? system_color :
                                @actor.pdef > @new_pdef ? disabled_color :
                                normal_color
      self.contents.draw_text(200, 96, 36, 32, @new_pdef.to_s, 2)
    end
    if @new_mdef != nil
      self.contents.font.color = system_color
      self.contents.draw_text(160, 128, 40, 32, "→", 1)
      self.contents.font.color = @actor.mdef < @new_mdef ? system_color :
                                @actor.mdef > @new_mdef ? disabled_color :
                                normal_color
      self.contents.draw_text(200, 128, 36, 32, @new_mdef.to_s, 2)
    end
  end
  #--------------------------------------------------------------------------
  # ○ リフレッシュ2
  #--------------------------------------------------------------------------
  def refresh2
    @contents2_window.contents.clear
    @contents2_window.draw_actor_parameter(@actor, 4, 192, 3)
    @contents2_window.draw_actor_parameter(@actor, 4, 224, 4)
    @contents2_window.draw_actor_parameter(@actor, 4, 256, 5)
    @contents2_window.draw_actor_parameter(@actor, 4, 288, 6)
    @contents2_window.draw_actor_parameter(@actor, 4, 320, 7)
    if @new_str != nil
      @contents2_window.contents.font.color = system_color
      @contents2_window.contents.draw_text(160, 192, 40, 32, "→", 1)
      @contents2_window.contents.font.color = @actor.str < @new_str ? system_color :
                                @actor.str > @new_str ? disabled_color :
                                normal_color
      @contents2_window.contents.draw_text(200, 192, 36, 32, @new_str.to_s, 2)
    end
    if @new_dex != nil
      @contents2_window.contents.font.color = system_color
      @contents2_window.contents.draw_text(160, 224, 40, 32, "→", 1)
      @contents2_window.contents.font.color = @actor.dex < @new_dex ? system_color :
                                @actor.dex > @new_dex ? disabled_color :
                                normal_color
      @contents2_window.contents.draw_text(200, 224, 36, 32, @new_dex.to_s, 2)
    end
    if @new_agi != nil
      @contents2_window.contents.font.color = system_color
      @contents2_window.contents.draw_text(160, 256, 40, 32, "→", 1)
      @contents2_window.contents.font.color = @actor.agi < @new_agi ? system_color :
                                @actor.agi > @new_agi ? disabled_color :
                                normal_color
      @contents2_window.contents.draw_text(200, 256, 36, 32, @new_agi.to_s, 2)
    end
    if @new_int != nil
      @contents2_window.contents.font.color = system_color
      @contents2_window.contents.draw_text(160, 288, 40, 32, "→", 1)
      @contents2_window.contents.font.color = @actor.int < @new_int ? system_color :
                                @actor.int > @new_int ? disabled_color :
                                normal_color
      @contents2_window.contents.draw_text(200, 288, 36, 32, @new_int.to_s, 2)
    end
    if @new_eva != nil
      @contents2_window.contents.font.color = system_color
      @contents2_window.contents.draw_text(160, 320, 40, 32, "→", 1)
      @contents2_window.contents.font.color = @actor.eva < @new_eva ? system_color :
                                @actor.eva > @new_eva ? disabled_color :
                                normal_color
      @contents2_window.contents.draw_text(200, 320, 36, 32, @new_eva.to_s, 2)
    end
  end
  #--------------------------------------------------------------------------
  # ● 装備変更後のパラメータ設定 [再定義]
  #--------------------------------------------------------------------------
  def set_new_parameters(new_atk, new_pdef, new_mdef)
    if @new_atk != new_atk or @new_pdef != new_pdef or @new_mdef != new_mdef
      @new_atk = new_atk
      @new_pdef = new_pdef
      @new_mdef = new_mdef
      refresh
    end
  end
  #--------------------------------------------------------------------------
  # ○ 装備変更後のパラメータ設定2
  #--------------------------------------------------------------------------
  def set_new_parameters2(new_str, new_dex, new_agi, new_int, new_eva)
    if @new_str != new_str or @new_dex != new_dex or @new_agi != new_agi or
      @new_int != new_int or @new_eva != new_eva
      @new_str = new_str
      @new_agi = new_agi
      @new_int = new_int
      @new_dex = new_dex
      @new_eva = new_eva
      refresh2
    end
  end
  #--------------------------------------------------------------------------
  # ○ 解放 [オーバーライド]
  #--------------------------------------------------------------------------
  def dispose
    @contents2_window.dispose
    super
  end
end
#==============================================================================
# ■ Window_EquipItem
#==============================================================================
class Window_EquipItem < Window_Selectable
  #--------------------------------------------------------------------------
  # ● オブジェクト初期化
  #--------------------------------------------------------------------------
  alias xrxs_mp1_initialize initialize
  def initialize(actor, equip_type)
    xrxs_mp1_initialize(actor, equip_type)
    self.x = 272
    self.width = 368
    self.contents = Bitmap.new(width - 32, height - 32)
    @column_max = 1
    refresh
  end
end
#==============================================================================
# ■ Scene_Equip
#==============================================================================
class Scene_Equip
  #--------------------------------------------------------------------------
  # ● リフレッシュ
  #--------------------------------------------------------------------------
  alias xrxs_mp1_refresh refresh
  def refresh
    # 呼び戻す
    xrxs_mp1_refresh
    # ライトウィンドウがアクティブの場合
    if @right_window.active
      # 装備変更後のパラメータを消去
      @left_window.set_new_parameters2(nil, nil, nil, nil, nil)
    end
    # アイテムウィンドウがアクティブの場合
    if @item_window.active
      # 現在装備中のアイテムを取得
      item1 = @right_window.item
      item2 = @item_window.item
      # 装備を変更
      last_hp = @actor.hp
      last_sp = @actor.sp
      @actor.equip(@right_window.index, item2 == nil ? 0 : item2.id)
      # 装備変更後のパラメータを取得
      new_str = @actor.str
      new_dex = @actor.dex
      new_agi = @actor.agi
      new_int = @actor.int
      new_eva = @actor.eva
      # 装備を戻す
      @actor.equip(@right_window.index, item1 == nil ? 0 : item1.id)
      @actor.hp = last_hp
      @actor.sp = last_sp
      # レフトウィンドウに描画
      @left_window.set_new_parameters2(new_str,new_dex,new_agi,new_int,new_eva)
    end
  end
end

Who's 백호

?

이상혁입니다.

http://elab.kr

Atachment
첨부 '1'
Comment '4'
  • ?
    가리로루 2010.01.24 01:15

    감사합니다

  • ?
    정근 2010.08.01 13:04

    저는 장비들이 옆으로 짤려 버리는데 어떻게 하죠 ?

  • ?
    백개의검 2011.02.09 23:25

    안녕하세요 전느 게임실행누르면 화면이 멈춰버리네요

  • ?
    생파 2012.02.23 17:55

    저도 옆으로 짤림.


List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6202
521 온라인 광넷[ 광땡 온라인 + 넷플레이 ] 62 - 하늘 - 2009.08.02 9003
520 메시지 공지(?)를 띄우는 스크립트 23 file - 하늘 - 2009.08.06 4007
519 기타 경험치 퍼센트 수정 백호 2009.02.22 1212
518 게임화면의 해상도를 변경하는 스크립트 6 제로스S2 2009.08.06 3334
517 온라인 게임화면을 전체화면으로 하기 27 file 이씨 2010.03.09 4056
516 타이틀/게임오버 게임오버 화면 에서 커맨드 윈도우 스크립트 12 file 백호 2009.02.21 3031
515 HUD 게임 플레이시 맵의 이름을 표시하는 스크립트 1 file 백호 2009.02.21 1935
514 게이지바 만들기 [헬악이님 제공] 12 file 아방스 2007.11.09 4419
513 기타 게이지 3 백호 2009.02.21 1395
512 타이틀/게임오버 게..임..오버.. ps인간 2009.01.23 2636
511 기타 거울에 캐릭터의 모습을 반사하는 효과 5 file 백호 2009.02.21 1472
510 기타 거울에 캐릭 반사 20 ok하승헌 2010.02.18 2388
509 기타 거울에 자신의모습이 비춰지는 스크립트 2 백호 2009.02.22 1489
508 메뉴 개별 메뉴 호출 단축키 스크립트 5 file 백호 2009.02.21 1965
507 HUD 강화 나침반 스크립트 (원본 by 허걱) 16 file JACKY 2010.08.16 3110
506 기타 강제 종료시키기 1 file 백호 2009.02.22 1015
505 상점 간단한 여관 by Tsunokiette@Creation Asylum 2 백호 2009.02.22 1530
504 전투 간단한 액알 스크립트!(1번째) 2 백호 2009.02.21 3166
503 기타 간단한 Scene_Base #2 2 Alkaid 2012.01.15 1738
502 기타 간단한 Scene_Base Alkaid 2010.09.09 1394
Board Pagination Prev 1 ... 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 ... 52 Next
/ 52