encounter_list = $game_map.encounter_list encounter_list.clear $game_map.encounter_list.push(2) $game_map.encounter_list.push(3)
无忧谷主幻 发表于 2025-10-22 04:00
3,如果以上皆不愿的话
encounter_list = $game_map.encounter_list
encounter_list.clear
class Game_Map def encounter_list return [] if (f=@map.encounter_list).empty? tag = 1.to_s return f.find_all{|i| $data_troops[i].name[/【(\d+)】/] ; ($1.nil? or $1 == tag)} end end
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |