I've been overindulging on rich foods with propensity for gout. Any suggestions to prevent an attack?

Self answered. You have answered your own question. Stop overindulging on rich foods. Limit red meat intake and avoid overindulgence of certain seafood such as shrimp. Also, drink alcohol only in moderation.
Hyperuricemia. If you don't have problem with the metabolism to produce and get rid of uric acid, it is unlikely you would get gout. If you do, then one, you should be avoiding those food you know can cause gout, and two, you should talk to your doctor to get medicine to prevent the production of and increase the elimination of uric acid.