在新窗口中打开脚本页
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| $VIPArcherScript ||= {};$VIPArcherScript[:battle_state] = 20141102 class Game_Battler < Game_BattlerBase alias state_battle_start on_battle_start def on_battle_start state_battle_start self.feature_objects.each {|obj| obj.note.split(/[\r\n]+/).each{ |line| self.add_state($1.to_i) if line =~ /<被动状态:\s*(\d+)>/}} end alias state_on_battle_end on_battle_end def on_battle_end state_on_battle_end self.feature_objects.each {|obj| obj.note.split(/[\r\n]+/).each{ |line| self.remove_state($1.to_i) if line =~ /<被动状态:\s*(\d+)>/}} end end
|