i think there is someting like that in the aums morrowing series if want to use particles , but im not 100 % sure , or you could check out the energy demo on the free c script section on my site its a demo of energy (lightning) flowing from one vertex to another , but could be made into a lightning attack im sure