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 6310
34 장비 착용한 장비에 따라 모습이 달라지는 스크립트 예제 5 file 게임애호가 2015.02.14 2027
33 장비 Auto Equipment Optimization for Guillaume777's Multi Slot Script by DerVVulfman Alkaid 2012.09.09 1499
32 장비 MultiSlots! 2.4 by DerVVulfman 2 Alkaid 2011.09.05 1468
31 장비 Multislots! 2.2 by DerVVulfman 4 file Alkaid 2011.02.18 1611
30 장비 Angie's Equipment Sets 2.3 by DerVVulfman 7 Alkaid 2010.12.31 1870
29 장비 Equipment Upgrade System 1.1 by Charlie Fleed Alkaid 2010.11.18 1928
28 장비 Multislots! 2.1 by DerVVulfman 3 file Alkaid 2010.09.02 1543
27 장비 CSSR8-장비품 생산&강화 시스템 18 file 백호 2009.02.22 3960
26 장비 CSSR5-장비품 중량 시스템 1 file 백호 2009.02.22 1736
25 장비 CSSR1-장비품 어빌리티포인트제 file 백호 2009.02.22 1600
24 장비 KGC_EquipmentBreak(장비품 파괴) 1 백호 2009.02.22 1357
23 장비 KGC_장비확장 (7/30일자) 12 file 백호 2009.02.22 2057
22 장비 장비품개조 - KGC_AlterEquipment (8/12일자) 2 file 백호 2009.02.22 1695
21 장비 SIBruno's Advanced Equip Screen v2 file 백호 2009.02.22 1248
» 장비 장비 전능력 스크립트 4 file 백호 2009.02.22 1784
19 장비 Advanced Equip Window 백호 2009.02.22 806
18 장비 장비창 개조 스크립트 from Harts Horn 7 백호 2009.02.22 1775
17 장비 Multi-equip script ver.6 by Guillaume777 4 file 백호 2009.02.22 1212
16 장비 전투중에 장비변경 from RGSS Wiki 1 백호 2009.02.22 1989
15 장비 장비무기가이드&쉴드방어 1 백호 2009.02.22 1182
Board Pagination Prev 1 2 Next
/ 2