$mission_zone = $missions[$check_time%$mission_total][zone]; // get the mission zone name (% is a modulus -- Modulus is the remainder after the division)
$mission_quest = $missions[$check_time%$mission_total][quest]; // get the mission quest name (% is a modulus -- Modulus is the remainder after the division)
Well, check_time could be greater than 18, I was just unfamilir with how it would handle Mission_total (I told ya i been out of programming for a while).
So, that would limit the max to 18 and yet allow for expandabiliy. Nicely done! and thanx for the quick tutorial!
|