def command_103 wait_for_message setup_num_input(@params) Fiber.yield while $game_message.num_input? end 我把其中的 wait_for_message setup_num_input(@params) Fiber.yield while $game_message.num_input? 取出来 wait_for_message不需要,删掉 直接设置 $game_message.num_input_variable_id = 1 $game_message.num_input_digits_max = 3 然后问题来了 Fiber.yield while $game_message.num_input? 是什么玩意? 放到哪都显示can't yield from root fiber |
见 Game_Interpreter#command_103 的定义 事件本身就是这么实现的 |
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2025-7-18 12:56
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.