Project1
标题:
txt变量再导回去??
[打印本页]
作者:
situkei
时间:
2014-12-18 02:14
标题:
txt变量再导回去??
用这个脚本
f = File.open("变量.txt","w")
f.write($game_variables[1])
f.close
把变量1写入了"变量.txt",我现在又想把"变量.txt"里的数字再导回游戏的变量里怎么写?
感谢赐教?据说是file.openread这个?具体怎么用啊?
作者:
taroxd
时间:
2014-12-18 12:27
$game_variables[1] = Integer(File.read("变量.txt"))
作者:
chd114
时间:
2014-12-18 21:07
taroxd 发表于 2014-12-17 19:27
$game_variables[1] = Integer(File.read("变量.txt"))
不管什么格式的文件都用这个脚本吗?
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1