马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
本帖最后由 wataryuu 于 2021-5-24 08:11 编辑
我想让一个角色的立绘可以按照我想的来替换,所以定义了一个函数:
[RenPy] 纯文本查看 复制代码 def nowfgi(s):
image side nowfgi = s
image side nowfgi n = s
image nowfgi n = s
image nowfgi = s
pass
调用的时候的代码:
[RenPy] 纯文本查看 复制代码 nowfgi('ryuubakuri.png')
但是却发生了错误:
expected statement.
- I'm sorry, but errors were detected in your script. Please correct the
- errors listed below, and try again.
- File "game/rpy/the1.rpy", line 5: expected statement.
- def nowfgi(s):
- ^
- File "game/rpy/the1.rpy", line 28: expected statement.
- nowfgi('ryuubakuri.png')
- ^
- Ren'Py Version: Ren'Py 7.4.4.1439
- Fri May 21 10:55:01 2021
复制代码 这是为什么,究竟是否可以用函数的方法来做这样的操作。
|