XRXS 스크립트를 적용시키고 테스트 플레이를 했더니 에러가 납니다.
ULTI-one ????????? 스크립트 전문
# ▽△▽ ULTIパラメータシステム ▽△▽
#
#==============================================================================
# □ Database_ActorStatus
#==============================================================================
class Database_ActorStatus
#--------------------------------------------------------------------------
# ○ 公開インスタンス変数
#--------------------------------------------------------------------------
attr_reader :mhp # 最大HP
attr_reader :msp # 最大SP
attr_reader :str # 物理攻撃
attr_reader :pdef # 物理防御
attr_reader :int # 魔招攻撃
attr_reader :mnd # 魔招防御
attr_reader :cnt # 詠唱速度
attr_reader :spr # SP回復
attr_reader :epc # 魔招点操作力
#--------------------------------------------------------------------------
# ○
#--------------------------------------------------------------------------
def initialize(actor_id)
@epc = 6
case actor_id
when 1 # デュー
@mhp = 100
@msp = 100
@str = 95
@pdef = 90
@int = 95
@mnd = 70
@cnt = 65
@spr = 115
when 2 # アミ
@mhp = 70
@msp = 105
@str = 85
@pdef = 65
@int = 35
@mnd = 130
@cnt = 100
@spr = 100
when 3 # ルフィ
@mhp = 60
@msp = 130
@str = 65
@pdef = 85
@int = 105
@mnd = 85
@cnt = 100
@spr = 115
when 4 # ザイド
@mhp = 130
@msp = 65
@str = 130
@pdef = 90
@int = 70
@mnd = 105
@cnt = 180
@spr = 50
when - # ヴァイル
@mhp = 95
@msp = 95
@str = 160
@pdef = 80
@int = 10
@mnd = 45
@cnt = 250
@spr = 105
when - # ハード
@mhp = 100
@msp = 100
@str = 1
@pdef = 140
@int = 180
@mnd = 90
@cnt = 100
@spr = 100
end
end
end
#==============================================================================
# ■ Game_Actor
#==============================================================================
class Game_Actor < Game_Battler
#--------------------------------------------------------------------------
# ● MaxHP の取得
#--------------------------------------------------------------------------
def maxhp
n = Database_ActorStatus.new(self.id).mhp
n = (n + @maxhp_plus) * @level / 5 + 5 + @level + 5
for i in @states
n *= $data_states[i].maxhp_rate / 100.0
end
return n.floor
end
#--------------------------------------------------------------------------
# ● MaxSP の取得
#--------------------------------------------------------------------------
def maxsp
n = Database_ActorStatus.new(self.id).msp
n = (n + @maxsp_plus) * @level / 5 + 5 + @level + 5
for i in @states
n *= $data_states[i].maxsp_rate / 100.0
end
return n.floor
end
#--------------------------------------------------------------------------
# ● STRの取得
#--------------------------------------------------------------------------
def str
@str_plus = 15 if @str_plus > 15
n = Database_ActorStatus.new(self.id).str
return 1 if n == 1
n = (n + @str_plus) * @level / 50 + 5
weapon = $data_weapons[@weapon_id]
n *= weapon != nil ? weapon.str_plus : 100
n /= 100
armor2 = $data_armors[@armor2_id]
n *= armor2 != nil ? armor2.str_plus : 100
n /= 100
armor3 = $data_armors[@armor3_id]
n *= armor3 != nil ? armor3.str_plus : 100
n /= 100
for i in @states
n *= $data_states[i].str_rate / 100.0
end
return [[n, 1].max, 255].min
end
#--------------------------------------------------------------------------
# ● PDEFの取得
#--------------------------------------------------------------------------
def pdef
n = Database_ActorStatus.new(self.id).pdef
n = (n + @agi_plus) * @level / 50 + 5
armor2 = $data_armors[@armor2_id]
n *= armor2 != nil ? armor2.pdef : 100
n /= 100
armor3 = $data_armors[@armor3_id]
n *= armor3 != nil ? armor3.pdef : 100
n /= 100
for i in @states
n *= $data_states[i].pdef_rate / 100.0
end
return [[n, 1].max, 255].min
end
#--------------------------------------------------------------------------
# ● INTの取得
#--------------------------------------------------------------------------
def int
n = Database_ActorStatus.new(self.id).int
n = (n + @int_plus) * @level / 50 + 5
weapon = $data_weapons[@weapon_id]
n *= weapon != nil ? weapon.int_plus : 100
n /= 100
armor2 = $data_armors[@armor2_id]
n *= armor2 != nil ? armor2.int_plus : 100
n /= 100
armor3 = $data_armors[@armor3_id]
n *= armor3 != nil ? armor3.int_plus : 100
n /= 100
for i in @states
n *= $data_states[i].int_rate / 100.0
end
return [[n, 1].max, 255].min
end
#--------------------------------------------------------------------------
# ● MNDの取得
#--------------------------------------------------------------------------
def mdef
n = Database_ActorStatus.new(self.id).mnd
n = (n + @dex_plus) * @level / 50 + 5
armor2 = $data_armors[@armor2_id]
n *= armor2 != nil ? armor2.mdef : 100
n /= 100
armor3 = $data_armors[@armor3_id]
n *= armor3 != nil ? armor3.mdef : 100
n /= 100
for i in @states
n *= $data_states[i].mdef_rate / 100.0
end
return [[n, 1].max, 255].min
end
#--------------------------------------------------------------------------
# ● CNTの取得
#--------------------------------------------------------------------------
def base_dex
n = Database_ActorStatus.new(self.id).cnt
n = (n + 0) * @level / 50 + 5
weapon = $data_weapons[@weapon_id]
n *= weapon != nil ? weapon.dex_plus : 100
n /= 100
armor2 = $data_armors[@armor2_id]
n *= armor2 != nil ? armor2.dex_plus : 100
n /= 100
armor3 = $data_armors[@armor3_id]
n *= armor3 != nil ? armor3.dex_plus : 100
n /= 100
for i in @states
n *= $data_states[i].dex_rate / 100.0
end
return [[n, 1].max, 255].min
end
end
문제의 103번째 줄
n = (n + @maxsp_plus) * @level / 5 + 5 + @level + 5
어떻게 해야 하나요;;