赞 | 13 |
VIP | 9 |
好人卡 | 3 |
积分 | 51 |
经验 | 27577 |
最后登录 | 2024-10-30 |
在线时间 | 1004 小时 |
Lv4.逐梦者 【欧皇】
- 梦石
- 3
- 星屑
- 2066
- 在线时间
- 1004 小时
- 注册时间
- 2013-8-19
- 帖子
- 3486
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
本帖最后由 欧买歌 于 2015-3-8 20:33 编辑
只是一个小问题,就不发提问区了。
这句脚本看来看去都应该没有语法错误才对
我已经找到错误的地方了,总之无论如何都是复制粘贴大法好!(误)
- #==============================================================================
- # ** Window_MapStatus
- #==============================================================================
- class Window_MapStatus < Window_Base
- #----------------------------------------------------------------------------
- # * 初始化
- #----------------------------------------------------------------------------
- def initialize
- super(0, 0, 544, 416)
- self.opacity = 0
- refresh
- end
- #----------------------------------------------------------------------------
- # * 检查内容变化
- #----------------------------------------------------------------------------
- def map_status_to_draw
- [$game_party.members[0],$game_party.gold,$game_variables[97],$game_variables[98],
- $game_variables[99],$game_variables[100]]
- end
- #----------------------------------------------------------------------------
- # * 刷新画面
- #----------------------------------------------------------------------------
- def update
- super
- refresh if @map_status_to_draw != map_status_to_draw #检查内容变化
- end
- #----------------------------------------------------------------------------
- # * 更新内容
- #----------------------------------------------------------------------------
- def refresh
- self.contents.clear
-
- @map_status_to_draw = map_status_to_draw #设置变化
- draw_actor_nickname($game_party.members[0], 101, 48)
-
- draw_text( 0,368, self.contents.width,24,"血量")
- draw_text( 48,368, self.contents.width,24,$game_party.members[0].hp)
-
- draw_text( 96,368, self.contents.width,24,"口渴")
- draw_text(144,368, self.contents.width,24,$game_party.members[0].mp)
- draw_text(192,368, self.contents.width,24,"饥饿")
- draw_text(240,368, self.contents.width,24,$game_variables[24])
-
- draw_text(288,368, self.contents.width,24,"弹药")
-
- if $game_variables[17] == 0
-
- draw_text(336,368, self.contents.width,24,$game_variables[18])
-
- elsif $game_variables[17] == 1
-
- draw_text(336,368, self.contents.width,24,$game_variables[19])
-
- elsif $game_variables[17] == 2
-
- draw_text(336,368, self.contents.width,24,0)
-
- elsif $game_variables[17] == 3
-
- draw_text(336,368, self.contents.width,24,$game_variables[25])
-
- end
-
- draw_text(374,368, self.contents.width,24,"/")
-
- if $game_variables[17] == 0
-
- draw_text(384,368, self.contents.width,24,$game_variables[26])
-
- elsif $game_variables[17] == 1
-
- draw_text(384,368, self.contents.width,24,$game_variables[27])
-
- elsif $game_variables[17] == 2
-
- draw_text(384,368, self.contents.width,24,0)
-
- end
-
- end
- end
- class Scene_Map < Scene_Base
- #----------------------------------------------------------------------------
- # * 重命名方法
- #----------------------------------------------------------------------------
- alias ms_sta start
- #----------------------------------------------------------------------------
- # * 开始处理
- #----------------------------------------------------------------------------
- def start
- ms_sta
- @mapstatus_window = Window_MapStatus.new
- end
- end
复制代码 这个脚本无法随时刷新数值,需要打开菜单再关闭菜单才会刷新 |
评分
-
查看全部评分
|