You can strengthen the roof to prevent damage by adding braces to the roof rafters inside your attic.
Structral support of roof attic.
Collar ties rafter ties tension beams structural ridge beams.
There are many types of roof trusses as wall as many types of roofs more types than there are parts.
Collar tie used for adding additional support to attic roof supports.
Extra support for the trusses can be made by placing a 2 by 4 inch piece of lumber from each truss on one side to the truss on the other side high enough to provide head room but low enough to provide support for the trusses.
In this situation the walls of a finished attic space or room would go with the roof line.
If the joists are larger they might support attic flooring but the only reliable way to know for sure is to have a structural engineer take a look at your attic support system.
Some of these can support the roof and prevent ridge sagging and wall spreading.
The red lines on the left side indicate the knee wall.
This attic structure needs additional support and was most likely repaired by a non professional.
This is a fairly basic project that can help protect your roof but consult a structural.
This article and series of illustrated diagrams shows you all the parts of a basic roof truss king truss and queen truss.