查看: 2819|回复: 2

[已经解决] 关于MP条跟TP条

[复制链接]
梦石
0
星屑
125
在线时间
486 小时
注册时间
2007-5-27
回帖
788
发表于 2014-6-16 09:43:40 | 显示全部楼层 |阅读模式

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

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

×
……
那啥,能否通过添加备注来让某些职业只显示MP条而某些只显示TP条,没备注的就是正常显示(两种都在)?

点评

好的,多谢了……  发表于 2014-6-22 07:07
脚本小改了一下 预防了未来可能出现的BUG  发表于 2014-6-21 18:48

百合控

梦石
0
星屑
6548
在线时间
1275 小时
注册时间
2013-8-21
回帖
3522

开拓者

发表于 2014-6-16 10:10:16 | 显示全部楼层
本帖最后由 余烬之中 于 2014-6-21 18:41 编辑

脚本[pre lang="ruby" line="1"]#==============================================================================
# ** Window_Base
#==============================================================================
class Window_Base
  #--------------------------------------------------------------------------
  # * Draw Simple Status
  #--------------------------------------------------------------------------
  def draw_actor_simple_status(actor, x, y)
    draw_actor_name(actor, x, y)
    draw_actor_level(actor, x, y + line_height * 1)
    draw_actor_icons(actor, x, y + line_height * 2)
    draw_actor_class(actor, x + 120, y)
    draw_actor_hp(actor, x + 120, y + line_height * 1)
    case actor.actor.note
    when /<TP bar only>/i
      draw_actor_tp(actor, x + 120, y + line_height * 2)
    when /<MP bar only>/i
      draw_actor_mp(actor, x + 120, y + line_height * 2)
    when /<No bar>/i
      # do nothing
    else
      draw_actor_mp(actor, x + 120, y + line_height * 2 -  6)
      draw_actor_tp(actor, x + 120, y + line_height * 3 - 12)
    end
  end
end
#==============================================================================
# ** Window_BattleStatus
#==============================================================================
class Window_BattleStatus
  #--------------------------------------------------------------------------
  # * Draw Gauge Area
  #--------------------------------------------------------------------------
  def draw_gauge_area(rect, actor)
    case actor.actor.note
    when /<TP bar only>/i
      draw_gauge_area_without_mp(rect, actor)
    when /<MP bar only>/i
      draw_gauge_area_without_tp(rect, actor)
    when /<no bar>/i
      # do nothing
    else
      draw_gauge_area_with_tp(rect, actor)
    end
  end
  #--------------------------------------------------------------------------
  # * Draw Gauge Area (without MP)
  #--------------------------------------------------------------------------
  def draw_gauge_area_without_mp(rect, actor)
    draw_actor_hp(actor, rect.x + 0, rect.y, 134)
    draw_actor_tp(actor, rect.x + 144,  rect.y, 76)
  end
end[/pre]


用法注释<TP bar only>只显示TP
注释<MP bar only>只显示MP
注释<no bar>什么都不显示


截图 001.png
002.png

点评

已经改了脚本 不过截图就懒得改了  发表于 2014-6-21 18:47
@喵呜喵5 很华丽  发表于 2014-6-20 17:48
明白了,謝謝  发表于 2014-6-18 12:17
数据库,备注栏  发表于 2014-6-18 07:43
這個腳本的操作是怎樣的?(<TP bar only>/i之類的指令入在哪才對角色生效?  发表于 2014-6-18 00:15

评分

参与人数 2星屑 +60 梦石 +1 收起 理由
taroxd + 50 + 1 认可答案
紫苍焰 + 10 认可答案

查看全部评分

萌新瑟瑟发抖
看到我请叫我去干活
回复

使用道具 举报

…あたしは天

梦石
0
星屑
2308
在线时间
4033 小时
注册时间
2010-10-4
回帖
10548

开拓者贵宾

发表于 2014-6-16 10:11:49 | 显示全部楼层
本帖最后由 taroxd 于 2014-6-16 10:12 编辑

当然能啊,改改脚本就行了

体会一下得到这种回答是什么感觉吧。另外我现在没环境(两场期末考试之间=。=),真没法帮你写脚本
↑↑↑

点评

……魔都酆都帝都……还有个什么都?  发表于 2014-6-16 15:20
Got it  发表于 2014-6-16 10:34
魔都和其他地方不一样~  发表于 2014-6-16 10:24
我指的是政史地三科 学业水平测试 莫非你们没有  发表于 2014-6-16 10:19
魔都没文综,还差政治数学英语没考~  发表于 2014-6-16 10:14

评分

参与人数 1星屑 +140 收起 理由
喵呜喵5 + 140 预祝活动成功糖

查看全部评分

回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部