var renwuzuobiaox = $gamePlayer._realX;
var renwuzuobiaoy = $gamePlayer._realY;
//获取人物在地图上的坐标
var guaiwu = $gameMap.events().find(function(event){
return event.event().note === '怪物';
//获取一个备注为怪物的事件,保存到变量guaiwu中
})
var xianjing = $gameMap.events().find(function(event){
return event.event().note === '陷阱';
})
if(guaiwu.x == xianjing.x ){
if(guaiwu.y == xianjing.y){
var ditu = 0;
var shijianming = "";
shijianming = guaiwu.name;
$gameSelfSwitches[ditu,shijianming,"A"]
//打开一个事件的独立开关A
}
}
var renwuzuobiaox = $gamePlayer._realX;
var renwuzuobiaoy = $gamePlayer._realY;
//获取人物在地图上的坐标
var guaiwu = $gameMap.events().find(function(event){
return event.event().note === '怪物';
//获取一个备注为怪物的事件,保存到变量guaiwu中
})
var xianjing = $gameMap.events().find(function(event){
return event.event().note === '陷阱';
})
if(guaiwu.x == xianjing.x ){
if(guaiwu.y == xianjing.y){
var ditu = 0;
var shijianming = "";
shijianming = guaiwu.name;
$gameSelfSwitches[ditu,shijianming,"A"]
//打开一个事件的独立开关A
}
}