Many years ago I once tried building my own wheels. It was such a complete disaster that I vowed never to try again, or at least, not without some expert assistance to hand !
Replacing a rim is easier than building from scratch, because the spoke selection and lacing is already done for you.
Using the tape-new-rim-besides-wheel-and-swap-spokes-over-one-at-a-time method, replacing the rim using the same spokes is so easy that almost no skill is needed for the first part of the job. The skill comes when tensioning and truing and stress-relieving, but have a go. If it doesn't end up good, then try again, or get a friend to have a go, or even take it to a good bike shop to finish. Much money will be saved, and much knowledge will be gained.
Compare tension to that of a similar wheel by tugging and plucking the spokes.
Replace the nipples at the same time. Oil or grease the spoke threads and interface with rim.
The new rim just needs to have the same number of holes and nearly the same ERD (effective rim diameter) as the old one.