查看: 1381|回复: 1

[已经解决] 如何在战斗中不显示“HP”字符

  [复制链接]
梦石
0
星屑
54
在线时间
489 小时
注册时间
2009-7-23
回帖
392
发表于 2011-9-3 14:55:30 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
未命名.jpg 在菜单中显示,但我不想在战斗中描绘
问题如下图:
梦石
0
星屑
7095
在线时间
1666 小时
注册时间
2008-10-29
回帖
6612

贵宾

发表于 2011-9-3 16:09:43 | 显示全部楼层
本帖最后由 后知后觉 于 2011-9-3 16:10 编辑

打开脚本编辑器 按 CTRL+SHIFT+F 搜索下面的内容
  1. def draw_actor_hp
复制代码
默认情况只会找到一个 是在 Window_Base 的第217 行
大概能看到这样的内容
  1.   def draw_actor_hp(actor, x, y, width = 144)
  2.     # 描绘字符串 "HP"
  3.     self.contents.font.color = system_color
  4.     self.contents.draw_text(x, y, 32, 32, $data_system.words.hp)
  5.     # 计算描绘 MaxHP 所需的空间
复制代码
改成这样
  1.   def draw_actor_hp(actor, x, y, width = 144)
  2.     # 描绘字符串 "HP"
  3.     self.contents.font.color = system_color
  4.     if not $game_temp.in_battle
  5.       self.contents.draw_text(x, y, 32, 32, $data_system.words.hp)
  6.     end
  7.     # 计算描绘 MaxHP 所需的空间
复制代码
上面这是改的HP的  SP的在下面第 252 行.
  1.     self.contents.draw_text(x, y, 32, 32, $data_system.words.sp)
复制代码
自己学着改吧

点评

只是因为加了个条件判断吗?  发表于 2011-9-3 17:57











你知道得太多了

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部