I'm looking for a way to write a long 'or' list of $gameVariables without having to write the whole thing out each time:
-Beth
- while (get == $gameVariables.value(100) || get == $gameVariables.value(101) || get == $gameVariables.value(102));
-Beth
var questGet = function() {
do {
var get = Math.floor(Math.random() * whichHouseSpring.length)
} while (get == $gameVariables.value(100) || get == $gameVariables.value(101) || get == $gameVariables.value(102));
return get
};
do {
var get = Math.floor(Math.random() * whichHouseSpring.length)
} while (get == $gameVariables.value(100) || get == $gameVariables.value(101) || get == $gameVariables.value(102));
return get
};