# Setting random feast time
(try_for_range, ":faction_no", kingdoms_begin, kingdoms_end),
(store_random_in_range, ":last_feast_time", 0, 312), #240 + 72
(val_mul, ":last_feast_time", -1),
(faction_set_slot, ":faction_no", slot_faction_last_feast_start_time, ":last_feast_time"),
(try_end),
Это я так понял рандомно праздники распределяет, а если фракций 58? это может повлиять на длительность загрузки новой игры?
Добавлено: 19 Сентября, 2013, 09:28
И это я не понял вообще
# Setting the random town sequence:
(store_sub, ":num_towns", towns_end, towns_begin),
(assign, ":num_iterations", ":num_towns"),
(try_for_range, ":cur_town_no", 0, ":num_towns"),
(troop_set_slot, "trp_random_town_sequence", ":cur_town_no", -1),
(try_end),
(assign, ":cur_town_no", 0),
(try_for_range, ":unused", 0, ":num_iterations"),
(store_random_in_range, ":random_no", 0, ":num_towns"),
(assign, ":is_unique", 1),
(try_for_range, ":cur_town_no_2", 0, ":num_towns"),
(troop_slot_eq, "trp_random_town_sequence", ":cur_town_no_2", ":random_no"),
(assign, ":is_unique", 0),
(try_end),
(try_begin),
(eq, ":is_unique", 1),
(troop_set_slot, "trp_random_town_sequence", ":cur_town_no", ":random_no"),
(val_add, ":cur_town_no", 1),
(else_try),
(val_add, ":num_iterations", 1),
(try_end),
(try_end),