It is kind of mainly luck. You need to take a continuous stream of photos during a storm. It is also a good idea to take longer exposures as well to maximise your chance...And sometimes photoshop works wonders to bring out the details as well...