| 
 
| 赞 | 0 |  
| VIP | 0 |  
| 好人卡 | 1 |  
| 积分 | 4 |  
| 经验 | 868 |  
| 最后登录 | 2014-6-14 |  
| 在线时间 | 628 小时 |  
 Lv2.观梦者 
	梦石0 星屑448 在线时间628 小时注册时间2011-9-27帖子3996 | 
| 本帖最后由 小白玩家 于 2011-12-14 15:08 编辑 
 如何在菜单中加入时间显示↓
 http://rpg.blue/forum.php?mod=vi ... B%E6%97%B6%E9%97%B4
 在游戏中显示变量的脚本↓
 不是进度条,只显示数字,当0001号变量(你可以命名为游戏进程)增加(完成任务可以增加游戏进程或者找到新地图,找到新物品) 右上角的数字就增加复制代码class Window_hpWindow < Window_Base
 
def initialize
 
super(0,0,600,600)
 
self.opacity = 0
 
self.visible = false
 
refresh
 
end
 
def refresh
 
self.contents.clear
 
draw_icon(1,0,0)#在此修改图标,第一个数字是图标编号
 
self.contents.draw_text(20, 0, 60, WLH, $game_variables[1],2)
 
draw_icon(2,0,20)#在此修改图标,第一个数字是图标编号
 
self.contents.draw_text(20, 20, 60, WLH, $game_variables[2],2)
 
end
 
end
 
class Scene_Map < Scene_Base
 
alias hpWindow_start start
 
alias hpWindow_update 
update
 
alias hpWindow_terminate terminate
 
def start
 
hpWindow_start
 
@hpWindow = Window_hpWindow.new
 
end
 
def update
 
#@hpWindow.update
 
@hpWindow.refresh
 
@hpWindow.visible = true
 
hpWindow_update
 
end
 
def terminate
 
hpWindow_terminate
 
@hpWindow.dispose
 
end
 
end 
 | 
 
2.jpg
(96.26 KB, 下载次数: 22)
 
 
1.jpg
(23.02 KB, 下载次数: 22)
 
 |