RMXP 怎样显示血槽已空和气槽

求一个RMXP能用的显示血条的脚本_百度知道
求一个RMXP能用的显示血条的脚本
用血条的形式代替默认的数值显示HP/MP值至少能显示主角的,怪物的如果能做也要,怪物的要在屏幕顶端或在怪物头顶上类似这个:急,好的加悬赏,最高30
我有更好的答案
想要自己理想中的血条自己自己学脚本,然后凭自己的能力写脚本。可以参考下面的视频教程:HP/SP槽的绘制HP/SP槽的绘制(续)敌人血条脚本6R找不到,你可以自己找一下。以下是战斗时显示血条,还有战斗的菜单的脚本:#==============================================================================&#&本脚本来自,使用和转载请保留此信息&#==============================================================================&class&Window_Help&&&Window_Base&def&set_enemy(actor)&self.contents.clear&draw_actor_name(actor,&4,&0)&draw_actor_state(actor,&140,&0)&carol3_draw_hp_bar(actor,&284,&0)&carol3_draw_sp_bar(actor,&460,&0)&@text&=&nil&self.visible&=&true&end&def&carol3_draw_hp_bar(actor,&x,&y,&width&=&128)&#宽度可调&self.contents.font.color&=&system_color&w&=&width&*&actor.hp&/&[actor.maxhp,1].max&if&actor.maxhp&!=&0&rate&=&actor.hp.to_f&/&actor.maxhp&else&rate&=&0&end&color1&=&Color.new(240&-&72&*&rate,&240&*&rate,&62&*&rate,&150)&self.contents.fill_rect(x+1,&y+15,&width+2,1,&Color.new(0,&0,&0,&255))&self.contents.fill_rect(x+1,&y+16,&width+2,1,&Color.new(255,&255,&192,&192))&self.contents.fill_rect(x+1,&y+17,&w,6,color1)&self.contents.fill_rect(x+1,&y+23,&width+2,1,&Color.new(255,&255,&192,&192))&self.contents.fill_rect(x+1,&y+24,&width+2,1,&Color.new(0,&0,&0,&255))&self.contents.fill_rect(x,&y+16,&1,8,&Color.new(255,&255,&192,&192))&self.contents.fill_rect(x-1,&y+15,&1,10,&Color.new(0,&0,&0,&255))&self.contents.fill_rect(x+129,&y+16,&1,8,&Color.new(255,&255,&192,&192))&self.contents.fill_rect(x+130,&y+15,&1,10,&Color.new(0,&0,&0,&255))&self.contents.draw_text(x-53,y,128,32,$data_system.words.hp,1)&if&actor.hp&actor.maxhp/3&self.contents.font.color&=&Color.new(255,&255,&255,&250)&end&if&actor.hp&=actor.maxhp/6&and&actor.maxhp/3&actor.hp&self.contents.font.color&=&Color.new(200,&200,&0,&255)&end&if&actor.maxhp/6&actor.hp&self.contents.font.color&=&Color.new(200,&0,&0,&255)&end&self.contents.draw_text(x+47,y,128,32,actor.hp.to_s,1)&end&def&carol3_draw_sp_bar(actor,&x,&y,&width&=&128)&self.contents.font.color&=&system_color&if&actor.maxsp&!=&0&rate&=&actor.sp.to_f&/&actor.maxsp&else&rate&=&0&end&color2&=&Color.new(62&*&rate,&240&-&72&*&rate,&240&*&rate,&192)&w&=&width&*&actor.sp&/&[actor.maxsp,1].max&self.contents.fill_rect(x+1,&y+15,&width+2,1,&Color.new(0,&0,&0,&255))&self.contents.fill_rect(x+1,&y+16,&width+2,1,&Color.new(255,&255,&192,&192))&self.contents.fill_rect(x+1,&y+17,&w,6,color2)&self.contents.fill_rect(x+1,&y+23,&width+2,1,&Color.new(255,&255,&192,&192))&self.contents.fill_rect(x+1,&y+24,&width+2,1,&Color.new(0,&0,&0,&255))&self.contents.fill_rect(x,&y+16,&1,8,&Color.new(255,&255,&192,&192))&self.contents.fill_rect(x-1,&y+15,&1,10,&Color.new(0,&0,&0,&255))&self.contents.fill_rect(x+129,&y+16,&1,8,&Color.new(255,&255,&192,&192))&self.contents.fill_rect(x+130,&y+15,&1,10,&Color.new(0,&0,&0,&255))&self.contents.draw_text(x-53,y,128,32,$data_system.words.sp,1)&if&actor.hp&actor.maxsp/3&self.contents.font.color&=&Color.new(255,&255,&255,&250)&end&if&actor.hp&=actor.maxsp/6&and&actor.maxsp/3&actor.sp&self.contents.font.color&=&Color.new(200,&200,&0,&255)&end&if&actor.maxsp/6&actor.sp&self.contents.font.color&=&Color.new(200,&0,&0,&255)&end&self.contents.draw_text(x+47,y,128,32,actor.sp.to_s,1)&end&end&#==============================================================================&#&本脚本来自,使用和转载请保留此信息&#==============================================================================
采纳率:55%
为您推荐:
其他类似问题
换一换
回答问题,赢新手礼包
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。rmxp活动帮助窗口的脚本如何实现显示敌人血条?_百度知道
rmxp活动帮助窗口的脚本如何实现显示敌人血条?
我有更好的答案
脚本:#============================================================================== # 本脚本来自,使用和转载请保留此信息 #============================================================================== class Window_Help & Window_Base
def set_enemy(actor)
self.contents.clear
draw_actor_name(actor, 4, 0)
draw_actor_state(actor, 140, 0)
carol3_draw_hp_bar(actor, 284, 0)
carol3_draw_sp_bar(actor, 460, 0)
@text = nil
self.visible = true
def carol3_draw_hp_bar(actor, x, y, width = 128) #宽度可调
self.contents.font.color = system_color
w = width * actor.hp / [actor.maxhp,1].max
if actor.maxhp != 0
rate = actor.hp.to_f / actor.maxhp
color1 = Color.new(240 - 72 * rate, 240 * rate, 62 * rate, 150)
self.contents.fill_rect(x+1, y+15, width+2,1, Color.new(0, 0, 0, 255))
self.contents.fill_rect(x+1, y+16, width+2,1, Color.new(255, 255, 192, 192))
self.contents.fill_rect(x+1, y+17, w,6,color1)
self.contents.fill_rect(x+1, y+23, width+2,1, Color.new(255, 255, 192, 192))
self.contents.fill_rect(x+1, y+24, width+2,1, Color.new(0, 0, 0, 255))
self.contents.fill_rect(x, y+16, 1,8, Color.new(255, 255, 192, 192))
self.contents.fill_rect(x-1, y+15, 1,10, Color.new(0, 0, 0, 255))
self.contents.fill_rect(x+129, y+16, 1,8, Color.new(255, 255, 192, 192))
self.contents.fill_rect(x+130, y+15, 1,10, Color.new(0, 0, 0, 255))
self.contents.draw_text(x-53,y,128,32,$data_system.words.hp,1)
if actor.hp&actor.maxhp/3
self.contents.font.color = Color.new(255, 255, 255, 250)
if actor.hp&=actor.maxhp/6 and actor.maxhp/3&actor.hp
self.contents.font.color = Color.new(200, 200, 0, 255)
if actor.maxhp/6&actor.hp
self.contents.font.color = Color.new(200, 0, 0, 255)
self.contents.draw_text(x+47,y,128,32,actor.hp.to_s,1)
def carol3_draw_sp_bar(actor, x, y, width = 128)
self.contents.font.color = system_color
if actor.maxsp != 0
rate = actor.sp.to_f / actor.maxsp
color2 = Color.new(62 * rate, 240 - 72 * rate, 240 * rate, 192)
w = width * actor.sp / [actor.maxsp,1].max
self.contents.fill_rect(x+1, y+15, width+2,1, Color.new(0, 0, 0, 255))
self.contents.fill_rect(x+1, y+16, width+2,1, Color.new(255, 255, 192, 192))
self.contents.fill_rect(x+1, y+17, w,6,color2)
self.contents.fill_rect(x+1, y+23, width+2,1, Color.new(255, 255, 192, 192))
self.contents.fill_rect(x+1, y+24, width+2,1, Color.new(0, 0, 0, 255))
self.contents.fill_rect(x, y+16, 1,8, Color.new(255, 255, 192, 192))
self.contents.fill_rect(x-1, y+15, 1,10, Color.new(0, 0, 0, 255))
self.contents.fill_rect(x+129, y+16, 1,8, Color.new(255, 255, 192, 192))
self.contents.fill_rect(x+130, y+15, 1,10, Color.new(0, 0, 0, 255))
self.contents.draw_text(x-53,y,128,32,$data_system.words.sp,1)
if actor.hp&actor.maxsp/3
self.contents.font.color = Color.new(255, 255, 255, 250)
if actor.hp&=actor.maxsp/6 and actor.maxsp/3&actor.sp
self.contents.font.color = Color.new(200, 200, 0, 255)
if actor.maxsp/6&actor.sp
self.contents.font.color = Color.new(200, 0, 0, 255)
self.contents.draw_text(x+47,y,128,32,actor.sp.to_s,1)
#============================================================================== # 本脚本来自,使用和转载请保留此信息 #==============================================================================
直接接在WINDOWS HELP下面么
把 Window_Help 删了 用这个替换。
为您推荐:
其他类似问题
换一换
回答问题,赢新手礼包
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。求rmxp的怪物血条的问题_百度知道
求rmxp的怪物血条的问题
就是这个脚本,我想做成打普通怪能显示但是打boss级别怪物就无法显示血量和蓝量,要怎么做呢??
我有更好的答案
在每个class后面加一个if $xyz == 1......(原脚本)end在刚开始事件输入脚本$xyz == 1打Boss前用脚本输入脚本$xyz == 0这样就可以了!
饿,本人新手看不太懂啊,就是 显示敌人 的脚本之中所有的class后面插入if $xyz == 1吗?我当一次伸手党吧,能不能帮我改好脚本然后粘贴过来呢?然后在boss战前插入脚本$xyz == 0打完再改回来?
给个示范class Game_Temp////if $xyz == 1 #-------------------------------------------------------------------------- # ● 公開インスタンス変数 #-------------------------------------------------------------------------- attr_accessor :enemy_hpsp_refresh #-------------------------------------------------------------------------- # ● オブジェクト初期化 #-------------------------------------------------------------------------- alias plan_enemy_hpsp_draw_initialize initialize def initialize
# 元のメソッドに戻す
plan_enemy_hpsp_draw_initialize
@enemy_hpsp_refresh = false endend////end每个////后面是我加入的脚本。在每个Class后面加入相同的应该就可以了。刚开始制作一个运行一次的事件,选择脚本,输入 $xyz == 1在Boss战前打入 $xyz == 0打完后如果还要用就再打 $xyz == 1这样就可以了。
采纳率:30%
大概是这个思想,我记得有一句可以通过开关的开与关来判定脚本是否工作,忘了是哪句了……回头找找,你也找找,我记得魔塔里的状态栏脚本里有这一句。在血条脚本前面加入这一句。游戏初始时打开开关。然后再打boss之前关闭开关,就可以使这个脚本暂时失效了。战斗后再打开开关就可以了。我不常用血条,所以也记不太清了……从理论上来说这个办法可行,但稳定性我就不能保证了。
为您推荐:
其他类似问题
换一换
回答问题,赢新手礼包
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。}

我要回帖

更多关于 血槽 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信