| 赞 | 1 |
| VIP | |
| 好人卡 | |
| 积分 | 6 |
| 经验 | |
| 最后登录 | 2025-3-17 |
| 在线时间 | 943 小时 |
路人
- 梦石
- 0
- 星屑
- 595
- 在线时间
- 943 小时
- 注册时间
- 2011-8-20
- 回帖
- 965
|
发表于 2012-2-3 23:05:36
|
显示全部楼层
分成两个脚本来写啊
脚本段1- for t in $scene.target_battlers
- t.hp=t.last_hp
- if t.damage.is_a?(Integer)
- if t.element_rate(9)>=150
- t.sp+=t.damage
- t.damage=-t.damage
- else
- t.sp-=t.damage
- end
- end
- end
复制代码 脚本段2- a = $scene.active_battler
- for t in $scene.target_battlers
- f=t.damage; f=0 unless f.is_a?(Integer)
- if t.element_rate(9)>=150
- a.damage=f
- a.sp-=a.damage
- else
- a.damage=-f
- a.sp-=a.damage
- end
- end
- $scene.active_battler = a
-
复制代码 |
|