查看: 1573|回复: 7

求改脚本··

  [复制链接]
头像被屏蔽
梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-1-28
回帖
7
发表于 2008-1-31 06:58:13 | 显示全部楼层 |阅读模式
提示: 作者被禁止或删除 内容自动屏蔽
头像被屏蔽

月

梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-1-26
回帖
1437
发表于 2008-1-31 07:14:17 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复

使用道具 举报

头像被屏蔽
梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-1-28
回帖
7
 楼主| 发表于 2008-1-31 17:52:50 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

头像被屏蔽

Mars-火星机械

梦石
0
星屑
50
在线时间
0 小时
注册时间
2007-12-15
回帖
2684
发表于 2008-1-31 17:59:58 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

头像被屏蔽
梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-1-28
回帖
7
 楼主| 发表于 2008-1-31 18:32:57 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

头像被屏蔽
梦石
0
星屑
50
在线时间
0 小时
注册时间
2007-7-9
回帖
667
发表于 2008-1-31 18:36:20 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复

使用道具 举报

头像被屏蔽
梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-1-28
回帖
7
 楼主| 发表于 2008-1-31 18:37:03 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

梦石
0
星屑
50
在线时间
13 小时
注册时间
2007-6-13
回帖
423
发表于 2008-1-31 20:38:41 | 显示全部楼层
在里面增加个角色1的脚本
在网吧没RPG MAKER所以我不能测试
class Window_HUD < Window_Base
def initialize
super(300,100,200,200)#########################窗口位置、大小
self.contents = Bitmap.new(width - 32, height - 32)
self.visible = false
self.contents.font.size = 20
refresh
end
def refresh
self.contents.clear
self.opacity = 150############################窗口透明度
actor = $game_actors[5]#######################角色ID
actor = $game_actors[1]#######################角色ID
bitmap=Bitmap.new("Graphics/battlers/#{actor.battler_name}")
src_rect = Rect.new(0, 0, bitmap.width, bitmap.height)
self.contents.blt(0, 0, bitmap, src_rect)
x = 1 * 23
y = 23
draw_actor_name(actor,x,y)
draw_actor_class(actor,x,y + 0)
#############################################################################
self.contents.font.color = system_color
self.contents.draw_text(x, y+40, 120-10-2, 32, "HP", 0)
self.contents.font.color = normal_color
self.contents.draw_text(x-40, y+40, 160, 32, $game_actors[5].hp.to_s, 2)
self.contents.draw_text(x-40 + 23, y+40, 160, 32, $game_actors[1].hp.to_s, 2)
#draw_actor_hp(actor,x,y + 40)
#############################################################################
for i in 4..5
  draw_actor_parameter(actor,x, y + 20 *( i - 1),i-1)
end
$hudtemp = [actor.hp,actor.str,actor.dex,actor.class_id]
end
end

class Scene_Map
Window_HUD_SWITCH_ID = 150 ############################开关,打开时显示窗口
alias raz_hud_main main
alias raz_hud_update update
def main
@hud_window = Window_HUD.new
raz_hud_main
@hud_window.dispose
end

def update
  @hud_window.visible = $game_switches[Window_HUD_SWITCH_ID] ? true : false
actor = $game_actors[5]#######################角色ID
actor = $game_actors[1]#######################角色ID
maptemp = [actor.hp,actor.str,actor.dex,actor.class_id]
for i in 4..5
  if $hudtemp != maptemp then
    @hud_window.refresh
    @hud_window.update   
  end
end
raz_hud_update
end
end
空 憂 憂
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部