我不太懂脚本? 是把原来的脚本里的hp改成tp? 这样对吗?
module VIPArcher
Class_State = [1,2,3,4] #自己添加职业ID
Class_State_ID = [2,2,2,2] #附加的状态ID和上面一一对应
end
class Game_BattlerBase
alias vip_20140817_tp tp=
def tp=(tp)
vip_20140817_tp(tp)
if tp_rate = 1
state = VIPArcher::Class_State_ID[VIPArcher::Class_State.index(self.class_id)] if
VIPArcher::Class_State.include?(self.class_id)
self.add_state(state) if state != nil
end if self.actor?
refresh
end
end