赞 | 0 |
VIP | 0 |
好人卡 | 4 |
积分 | 1 |
经验 | 5960 |
最后登录 | 2016-9-2 |
在线时间 | 115 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 115 小时
- 注册时间
- 2012-11-15
- 帖子
- 119
|
VIPArcher 发表于 2014-7-24 02:16 ![]()
喵,我又想到点东西,现在这样没提示是不是感觉不科学?于是随便写了一下,我感觉没啥问题,你最好自己再 ... - class Game_Actor
-
- alias apply_guard_without_state apply_guard
- def apply_guard(value)
- value = apply_guard_without_state(value)
- if state?(50) && value > 0 # 50 号状态
- v = $game_variables
- if v[30] >= value # 30 号变量
- $Hurt_Shield = value
- $Magic_Shield = "have"
- v[30] -= value
- 0
- else
- value -= v[30]
- $Hurt_Shield = value
- $Magic_Shield = "have"
- v[30] = 0
- $game_party.members.each {|actor| actor.remove_state(50) }
- value
- end
- else
- $Magic_Shield = ""
- value
- end
- end
- end
- class Game_ActionResult
- #--------------------------------------------------------------------------
- # ● 获取 HP 伤害的文字
- #--------------------------------------------------------------------------
- def hp_damage_text
- if @hp_drain > 0
- fmt = @battler.actor? ? Vocab::ActorDrain : Vocab::EnemyDrain
- sprintf(fmt, @battler.name, Vocab::hp, @hp_drain)
- elsif @hp_damage > 0
- fmt = @battler.actor? ? Vocab::ActorDamage : Vocab::EnemyDamage
- sprintf(fmt, @battler.name, @hp_damage)
- elsif @hp_damage < 0
- fmt = @battler.actor? ? Vocab::ActorRecovery : Vocab::EnemyRecovery
- sprintf(fmt, @battler.name, Vocab::hp, -hp_damage)
- elsif $Magic_Shield == "have"
- fmt = "魔法之盾抵消了%s点伤害"
- sprintf(fmt,$Hurt_Shield.to_i)
- else
- fmt = @battler.actor? ? Vocab::ActorNoDamage : Vocab::EnemyNoDamage
- sprintf(fmt, @battler.name)
- end
- end
- end
复制代码 感谢!将9L和11L的脚本融合过后完全没问题了并且完美解决了我的问题,此贴可以改为“已经解决”了.... |
|