| 赞 | 89  | 
 
| VIP | 350 | 
 
| 好人卡 | 311 | 
 
| 积分 | 103 | 
 
| 经验 | 150139 | 
 
| 最后登录 | 2024-6-24 | 
 
| 在线时间 | 5019 小时 | 
 
 
 
 
 
Lv4.逐梦者 (版主) 无限の剣制 
	- 梦石
 - 0 
 
        - 星屑
 - 10301 
 
        - 在线时间
 - 5019 小时
 
        - 注册时间
 - 2013-2-28
 
        - 帖子
 - 5030
 
 
   
 
 | 
	
瞎写一个来骗糖 
使用方法插在Main以上▼ 插件脚本 以下 
在可调查的事件名称里写上<地图 ID>其中ID为该事件存在的地图ID 
优先检查人物前方是否有可调查事件不存在则调查脚下。 
调查到事件则打开该事件的独立开关A。剩下的事件内容自己设置 
有BUG不保修- class Game_Event < Game_Character
 
  
-   attr_reader   :name
 
 -   alias vip_20140829_initialize initialize
 
 -   #--------------------------------------------------------------------------
 
 -   # ● 初始化对象
 
 -   #     event : RPG::Event
 
 -   #--------------------------------------------------------------------------
 
 -   def initialize(map_id, event)
 
 -     vip_20140829_initialize(map_id, event)
 
 -     @name = @event.name
 
 -   end
 
 - end
 
  
- class Scene_Menu < Scene_MenuBase
 
 -   alias vip_20140829_create create_command_window
 
 -   def create_command_window
 
 -     vip_20140829_create
 
 -     @command_window.set_handler(:survey,    method(:command_survey))
 
 -   end
 
 -   def command_survey
 
 -     SceneManager.goto(Scene_Map)
 
 -     vip
 
 -   end
 
 -   def vip
 
 -     case $game_player.direction
 
 -     when 2
 
 -       y = $game_player.y + 1
 
 -       x = $game_player.x
 
 -     when 4
 
 -       y = $game_player.y
 
 -       x = $game_player.x - 1
 
 -     when 6
 
 -       y = $game_player.y
 
 -       x = $game_player.x + 1
 
 -     when 8
 
 -       y = $game_player.y - 1
 
 -       x = $game_player.x
 
 -     end
 
 -     param = $game_map.event_id_xy(x, y)
 
 -     param = $game_map.event_id_xy($game_player.x,$game_player.y) if param == 0
 
 -     if param != 0
 
 -       $game_map.events[param].name =~ /<地图\s*(\d+)>/
 
 -       $game_self_switches[[$1.to_i,param,"A"]] = true if $1.to_i != nil
 
 -     else
 
 -       $game_message.texts.push("什么都没发现")
 
 -     end
 
 -   end
 
 - end
 
  
 
- class Window_MenuCommand < Window_Command
 
 -   alias vip_20140829_add add_main_commands
 
 -   def add_main_commands
 
 -     vip_20140829_add
 
 -     add_command("调查", :survey,   main_commands_enabled)#添加按钮
 
 -   end
 
 - end
 
  复制代码 |   
 
评分
- 
查看全部评分
 
 
 
 
 
 |