How to Become New Zealand Permanent Resident

I am trying to move to New Zealand, and I am trying to learn more about how to do so on a permanent basis. I really love the country and it is one of the most beautiful places that I have ever visited in my life. I have always wanted to live there, ever since I went with my parents as a young child, and I think that trip really made an impression on me. I am trying to learn how to obtain New Zealand PR status, so that I can stay there for the rest of my life. That would really make me happy, and it would be a lot better than living in my current country.

I am really not very happy with recent events with regards to how the government is ran in my country. But I am not going to mention which country I live in, because that might not be a very wise decision given the current state of affairs in the country. Anyway, I know that I have to obtain a resident visa first to be able to get into the country, and I will need to have one of those visas to become a permanent resident as well. But I am not sure of all of the other conditions that apply once you have had your resident permanent, that are necessary to fulfill in order to be considered a permanent resident by the country.

I know that you have to be in the country for a certain period of time, but I will have to look up the details to ifgure that out. Of course, I also need to figure out how to get a resident visa in the first place, because it is going to be the first step in becoming a permanent resident.