| 赞 | 0 |
| VIP | |
| 好人卡 | |
| 积分 | 18 |
| 经验 | |
| 最后登录 | 2020-8-1 |
| 在线时间 | 2161 小时 |
酱油的
- 梦石
- 0
- 星屑
- 1840
- 在线时间
- 2161 小时
- 注册时间
- 2007-12-22
- 回帖
- 3216

|
发表于 2008-3-31 06:17:40
|
显示全部楼层
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感谢您的热情解答~ |
|