加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
class Game_Character def jjc_npc_huanren $game_variables[24] = $game_map.events.values.select{|ev| ev.event.name == "Enemy"} $npc_zb_chong = $game_map.events.values.select{|ev| ev.event.name == "Enemyzb"} if $game_map.events[$game_variables[24][0].id] == nil and $game_map.events[$game_variables[24][1].id] == nil $game_map.events[$npc_zb_chong[0].id].moveto(10, 0) unless $game_map.events[$npc_zb_chong[0].id] == nil $game_map.events[$npc_zb_chong[0].id].name = "Enemy" unless $game_map.events[$npc_zb_chong[0].id] == nil $game_map.events[$npc_zb_chong[1].id].moveto(10, 0) unless $game_map.events[$npc_zb_chong[1].id] == nil $game_map.events[$npc_zb_chong[1].id].name = "Enemy" unless $game_map.events[$npc_zb_chong[1].id] == nil # 换人冷却时间 $hrlq = 2400 end #unless $game_map.events[$game_variables[24][0].id] == nil or $game_map.events[$game_variables[24][1].id] == nil # if ($game_variables[24][0].battler.hp <= $game_variables[24][0].battler.maxhp.to_f/100*50 or # $game_variables[24][1].battler.hp <= $game_variables[24][1].battler.maxhp.to_f/100*50) and $hrlq<=0 # $npc_zb_chong = $game_map.events.values.select{|ev| ev.event.name == "Enemyzb"} # $npc_zb_chong[0].moveto(10, 0) # $npc_zb_chong[1].moveto(10, 0) # $game_variables[24][0].moveto(59, 0) # $game_variables[24][1].moveto(59, 0) #$game_variables[24][0].name = "Enemyzb" #$game_variables[24][1].name = "Enemyzb" #$npc_zb_chong[0].name = "Enemy" #$npc_zb_chong[1].name = "Enemy" #换人冷却时间 # $hrlq = 2400 # end #end end end
class Game_Character
def jjc_npc_huanren
$game_variables[24] = $game_map.events.values.select{|ev| ev.event.name == "Enemy"}
$npc_zb_chong = $game_map.events.values.select{|ev| ev.event.name == "Enemyzb"}
if $game_map.events[$game_variables[24][0].id] == nil and $game_map.events[$game_variables[24][1].id] == nil
$game_map.events[$npc_zb_chong[0].id].moveto(10, 0) unless $game_map.events[$npc_zb_chong[0].id] == nil
$game_map.events[$npc_zb_chong[0].id].name = "Enemy" unless $game_map.events[$npc_zb_chong[0].id] == nil
$game_map.events[$npc_zb_chong[1].id].moveto(10, 0) unless $game_map.events[$npc_zb_chong[1].id] == nil
$game_map.events[$npc_zb_chong[1].id].name = "Enemy" unless $game_map.events[$npc_zb_chong[1].id] == nil
# 换人冷却时间
$hrlq = 2400
end
#unless $game_map.events[$game_variables[24][0].id] == nil or $game_map.events[$game_variables[24][1].id] == nil
# if ($game_variables[24][0].battler.hp <= $game_variables[24][0].battler.maxhp.to_f/100*50 or
# $game_variables[24][1].battler.hp <= $game_variables[24][1].battler.maxhp.to_f/100*50) and $hrlq<=0
# $npc_zb_chong = $game_map.events.values.select{|ev| ev.event.name == "Enemyzb"}
# $npc_zb_chong[0].moveto(10, 0)
# $npc_zb_chong[1].moveto(10, 0)
# $game_variables[24][0].moveto(59, 0)
# $game_variables[24][1].moveto(59, 0)
#$game_variables[24][0].name = "Enemyzb"
#$game_variables[24][1].name = "Enemyzb"
#$npc_zb_chong[0].name = "Enemy"
#$npc_zb_chong[1].name = "Enemy"
#换人冷却时间
# $hrlq = 2400
# end
#end
end
end
|