| 赞 | 3 |
| VIP | 3 |
| 好人卡 | 0 |
| 积分 | 1 |
| 经验 | 48466 |
| 最后登录 | 2022-9-20 |
| 在线时间 | 70 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 142
- 在线时间
- 70 小时
- 注册时间
- 2006-5-14
- 帖子
- 882
|
终于可以结贴了,这个18和19是针对诅咒这个状态作的判断设定吧!呵呵,还有班班改的是脚本如果我没理解错的话是不是每回合20%MAXHP对面,如果是5%MAXHP的话大约是
# 连续伤害
# 禾西
if @active_battler.hp > 0
if @active_battler.state?(17)
if @active_battler.hp > @active_battler.maxhp/5
@active_battler.damage=@active_battler.maxhp/5
else
@active_battler.damage=@active_battler.hp-1
end
@active_battler.damage=@active_battler.damage.to_i
@active_battler.hp-=@active_battler.damage
@active_battler.animation_id = 21
@active_battler.damage_pop = true
end
if @active_battler.state?(18) and not @active_battler.state?(19)
@active_battler.damage=-@active_battler.maxhp/5
@active_battler.damage=@active_battler.damage.to_i
@active_battler.hp-=@active_battler.damage
@active_battler.animation_id = 20
@active_battler.damage_pop = true
end
if @active_battler.slip_damage?
@active_battler.slip_damage_effect
@active_battler.damage_pop = true
end
end
是不是应改为:
if @active_battler.hp > 0
if @active_battler.state?(17)
if @active_battler.hp > @active_battler.maxhp/20
@active_battler.damage=@active_battler.maxhp/20
else
@active_battler.damage=@active_battler.hp-1
end
@active_battler.damage=@active_battler.damage.to_i
@active_battler.hp-=@active_battler.damage
@active_battler.animation_id = 21
@active_battler.damage_pop = true
end
if @active_battler.state?(18) and not @active_battler.state?(19)
@active_battler.damage=-@active_battler.maxhp/20
@active_battler.damage=@active_battler.damage.to_i
@active_battler.hp-=@active_battler.damage
@active_battler.animation_id = 20
@active_battler.damage_pop = true
end
if @active_battler.slip_damage?
@active_battler.slip_damage_effect
@active_battler.damage_pop = true
end
end
这样改对吗?
还有原有的默认那个连续伤害是否还有效? |
|