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 6153
521 기타 모험일기 5 키라링 2009.01.18 1825
520 장비 장비 화면 개조 스크립트 1 file 백호 2009.02.21 1822
519 전투 Mr.Mo's ABS Ultimate 2.6 by DerVVulfman Alkaid 2012.01.04 1820
518 상점 상점 메뉴 개조시킨 스크립트 - 수정 - 2 file 백호 2009.02.21 1818
517 전투 전투배경 확장 3 file 백호 2009.02.21 1817
516 이동 및 탈것 그래픽의 크기로 좁은길은 못지나가게한다. 7 file 백호 2009.02.21 1816
515 전투 데미지 출력 스크립트 6 백호 2009.02.22 1809
514 전투 Mr.Mo's ABS Ultimate 3.4 by DerVVulfman Alkaid 2012.03.14 1803
513 키입력 키보드 입력을 변수에 받아들이기 1 file 백호 2009.02.21 1802
512 기타 일시정지 스크립트 2 file 백호 2009.02.22 1796
511 아이템 Categorized Items Menu 1.3 by albertfish 1 file Alkaid 2010.09.09 1795
510 오디오 FMOD Ex Audio Module Rewrite 1.51 by Cowlol 2 file Alkaid 2010.11.18 1792
509 기타 [신기술 체험] 추가, 수정 심플액션 4 file 백호 2009.02.22 1790
508 상태/속성 BattleStatus Modification 1.1 for RTAB by DerVVulfman@rmxp.org 2 file 백호 2009.02.22 1788
507 메뉴 비밀소년님의 필드에서 경치 % 로 나오는거 윈도우 없이 8 백호 2009.02.22 1787
» 장비 장비 전능력 스크립트 4 file 백호 2009.02.22 1783
505 전투 적 한계 HP수치 돌파 스크립트 ■ RPGモジュール 3 쉴더 2009.02.21 1783
504 장비 [KGC]장비 제한(레벨,완력등등) 7 file 백호 2009.02.21 1780
503 기타 Phylomortis.com 스크립트들. file Alkaid 2010.09.02 1775
502 기타 광물캐기 시스템 v2 3 백호 2009.02.22 1775
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