地图遇敌设置.PNG (73.97 KB, 下载次数: 20)
class Game_Player alias update_for_no_encounter update def update last_moving = moving? update_for_no_encounter unless moving? # 上次主角移动中的情况 if last_moving # 与同位置的事件接触就判定为事件启动 result = check_event_trigger_here([1,2]) # 没有可以启动的事件的情况下 if result == false if $game_switches[100] && (1..10).include?($game_map.map_id) @encounter_count += 1 end end end end end end
KB.Driver 发表于 2020-1-30 23:39
class Game_Player
alias update_for_no_encounter update
taeckle 发表于 2020-1-31 06:24
大神请问下这个脚本里的这个
“check_event_trigger_here([1,2])” 是神马意思啊?这里的[1,2]又是神马意 ...
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |