@amatria , @Xikini , @zbizu
Guys, thank you very much, sorry for my dumbness, but how can I select which config should happen next?
I though it was here, but can't figure how
for idx, cfg in ipairs(config) do
addEvent(do_area_effect, idx * 200, cfg.from_pos, cfg.to_pos, cfg.effect)
end