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

Project1

 找回密码
 注册会员
搜索
查看: 3091|回复: 24
打印 上一主题 下一主题

如何暂时禁止某脚本?

 关闭 [复制链接]

Lv1.梦旅人

梦石
0
星屑
60
在线时间
6 小时
注册时间
2008-1-9
帖子
109
跳转到指定楼层
1
发表于 2008-3-17 03:04:02 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有帐号?注册会员

x
我的工程里新游戏就会要求让玩家先给角色取名字,然后才正式开始游戏。我也自己改了个在游戏窗口显示时间金钱的脚本。本来是想角色取好名字后进入正式游戏场景才出现的,结果现在选了“新游戏”后进入取名场景就出现了,我要怎么才能暂时禁止这个脚本,让游戏正常?


工程连接http://rpg.blue/upload_program/files/ceshi_86122694.rar
头像被屏蔽

Lv1.梦旅人 (禁止发言)

梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-2-14
帖子
48
2
发表于 2008-3-17 03:05:00 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
60
在线时间
6 小时
注册时间
2008-1-9
帖子
109
3
 楼主| 发表于 2008-3-17 03:09:06 | 只看该作者

如何暂时禁止某脚本?

只有这个办法麽?
我在取名场景建立了一个自动事件,包括“取名要求”,和传送到正式地图,能不能在这个事件里添加一些语言实现??
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-2-14
帖子
48
4
发表于 2008-3-17 03:11:30 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
60
在线时间
6 小时
注册时间
2008-1-9
帖子
109
5
 楼主| 发表于 2008-3-17 03:18:18 | 只看该作者

如何暂时禁止某脚本?

晕,拉窗帘布麽。。。。。
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
60
在线时间
6 小时
注册时间
2008-1-9
帖子
109
6
 楼主| 发表于 2008-3-17 04:32:47 | 只看该作者

如何暂时禁止某脚本?

晕,有达人帮帮我吗???
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

梦石
0
星屑
46
在线时间
10 小时
注册时间
2007-5-27
帖子
2558

第1届Title华丽大赛新人奖

7
发表于 2008-3-17 04:37:17 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
60
在线时间
6 小时
注册时间
2008-1-9
帖子
109
8
 楼主| 发表于 2008-3-17 04:41:15 | 只看该作者

如何暂时禁止某脚本?

class Scene_Map
def main
   @spriteset = Spriteset_Map.new
   @message_window = Window_Message.new
   @time_date_window = Window_daytime.new
   @gold_window = Window_Gold.new
   Graphics.transition
   loop do
     Graphics.update
     Input.update
     update
  @gold_window.update
  @time_date_window.update
     if $scene != self
       break
     end # end if $scene != self
   end # end loop do
   Graphics.freeze
   @spriteset.dispose
   @message_window.dispose
   @time_date_window.dispose
   @gold_window.dispose
   if $scene.is_a?(Scene_Title)
     Graphics.transition
     Graphics.freeze
   end # end if $scene.is_a?(Scene_Title)
end # end def main
end # end class Scene_Map

###############################################################################
#显示日期时间
#变量1,2,3,4,5,6,7分别对应分,时,日,月,年,星期,季节
###############################################################################   

class Window_daytime < Window_Base
  def initialize
super(320, 0, 300, 100)#(X坐标,Y坐标,高,宽)
self.contents = Bitmap.new(width - 32, height - 32)
   $game_variables[1] = 1
   $game_variables[2] = 1
   $game_variables[3] = 1
   $game_variables[4] = 1
   $game_variables[5] = 1
   $game_variables[6] = 1
   $game_variables[7] = 1

refresh
   end # end def initialize

def refresh
@total_sec = Graphics.frame_count
   if @total_sec % 40 ==0
     $game_variables[1] += 1
   end # end if @total_sec % 40 ==0
   
   if $game_variables[1] >= 60 + 1
     $game_variables[1] = 1
     $game_variables[2] += 1
   end # end if $game_variables[1] >= 6 + 1
   
   if $game_variables[2] >= 24 + 1
     $game_variables[2] = 1
     $game_variables[3] += 1
     $game_variables[6] += 1
   end # end if $game_variables[2] >= 12 + 1
   
   if $game_variables[3] >= 30 + 1
     $game_variables[3] = 1
     $game_variables[4] += 1
     $game_variables[7] += 1
   end # end if $game_variables[3] >= 30 + 1

   if $game_variables[4] >= 12 + 1
     $game_variables[4] = 1
     $game_variables[5] += 1
   end # end if $game_variables[4] >= 12 + 1

   if $game_variables[6] >= 7 + 1
     $game_variables[6] = 1
   end # end if $game_variables[6] >= 7 + 1
     
   if $game_variables[7] >= 12 + 1
     $game_variables[7] = 1
   end # end if $game_variables[7] >= 7 + 1

text_min = [ "","00", "01", "02", "03", "04", "05", "06", "07",
             "08", "09", "10", "11", "12", "13", "14", "15",
             "16", "17", "18", "19", "20", "21", "22", "23",
             "24", "25", "26", "27", "28", "29", "30", "31",
             "32", "33", "34", "35", "36", "37", "38", "39",
             "40","41", "42", "43", "44", "45", "46", "47",
             "48", "49","50","51","52","53","54","55","56",
             "57", "58", "59"][$game_variables[1]]
            
text_hour = ["", "01:", "02:", "03:", "04:", "05:", "06:",
                "07:", "08:", "09:", "10:", "11:", "12:", "13:", "14:", "15:",
                "16:", "17:", "18:", "19:", "20:", "21:", "22:", "23:", "24:"
                ][$game_variables[2]]
text_day = ["", " 1号", " 2号", " 3号", " 4号", " 5号", " 6号",
               " 7号", " 8号", " 9号", "10号", "11号", "12号",
               "13号", "14号", "15号", "16号", "17号", "18号",
               "19号", "20号", "21号", "22号", "23号", "24号",
               "25号", "26号", "27号", "28号", "29号","30号"][$game_variables[3]]
text_week = [ "","星期一", "星期二", "星期三", "星期四", "星期五", "星期六",
                "星期日"][$game_variables[6]]
text_month = ["", " 1月", " 2月", " 3月", " 4月", " 5月", " 6月",
                  " 7月", " 8月", " 9月", "10月", "11月", "12月"][$game_variables[4]]

text_jijie = ["", "春", "春", "春", "夏", "夏", "夏", "秋",  "秋",
                  "秋", "冬", "冬", "冬"][$game_variables[7]]

text_year = ["", "2008年", "2009年", "2010年", "2011年", "2012年", "2013年",
                "2014年", "2015年", "2016年", "2017年", "2018年"][$game_variables[5]]


  self.contents.clear
  self.contents.draw_text(5, -5, 128, 32, text_year)
  self.contents.draw_text(70, -5, 128, 32, text_month)
  self.contents.draw_text(55, 20, 128, 32, text_day)
  self.contents.draw_text(100, 20, 128, 32, text_week)
  self.contents.draw_text(185, -5, 128, 32, text_hour)
  self.contents.draw_text(220, -5, 128, 32, text_min)
  self.contents.draw_text(230, 20, 128, 32, text_jijie)
end # end def refresh

def update
  super
     refresh

end # end def update

end# end class Window_daytime

###############################################################################
#显示金钱
###############################################################################
class Window_Gold < Window_daytime
  
def refresh
    self.contents.clear
    cx = contents.text_size($data_system.words.gold).width
    self.contents.font.color = normal_color
    self.contents.draw_text(80, 40, 128, 32, $game_party.gold.to_s, 2)
    self.contents.font.color = system_color
    self.contents.draw_text(105, 40, 128, 32, $data_system.words.gold, 2)
  end
end


回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

悔恨的天使

梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-2-26
帖子
726
9
发表于 2008-3-17 04:41:48 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
60
在线时间
6 小时
注册时间
2008-1-9
帖子
109
10
 楼主| 发表于 2008-3-17 04:46:03 | 只看该作者

如何暂时禁止某脚本?

真的只能加开关麽。。。。{/gg}
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2025-7-26 14:13

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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