| 赞 | 402 |
| VIP | |
| 好人卡 | |
| 积分 | 251 |
| 经验 | |
| 最后登录 | 2024-7-2 |
| 在线时间 | 3339 小时 |
- 梦石
- 1
- 星屑
- 24088
- 在线时间
- 3339 小时
- 注册时间
- 2011-7-8
- 回帖
- 3862

|
发表于 2020-4-14 04:16:45
|
显示全部楼层
本帖最后由 guoxiaomi 于 2020-4-14 04:34 编辑
不知道所谓的雏形是要到那种程度,这里说一下怎么在按下A键后显示help_window,仿照输入\G就会显示一个gold窗口来写:
- class Window_Message < Window_Selectable
- alias _show_help_update update
- def update
- _show_help_update
- if @contents_showing
- if Input.trigger?(Input::A)
- @help_window ||= Window_Help.new
- @help_window.set_text("Hello, World!")
- @help_window.opacity = self.opacity
- @help_window.back_opacity = self.back_opacity
- return
- end
- end
- end
-
- alias _show_help_terminate_message terminate_message
- def terminate_message
- _show_help_terminate_message
- if @help_window != nil
- @help_window.dispose
- @help_window = nil
- end
- end
- end
复制代码
接下来你可能只需要在每句对话前设置某个全局变量为提示的内容,然后把上面脚本 set_text 的参数设置为那个特殊的变量 |
|