| 赞 | 3 |
| VIP | |
| 好人卡 | |
| 积分 | 48 |
| 经验 | |
| 最后登录 | 2026-9-29 |
| 在线时间 | 285 小时 |
- 梦石
- 0
- 星屑
- 4761
- 在线时间
- 285 小时
- 注册时间
- 2013-10-13
- 回帖
- 580
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有账号?注册会员
×
#--------------------------------------------------------------------------
# ● 设置选择项
#--------------------------------------------------------------------------
def setup_choices(parameters)
# choice_max 为设置选择项的项目数
$game_temp.choice_max = parameters[0].size
# message_text 为设置选择项
for text in parameters[0]
$game_temp.message_text += text + "\n"
end
# 设置取消的情况的处理
$game_temp.choice_cancel_type = parameters[1]
# 返回调用设置
current_indent = @list[@index].indent
$game_temp.choice_proc = Proc.new { |n| @branch[current_indent] = n }
end
把Proc.new { |n| @branch[current_indent] = n }里面的|n|注释掉,为什么会抱错? |
|