设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 1956|回复: 9
打印 上一主题 下一主题

[已经过期] RTAB缺少血条脚本

[复制链接]

Lv3.寻梦者

梦石
0
星屑
2417
在线时间
469 小时
注册时间
2012-6-17
帖子
427
跳转到指定楼层
1
发表于 2013-4-17 20:32:39 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

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

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

x
RTAB战斗系统整合版0.17,没血条却有CP条,自己添加会冲突,看了他CP的描绘晕死,太多判定。难怪主人不加血条。但脚本懂得帮一下

问渠那得清如许为有源头活水来点击这里了解《都市天师》

Lv1.梦旅人

梦石
0
星屑
47
在线时间
976 小时
注册时间
2011-4-30
帖子
860
2
发表于 2013-4-17 20:46:46 | 只看该作者
湿滑落式骑!
回复 支持 反对

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
2417
在线时间
469 小时
注册时间
2012-6-17
帖子
427
3
 楼主| 发表于 2013-4-17 21:21:13 | 只看该作者
非常谢谢你,总算解决了。类似的敌人的血条脚本有吗

问渠那得清如许为有源头活水来点击这里了解《都市天师》
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
60
在线时间
568 小时
注册时间
2012-9-7
帖子
611
4
发表于 2013-4-17 21:27:52 | 只看该作者
本帖最后由 wingzeroplus 于 2013-4-17 21:56 编辑
阿尔卑斯 发表于 2013-4-17 21:21
非常谢谢你,总算解决了。类似的敌人的血条脚本有吗
  1. #==============================================================================
  2. # 本脚本来自www.66RPG.com,使用和转载请保留此信息
  3. #==============================================================================


  4. class Window_Help < Window_Base
  5.   def set_enemy(actor)
  6.     self.contents.clear
  7.     draw_actor_name(actor, 4, 0)
  8.     draw_actor_state(actor, 140, 0)
  9.     carol3_draw_hp_bar(actor, 284, 0)
  10.     carol3_draw_sp_bar(actor, 460, 0)
  11.     @text = nil
  12.     self.visible = true
  13.   end
  14.   def carol3_draw_hp_bar(actor, x, y, width = 128) #宽度可调
  15.     self.contents.font.color = system_color
  16.     w = width * actor.hp / [actor.maxhp,1].max
  17.     if actor.maxhp != 0
  18.       rate = actor.hp.to_f / actor.maxhp
  19.     else
  20.       rate = 0
  21.     end
  22.     color1 = Color.new(240 - 72 * rate, 240 * rate, 62 * rate, 150)
  23.     self.contents.fill_rect(x+1, y+15, width+2,1, Color.new(0, 0, 0, 255))
  24.     self.contents.fill_rect(x+1, y+16, width+2,1, Color.new(255, 255, 192, 192))
  25.     self.contents.fill_rect(x+1, y+17, w,6,color1)
  26.     self.contents.fill_rect(x+1, y+23, width+2,1, Color.new(255, 255, 192, 192))
  27.     self.contents.fill_rect(x+1, y+24, width+2,1, Color.new(0, 0, 0, 255))
  28.     self.contents.fill_rect(x, y+16, 1,8, Color.new(255, 255, 192, 192))
  29.     self.contents.fill_rect(x-1, y+15, 1,10, Color.new(0, 0, 0, 255))
  30.     self.contents.fill_rect(x+129, y+16, 1,8, Color.new(255, 255, 192, 192))
  31.     self.contents.fill_rect(x+130, y+15, 1,10, Color.new(0, 0, 0, 255))
  32.     self.contents.draw_text(x,y,128,32,$data_system.words.hp,1)
  33.     self.contents.font.color = normal_color
  34.     if actor.hp>actor.maxhp/3
  35.       self.contents.font.color = Color.new(255, 255, 255, 250)
  36.     end
  37.     if actor.hp>=actor.maxhp/6 and actor.maxhp/3>actor.hp
  38.       self.contents.font.color = Color.new(200, 200, 0, 255)
  39.     end
  40.     if actor.maxhp/6>actor.hp
  41.       self.contents.font.color = Color.new(200, 0, 0, 255)
  42.     end
  43.     self.contents.draw_text(x+47,y,128,32,actor.hp.to_s,1)
  44.   end
  45.   def carol3_draw_sp_bar(actor, x, y, width = 128)
  46.     self.contents.font.color = system_color
  47.     if actor.maxsp != 0
  48.       rate = actor.sp.to_f / actor.maxsp
  49.     else
  50.       rate = 0
  51.     end
  52.     color2 = Color.new(62 * rate, 240 - 72 * rate, 240 * rate, 192)
  53.     w = width * actor.sp / [actor.maxsp,1].max
  54.     self.contents.fill_rect(x+1, y+15, width+2,1, Color.new(0, 0, 0, 255))
  55.     self.contents.fill_rect(x+1, y+16, width+2,1, Color.new(255, 255, 192, 192))
  56.     self.contents.fill_rect(x+1, y+17, w,6,color2)
  57.     self.contents.fill_rect(x+1, y+23, width+2,1, Color.new(255, 255, 192, 192))
  58.     self.contents.fill_rect(x+1, y+24, width+2,1, Color.new(0, 0, 0, 255))
  59.     self.contents.fill_rect(x, y+16, 1,8, Color.new(255, 255, 192, 192))
  60.     self.contents.fill_rect(x-1, y+15, 1,10, Color.new(0, 0, 0, 255))
  61.     self.contents.fill_rect(x+129, y+16, 1,8, Color.new(255, 255, 192, 192))
  62.     self.contents.fill_rect(x+130, y+15, 1,10, Color.new(0, 0, 0, 255))
  63.     self.contents.draw_text(x,y,128,32,$data_system.words.sp,1)
  64.     self.contents.font.color = normal_color
  65.     if actor.hp>actor.maxsp/3
  66.       self.contents.font.color = Color.new(255, 255, 255, 250)
  67.     end
  68.     if actor.hp>=actor.maxsp/6 and actor.maxsp/3>actor.sp
  69.       self.contents.font.color = Color.new(200, 200, 0, 255)
  70.     end
  71.     if actor.maxsp/6>actor.sp
  72.       self.contents.font.color = Color.new(200, 0, 0, 255)
  73.     end
  74.       self.contents.draw_text(x+47,y,128,32,actor.sp.to_s,1)
  75.   end
  76. end
  77. #==============================================================================
  78. # 本脚本来自www.66RPG.com,使用和转载请保留此信息
  79. #==============================================================================
复制代码
放在RTAB特技学习 Ver 1.00之后,RTAB连击数-显示部分之前 可以正常使用,至于其他位置能否正常使用我就不敢保证了
FTM正式版已经发布,点击图片开启传送门
回复 支持 反对

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
2417
在线时间
469 小时
注册时间
2012-6-17
帖子
427
5
 楼主| 发表于 2013-4-17 21:44:55 | 只看该作者
不得不说个服字。但能在它的基础上描绘hp,sp数字吗

点评

我重新编辑了一下……你再复制看看  发表于 2013-4-17 21:55

问渠那得清如许为有源头活水来点击这里了解《都市天师》
回复 支持 反对

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
2417
在线时间
469 小时
注册时间
2012-6-17
帖子
427
6
 楼主| 发表于 2013-4-17 21:56:04 | 只看该作者
@text = nil是关于这个变量的吗

问渠那得清如许为有源头活水来点击这里了解《都市天师》
回复 支持 反对

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
2417
在线时间
469 小时
注册时间
2012-6-17
帖子
427
7
 楼主| 发表于 2013-4-17 23:15:28 | 只看该作者
解决了!太强大了。忒感动!!!

问渠那得清如许为有源头活水来点击这里了解《都市天师》
回复 支持 反对

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
2417
在线时间
469 小时
注册时间
2012-6-17
帖子
427
8
 楼主| 发表于 2013-4-17 23:34:07 | 只看该作者
在RATB中血条用自己的图形来描制应该怎么做

评分

参与人数 1星屑 -20 收起 理由
hcm -20 我说啊,这些不能一次发上来吗?.

查看全部评分


问渠那得清如许为有源头活水来点击这里了解《都市天师》
回复 支持 反对

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
2417
在线时间
469 小时
注册时间
2012-6-17
帖子
427
9
 楼主| 发表于 2013-5-3 21:42:54 | 只看该作者
wingzeroplus 发表于 2013-4-17 21:27
放在RTAB特技学习 Ver 1.00之后,RTAB连击数-显示部分之前 可以正常使用,至于其他位置能否正常使用我就不 ...

后来发现敌人也有CP和特技咏唱。能再加个此系统的CP条吗(风格一样而且咏唱时变色)?

问渠那得清如许为有源头活水来点击这里了解《都市天师》
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
60
在线时间
568 小时
注册时间
2012-9-7
帖子
611
10
发表于 2013-5-4 00:07:15 | 只看该作者
不清楚你想表达什么,是单独给敌人加还是双方共用,双方共用的参考主站的
http://www.66rpg.com/articles/4641
至于单独给敌方加AT槽,估计……是没有了

评分

参与人数 1星屑 +150 收起 理由
hcm + 150 认可答案

查看全部评分

FTM正式版已经发布,点击图片开启传送门
回复 支持 反对

使用道具 举报

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

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-9-29 17:26

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表