| 赞 | 0  | 
 
| VIP | 10 | 
 
| 好人卡 | 49 | 
 
| 积分 | 13 | 
 
| 经验 | 22958 | 
 
| 最后登录 | 2020-8-1 | 
 
| 在线时间 | 2161 小时 | 
 
 
 
 
 
Lv3.寻梦者 酱油的 
	- 梦石
 - 0 
 
        - 星屑
 - 1315 
 
        - 在线时间
 - 2161 小时
 
        - 注册时间
 - 2007-12-22
 
        - 帖子
 - 3271
 
 
  
 
 | 
	
1.判斷攻擊者帶有某個屬性可以用: 
if attacker.element_set.include?(ID) 
... 
end  
  判斷防禦者帶有某個屬性可以用: 
if self.element_rate.include?(ID) 
... 
end  
以上兩者要寫在Game_Battler 3的attack_effect(attacker)中 
2.技能帶有某個屬性可以用: 
if skill.element_set.include?(ID) 
... 
end  
以上兩者要寫在Game_Battler 3的skill_effect(user, skill)中 
  系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~ |   
 
 
 
 |