I think the first loud note on a new string moves it, and after that it's done. If you notice, piano tuners bang pretty hard when they're working.
They are both factors in tuning stability. The humidity affects the soundboard, where the bridge pulls the strings if there is a great deal of fluctuation in the humidity level of the room. But everytime you strike a key the string vibrates, and evantually it will vibrate out of tune. The more heavy playing a piano gets the sooner it will go out of tune, regardless of the humidity. If this were not true conservatories would merely put a humidifier/climate control system in every practice room and take the tuner/technicians off the payroll. Every piano is different but their rooms need to be kept at a constant humidity level (35 to 50%, I keep mine at 40) and they need regular tuning and maintenence from a good tuner/technician.
Humidifiers and climate control systems are not cost efficient means of keeping climate stability and considering the costs of such systems, it's much cheaper to hire a tuner than to install these devices and pay the high costs for electricity and other required maintenance which would easily costs more than $300/year/system. Tuners are much cheaper.Also, strings don't vibrate out of tune unless the pin block is loose, usually because it has been damaged by an unstable climate so that it won't hold the pins tightly in place. And even if the pin block were not as tight, it would still require lots of banging before it needs to be tuned, but that depends on the condition of the pin block.