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

Project1

 找回密码
 注册会员
搜索

新人求教一些脚本问题,地图显示变量

查看数: 1808 | 评论数: 2 | 收藏 1
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2014-11-19 22:29

正文摘要:

本帖最后由 VIPArcher 于 2014-11-20 11:23 编辑 因为不懂写脚本,都是在论坛里找一些脚本来改数据 根据@945127391 大大教程里的脚本改了一下来显示时间 时间是用自带的变量和公共事件设置的↓ 但是触发更改 ...

回复

kalinnuo 发表于 2014-11-19 23:02:04
VIPArcher 发表于 2014-11-19 22:55
以前在@taroxd 君那里get 的技能。未测试

QAQ!!!射射大大!!!!!
VIPArcher 发表于 2014-11-19 22:55:20
以前在@taroxd 君那里get 的技能。

  1. #==============================================================================

  2. # ** Window_MapStatus

  3. #==============================================================================

  4. class Window_MapStatus < Window_Base

  5.   #----------------------------------------------------------------------------

  6.   # * 初始化

  7.   #----------------------------------------------------------------------------

  8.   def initialize

  9.     super(0, 0, 273, 144)

  10.     self.opacity = 0

  11.     refresh

  12.   end

  13.   #----------------------------------------------------------------------------

  14.   # * 检查内容变化

  15.   #----------------------------------------------------------------------------
  16.   def map_status_to_draw
  17.     [$game_party.members[0],$game_party.gold,$game_variables[97],$game_variables[98],
  18.     $game_variables[99],$game_variables[100]]
  19.   end
  20.   #----------------------------------------------------------------------------

  21.   # * 刷新画面

  22.   #----------------------------------------------------------------------------

  23.   def update

  24.     super

  25.     refresh if @map_status_to_draw != map_status_to_draw #检查内容变化

  26.   end

  27.   #----------------------------------------------------------------------------

  28.   # * 更新内容

  29.   #----------------------------------------------------------------------------

  30.   def refresh

  31.     self.contents.clear
  32.    
  33.     @map_status_to_draw = map_status_to_draw #设置变化
  34.    
  35.     draw_actor_face($game_party.members[0], 0, 0)

  36.     draw_actor_icons($game_party.members[0], 0, 72)

  37.     draw_actor_name($game_party.members[0], 101, 24)

  38.     draw_currency_value($game_party.gold, Vocab::currency_unit, 72, 0, self.contents.width-101)

  39.     draw_actor_nickname($game_party.members[0], 101, 48)

  40.     draw_text(101,72, self.contents.width,24,$game_variables[97])

  41.     draw_text(137,72, self.contents.width,24,"时")

  42.     draw_text(  0,96, self.contents.width,24,$game_variables[100])

  43.     draw_text( 51,96, self.contents.width,24,"年")

  44.     draw_text( 85,96, self.contents.width,24,$game_variables[99])

  45.     draw_text(119,96, self.contents.width,24,"月")

  46.     draw_text(153,96, self.contents.width,24,$game_variables[98])

  47.     draw_text(187,96, self.contents.width,24,"日")

  48.   end

  49. end

  50. class Scene_Map < Scene_Base

  51.   #----------------------------------------------------------------------------

  52.   # * 重命名方法

  53.   #----------------------------------------------------------------------------

  54.   alias ms_sta start

  55.   #----------------------------------------------------------------------------

  56.   # * 开始处理

  57.   #----------------------------------------------------------------------------

  58.   def start

  59.     ms_sta

  60.     @mapstatus_window = Window_MapStatus.new

  61.   end

  62. end
复制代码
未测试

点评

如果这个不行你就自己试试吧,参考链接http://rm.66rpg.com/thread-369398-1-1.html  发表于 2014-11-19 23:03

评分

参与人数 1梦石 +1 收起 理由
taroxd + 1 认可答案

查看全部评分

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

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

GMT+8, 2025-2-23 11:29

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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