赞 | 0 |
VIP | 2 |
好人卡 | 1 |
积分 | 6 |
经验 | 27196 |
最后登录 | 2023-12-29 |
在线时间 | 169 小时 |
Lv2.观梦者
- 梦石
- 0
- 星屑
- 594
- 在线时间
- 169 小时
- 注册时间
- 2008-10-29
- 帖子
- 431
|
呼 用下面这段代替脚本里的 Window_Status吧
我是在原版的脚本上改的
因为考虑到致命的几率和敌人的速度有关
你可以把致命的判断公式改了
我这里用的致命的公式是 敏捷/10+5
也就是说如果敏捷为20 那么就是2+5=7的致命
在Game_battler 3里面修改致命的计算公式
把
if self.damage > 0
# 会心一击修正
if rand(100) < 4 * attacker.dex / self.agi
self.damage *= 2
self.critical = true
改成
if self.damage > 0
# 会心一击修正
if rand(100) < (attacker.dex / 10 + 5)#致命几率为 敏捷/10再+5
self.damage *= 2
self.critical = true
如下的替换 Window_Status 里的全部内容
#==============================================================================
# ■ Window_Status
#------------------------------------------------------------------------------
# 显示状态画面、完全规格的状态窗口。
#==============================================================================
class Window_Status < Window_Base
#--------------------------------------------------------------------------
# ● 初始化对像
# actor : 角色
#--------------------------------------------------------------------------
def initialize(actor)
super(0, 0, 640, 480)
self.contents = Bitmap.new(width - 32, height - 32)
@actor = actor
refresh
end
#--------------------------------------------------------------------------
# ● 刷新
#--------------------------------------------------------------------------
def refresh
self.contents.clear
draw_actor_graphic(@actor, 40, 112)
draw_actor_name(@actor, 4, 0)
draw_actor_class(@actor, 4 + 144, 0)
draw_actor_level(@actor, 96, 32)
draw_actor_state(@actor, 96, 64)
draw_actor_hp(@actor, 96, 112, 172)
draw_actor_sp(@actor, 96, 144, 172)
self.contents.font.color = system_color
self.contents.draw_text(96, 276, 120, 32, "致命")
self.contents.font.color = normal_color
critical = @actor.dex/10 + 5
#这里要和Game_battler 3 里面的致命公式保持一致
self.contents.draw_text(96 + 120, 276, 36, 32, critical.to_s + "%", 2)
draw_actor_parameter(@actor, 96, 180, 0)
draw_actor_parameter(@actor, 96, 212, 1)
draw_actor_parameter(@actor, 96, 244, 2)
draw_actor_parameter(@actor, 96, 304, 3)
draw_actor_parameter(@actor, 96, 336, 4)
draw_actor_parameter(@actor, 96, 368, 5)
draw_actor_parameter(@actor, 96, 400, 6)
self.contents.font.color = system_color
self.contents.draw_text(320, 48, 80, 32, "EXP")
self.contents.draw_text(320, 80, 80, 32, "NEXT")
self.contents.font.color = normal_color
self.contents.draw_text(320 + 80, 48, 84, 32, @actor.exp_s, 2)
self.contents.draw_text(320 + 80, 80, 84, 32, @actor.next_rest_exp_s, 2)
self.contents.font.color = system_color
self.contents.draw_text(320, 160, 96, 32, "装备")
draw_item_name($data_weapons[@actor.weapon_id], 320 + 16, 208)
draw_item_name($data_armors[@actor.armor1_id], 320 + 16, 256)
draw_item_name($data_armors[@actor.armor2_id], 320 + 16, 304)
draw_item_name($data_armors[@actor.armor3_id], 320 + 16, 352)
draw_item_name($data_armors[@actor.armor4_id], 320 + 16, 400)
end
def dummy
self.contents.font.color = system_color
self.contents.draw_text(320, 112, 96, 32, $data_system.words.weapon)
self.contents.draw_text(320, 176, 96, 32, $data_system.words.armor1)
self.contents.draw_text(320, 240, 96, 32, $data_system.words.armor2)
self.contents.draw_text(320, 304, 96, 32, $data_system.words.armor3)
self.contents.draw_text(320, 368, 96, 32, $data_system.words.armor4)
draw_item_name($data_weapons[@actor.weapon_id], 320 + 24, 144)
draw_item_name($data_armors[@actor.armor1_id], 320 + 24, 208)
draw_item_name($data_armors[@actor.armor2_id], 320 + 24, 272)
draw_item_name($data_armors[@actor.armor3_id], 320 + 24, 336)
draw_item_name($data_armors[@actor.armor4_id], 320 + 24, 400)
end
end 版主对此帖的认可:『同情地抚摸一下这位老兄,有劳你继续给LX这位SSD同学写好现成东西吧……』,积分『+50』。 |
|