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

Project1

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

[已经解决] VX多周目脚本Scene_Title的设定错误

 关闭 [复制链接]

Lv1.梦旅人

梦石
0
星屑
65
在线时间
332 小时
注册时间
2009-9-10
帖子
115
跳转到指定楼层
1
发表于 2011-4-17 19:45:47 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
脚本都填上了 但是通关后主菜单还是没有反应...
这是工程原件http://u.115.com/file/f64eea82c6
求大大帮忙!

Lv3.寻梦者

弓箭手?剑兰

梦石
0
星屑
4794
在线时间
833 小时
注册时间
2010-11-17
帖子
1140
2
发表于 2011-4-17 20:08:14 | 只看该作者
你储存了以后问什么无效?那是因为副档名是txt,而不是rvdata,事件脚本改为:
  1. file = File.open("Finished.rvdata","wb")
  2. Marshal.dump($game_variables,file)
  3. Marshal.dump($game_actors,file)
  4. file.close
复制代码


68~72行不知道为什么这样设置,于是重新将update里写为:
  1.     super
  2.     @command_window.update
  3.     if Input.trigger?(Input::C)
  4.       case @command_window.index
  5.       when 0
  6.         command_new_game
  7.       when 1    # 读取存档
  8.         command_continue
  9.       when 2    # 退出游戏
  10.         command_shutdown
  11.       when 3
  12.         command_renascence if FileTest.exist?("Finished.rvdata")
  13.       end
  14.     end
复制代码


之后146行错误,是因为我之前说错了关于Vocab模块的东西。是该是:
  1. module Vocab
  2.   def self.renascence
  3.     return"重新轮回"
  4.   end
  5. end
复制代码


之后264行错误。是因为不是file.open,而是File.open,因为这是模块的特殊大小写(记住大小写不要乱来!)。改为:
  1. file = File.open("finished.rvdata","rb")
复制代码


接着266行有问题,Marshal.load的方法不是这样,而是:
  1. $game_variables = Marshal.load(file)     # file是刚才开启的那个
复制代码


为了验证结果,我么将那只猫对话文字改为:
变量开启(\v[3]) 返回主菜单

那后不断选择"轮回"然后对话。

最后,假如你不清楚操作,将这个覆盖Data:
Data.zip (161.36 KB, 下载次数: 95)
回复

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
65
在线时间
332 小时
注册时间
2009-9-10
帖子
115
3
 楼主| 发表于 2011-4-17 20:42:19 | 只看该作者
我去试试..


gaoling0727于2011-4-17 21:19补充以下内容:
新选项好使了
然后开始新游戏时候又出毛病了,239的应该是f没大写吧 我改完后
又出一个新的240 IO是空的什么...就不明白了
回复

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2024-4-19 18:53

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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