Hip roofs are difficult for professionals to layout and frame correctly and are not within the scope of ability for most homeowners.
It is too detailed and complicated to describe in a forum like this just how to build a hip roof.
You will do best to purchase a detailed and illustrated framing carpentry book from a bookstore if you insist on tackling this job yourself.