| 
 
| 赞 | 1 |  
| VIP | 0 |  
| 好人卡 | 0 |  
| 积分 | 8 |  
| 经验 | 0 |  
| 最后登录 | 2025-4-9 |  
| 在线时间 | 76 小时 |  
 Lv2.观梦者 
	梦石0 星屑844 在线时间76 小时注册时间2022-3-19帖子53 | 
| 
我找到一个使用注释生成选项的脚本,选项会显示在窗口左侧,想请大佬们帮我看看能不能把选项位置弄到中间。下面是代码
x
加入我们,或者,欢迎回来。您需要 登录 才可以下载或查看,没有帐号?注册会员  
 复制代码#==============================================================================
# ■ 注释选项                                                      by:celica
#------------------------------------------------------------------------------
#   通过在注释中填写内容达到可判断的选项
#==============================================================================
#==============================================================================
class Game_Interpreter
  #--------------------------------------------------------------------------
  # ● 注释
  #--------------------------------------------------------------------------
  def command_108
    ct = @params[0]
    while next_event_code == 408 or next_event_code == 108
      @index += 1
      ct += @list[@index].parameters[0]
    end
    if ct[0,2] == "选项"
      pas = []
      pai = []
      ct.split(/\|/).each_with_index {|par, index|
        next if index == 0
        if par =~ /s\[([0-9]+)\]/
          next unless $game_switches[$1.to_i]
        end
        if par =~ /v\[([0-9]+)\]/
          next unless $game_variables[$1.to_i] > 0
        end
        if par =~ /i\[([0-9]+)\]/
          next unless $game_party.item_number($data_items[$1.to_i]) > 0
        end
        par.gsub!(/s\[([0-9]+)\]/,"")
        par.gsub!(/v\[([0-9]+)\]/,"")
        par.gsub!(/i\[([0-9]+)\]/,"")
        pas.push(par)
        pai.push(index)
      }
      return if pas.empty?
      setup_choices([pas,100])
      Fiber.yield while $game_message.choice?
      $game_variables[10] = (@branch[@indent] == 99 ? 0 : pai[@branch[@indent]])
    end
  end
end
 
 
 | 
 |