var mapId = 3; // 在这里设置要清空独立开关的地图的ID var pattern = new RegExp('(^' + mapId + ',)'); for(var i in $gameSelfSwitches._data){ if(pattern.test(i)){ delete $gameSelfSwitches._data[i]; } }
$gameSelfSwitches.clear();
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |