buying a house with structural damage??
Post does not say how old the house is, or characterize the damage, or indicate if there is reason to suppose it might be recent, or not.
In my area there are entire streets of 100+ year-old homes selling (or were selling, a few years back) for $750,000-1,500,000 that were built on masonry foundations extending 18" below grade with no footing, have slopes of one to 2 inches across a bedroom with doors cut down the match, and have been stable for decades after gravity had its way with the house. Part of the property's "character", and doesn't substantially affect resale value.
On the other hand, I also inspect properties constructed in the last 20 years with significant and continuing damage to poured concrete foundations that are ongoing structural nightmares.
Sometimes, the reasons for such problems are readily apparent, and it straightforward to estimate the cost of replacement or repair.
Some of my clients are more than willing to deal with these problems if the price is right.
If they are, IMO a reasonable first step is to spend a few hundred dollars for evaluation by a structural engineer familiar with the construction of such properties.