local report = function(player,tile, ...) if chat then chat.msg(...) else notify.event(player, tile, E.BROADCAST_REPORT, ...) end log.normal(...) end for player in players_iterate() do if player.ai_controlled then else report(player, nil, "Unhomed units") for unit in player:units_iterate() do if unit.homecity == 0 then report(player, unit.tile, "%s", unit.utype) end end end end