标题: 新人腳本問題 [打印本页] 作者: eheroboy 时间: 2008-7-17 18:52 标题: 新人腳本問題 #--------------------------------------------------------------------------
# ● 获取 MaxHP
#--------------------------------------------------------------------------
def maxhp
n = [[base_maxhp + @maxhp_plus, 1].max, 999999].min
for i in @states
n *= $data_states.maxhp_rate / 100.0
end
n = [[Integer(n), 1].max, 999999].min
return n
end