ID:158829
 
mob/DblClick()
if(usr.powers=="Lightning") if(src.electric==0) src.overlays+="lightning"
if(usr.powers=="Lightning") if(src.electric==0) src.health-=usr.strength
if(usr.powers=="Lightning") if(src.overlays+"rain") src.health-=usr.strength
if(usr.powers=="Lightning") view()<<'thunder.wav'
if(usr.powers=="Lightning") sleep(5)
if(usr.powers=="Lightning") if(src.electric==0) src.overlays-="lightning"


Problem description:This adds a lightning overlays but how do i make it look like it came from the top of the screen or out of the sky instead of a little bolt over the target?
Not getting into the idea of pixel shifting a bunch of overlays, I suppose you could instead just add a string of lightning bolts on the tiles above the target.

If you make sure they're on the top layer, that'll look pretty much like it's coming down from the top of the screen. Just make sure you delete all the parts of the same lightning bolt at the same time, or else you'd have leftover pieces of the same lightning bolt laying around.

Alternately, maybe just use the missile proc. It won't look great, but it'll be easy. It wouldn't be the first game I've seen to shoot little electric bolts and call them lightning bolts.