马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
本帖最后由 xuelian1996 于 2022-6-9 22:24 编辑
我不知道这个要怎么解决……
[RenPy] 纯文本查看 复制代码 label richangfanqiezhong1:
show kaitou
stop music
image mymovie = Movie(play="audio/xuexi.webm",loops=1)
a "哇哦~你又要开始今天的日常学习了吗?"
hide babaersi
with dissolve
python:
import datetime
now = datetime.datetime.now()
now_time = now.strftime("%Y-%m-%d %H:%M:%S")
xuexi = renpy.input("请在下面输入你这次要学习的内容~", length=32)
xuexi = xuexi.strip()
if not xuexi:
xuexi = "学习"
with open('xuexilishi.txt',"a") as f:
f.write(now_time)
f.close()
a "好哦~快开始{b}[xuexi]{/b}吧!"
stop music
show mymovie
play music "music/yusheng.mp3"
$ renpy.pause (1511,hard=True)
hide mymovie
show kaitou
stop music
play sound "music/chenggong.mp3"
python:
import datetime
nownow = datetime.datetime.now()
nownow_time = nownow.strftime("%H:%M:%S")
with open('xuexilishi.txt',"a") as file:
file.write("到"+nownow_time+" "+"学习内容:"+xuexi+"\n"+"\n")
file.close()
a "奖励你刻苦值+1"
#$ persistent.xuexilishi = True
return
我不知道是模块的问题还是暂停语句的问题……我把暂停语句删了也无法存档……
|