Tuesday, 20 August 2013

Adding item id's to the js if statement

Adding item id's to the js if statement

I want to add some more item Id's to the follow if statement -
if(engine.currentMap[toY] &&
engine.currentMap[toY][toX] &&
engine.currentMap[toY][toX].item > 1)
{
engine.keyboard.canInput = true;
}
Where it says engine.currentMap[toY][toX].item > 1) I want to also add
numerical Id's so it would be like .item > 1 || 45 || 78 || 45 || 23. If
that kinda make scenes.

No comments:

Post a Comment