我正在尝试弄清楚如何让每个creep具有特定的内存或Angular色,例如变量中的收割机......我似乎无法弄清楚。我已经试过了:module.exports=function(){for(variinGame.creeps){if(i.memory=='Harvester'){varHarvesters=Game.creeps[i];if(Harvesters.index但这显然行不通... 最佳答案 您可以使用harvesterAngular色从creeps创建另一个数组:varharvesters=[];for(variin