【代码】
var _DJGame_Temp_setDestination = Game_Temp.prototype.setDestination; Game_Temp.prototype.setDestination = function(x, y) { if ($dataMap.meta.禁止点地移动) { var id = Number($dataMap.meta.禁止点地移动); if ($gameMap.regionId(x, y) == id) return; } return _DJGame_Temp_setDestination.call(this,x,y); };
var _DJGame_Temp_setDestination = Game_Temp.prototype.setDestination;
Game_Temp.prototype.setDestination = function(x, y) {
if ($dataMap.meta.禁止点地移动) {
var id = Number($dataMap.meta.禁止点地移动);
if ($gameMap.regionId(x, y) == id) return;
}
return _DJGame_Temp_setDestination.call(this,x,y);
};
【使用说明】
①将上述代码复制粘贴到任意插件最下面;
②在需要禁用点地的地图备注<禁止点地移动:X>
【举例说明】
1号地图备注:<禁止点地移动:6>
作用:该地图涂抹的6号区域无法用鼠标点击移动。
【图片教程】
——————————
希望对你有所帮助。 |