| 
 
| 赞 | 11 |  
| VIP | 7 |  
| 好人卡 | 0 |  
| 积分 | 8 |  
| 经验 | 6220 |  
| 最后登录 | 2025-6-29 |  
| 在线时间 | 196 小时 |  
 Lv2.观梦者 
	梦石0 星屑792 在线时间196 小时注册时间2013-8-19帖子287 
 | 
| 
我用的九夜神尊公共事件调用脚本
x
加入我们,或者,欢迎回来。您需要 登录 才可以下载或查看,没有帐号?注册会员  
 复制代码#==============================================================================
# ■ Game_Interpreter_Self
#------------------------------------------------------------------------------
# 独立公共事件执行器
#==============================================================================
=begin
 
独立公共事件执行器用于随时执行公共事件,不受公共事件调用地方的限制。
□使用方法:
1。将脚本插入main前。
2。在需要使用公共事件的地方
插入、
Game_Interpreter_Self.new(公共事件ID)
□可能的冲突:无
=end
 
class Game_Interpreter_Self < Game_Interpreter
  child_interpreter = Game_Interpreter_Self.new(5)
  #--------------------------------------------------------------------------
  # ● 初始化对像
  #     depth : 堆置深度
  #     main  : 主标志
  #--------------------------------------------------------------------------
  def initialize(com_id)
    @com_id = com_id
    common_event = $data_common_events[@com_id]
    setup(common_event.list)
    update
    clear
  end
  #--------------------------------------------------------------------------
  # ● 公共事件
  #--------------------------------------------------------------------------
 
end
用事件调用没问题,
 但是添加到菜单调用就没反应,。
 
 复制代码  #--------------------------------------------------------------------------
  # ● 向指令列表添加主要的指令
  #--------------------------------------------------------------------------
  def add_main_commands
    add_command(Vocab::item,   :item,   main_commands_enabled)
    add_command(Vocab::skill,  :skill,  main_commands_enabled)
    add_command(Vocab::equip,  :equip,  main_commands_enabled)
    add_command(Vocab::status, :status, main_commands_enabled)
    add_command("公共事件",    :child_interpreter,   main_commands_enabled)
    add_command("委托",        :task,   main_commands_enabled)#
  end
 召唤大神~~
 | 
 |