| 
 
| 赞 | 0 |  
| VIP | 0 |  
| 好人卡 | 0 |  
| 积分 | 1 |  
| 经验 | 12354 |  
| 最后登录 | 2016-12-29 |  
| 在线时间 | 158 小时 |  
 Lv1.梦旅人 
	梦石0 星屑50 在线时间158 小时注册时间2008-4-12帖子43 | 
4楼
 
 
 楼主|
发表于 2013-10-23 02:13:57
|
只看该作者 
| 本帖最后由 魔潘安 于 2013-10-23 02:25 编辑 
 回覆 76213585 大大
 謝謝~我找到您說的那個腳本了
 但那是增加新能力值的腳本
 而我是想要增加諸如:暴擊率(固有但隱藏的數值)之類的
 
 #======================================
 
 回覆 tan12345 大大
 謝謝您的解答
 我嘗試用了上述腳本
 發現戰鬥會跳錯誤...
 #--------------------------------------------------------------------------
 # ● 發動技能/物品
 #--------------------------------------------------------------------------
 def invoke_item(target, item)
 if rand < target.item_cnt(@subject, item)
 invoke_counter_attack(target, item)
 elsif rand < target.item_mrf(@subject, item)
 invoke_magic_reflection(target, item)
 else
 apply_item_effects(apply_substitute(target, item), item)
 end
 @subject.last_target_index = target.index
 end
 
 好像是   if rand < target.item_cnt(@subject, item) 這行錯誤
 但我不懂原因>"<...
 謝謝!!
 
 | 
 |