=begin #================================================= ============================== #嘲笑国家 #版本1.0 #作者game_guy #------------------------------------------------- ------------------------------ # 介绍: #嘲讽敌人时,嘲讽者受到攻击的可能性较高 #所有敌人。这个脚本,而不是使用技能,它使用状态来 #控制嘲讽水平。 # # 特征: #可定制的嘲讽状态 #甚至可以用来避免攻击 # #说明: #跳转到CONFIGURE STATES区域,你会添加你的状态和嘲讽 #配置那里。嘲讽可以颠倒以避免攻击。去做 #这个,只需将嘲讽级别设置为负数即可。您分配的号码 #到状态,是它将添加/删除成员的次数 #roullette被敌人袭击时。 # #现在让演员“嘲讽”敌人,所有你需要做的就是给他一个 #嘲讽状态,可以通过技能或物品轻松完成。 # #学分: #game_guy〜创建这个精美的脚本。 #GrimTrigger〜请求它 =end #=============================================================================== module TauntStates STATES = { #========================= # CONFIGURE STATES # -Add new lines. # state_id => taunt_level, #========================= #左边设定状态ID 右边数值越大被锁定概率越高,负数越大不被锁定概率越高 17 => 100, 18 => 5000, 19 => 9999, 20 => -500, } end     class Game_Actor < Game_Battler def calculate_taunt taunt = 0 TauntStates::STATES.each {|key, value| taunt += value if @states.include?(key)} return taunt end end     class Game_Party def random_target_actor(hp0 = false) roulette = [] for actor in @actors if (not hp0 and actor.exist?) or (hp0 and actor.hp0?) position = $data_classes[actor.class_id].position n = [50 - position + actor.calculate_taunt, 1].max n.times do   roulette.push(actor) end end end if roulette.size == 0 return nil end return roulette[rand(roulette.size)] end end 
 
 =begin  
#================================================= ==============================  
#嘲笑国家  
#版本1.0  
#作者game_guy  
#------------------------------------------------- ------------------------------  
# 介绍:  
#嘲讽敌人时,嘲讽者受到攻击的可能性较高  
#所有敌人。这个脚本,而不是使用技能,它使用状态来  
#控制嘲讽水平。  
#  
# 特征:  
#可定制的嘲讽状态  
#甚至可以用来避免攻击  
#  
#说明:  
#跳转到CONFIGURE STATES区域,你会添加你的状态和嘲讽  
#配置那里。嘲讽可以颠倒以避免攻击。去做  
#这个,只需将嘲讽级别设置为负数即可。您分配的号码  
#到状态,是它将添加/删除成员的次数  
#roullette被敌人袭击时。  
#  
#现在让演员“嘲讽”敌人,所有你需要做的就是给他一个  
#嘲讽状态,可以通过技能或物品轻松完成。  
#  
#学分:  
#game_guy〜创建这个精美的脚本。  
#GrimTrigger〜请求它  
=end  
#===============================================================================  
module TauntStates  
STATES = {  
#=========================  
# CONFIGURE STATES  
# -Add new lines.  
# state_id => taunt_level,  
#=========================  
#左边设定状态ID 右边数值越大被锁定概率越高,负数越大不被锁定概率越高  
17 => 100,  
18 => 5000,  
19 => 9999,  
20 => -500,  
}  
end  
   
   
class Game_Actor < Game_Battler  
def calculate_taunt  
taunt = 0  
TauntStates::STATES.each {|key, value|  
taunt += value if @states.include?(key)}  
return taunt  
end  
end  
   
   
class Game_Party  
def random_target_actor(hp0 = false)  
roulette = []  
for actor in @actors  
if (not hp0 and actor.exist?) or (hp0 and actor.hp0?)  
position = $data_classes[actor.class_id].position  
n = [50 - position + actor.calculate_taunt, 1].max  
n.times do  
   
roulette.push(actor)  
end  
end  
end  
if roulette.size == 0  
return nil  
end  
return roulette[rand(roulette.size)]  
end  
end  
 
  
 
国外扒到的嘲讽脚本..应该没冲突吧.. |