ID:264517
 
Code:
/var/mob/M 
area
var/pulse=100
lighting
icon='Lightning.dmi'
layer=150
New()
:start
sleep(pulse)
flick("Strike",src)
for(M in world)
M<<LIGHTNING
pulse=rand(50,600)
goto start


Problem description:

It seems the area won't flick the icon_state. I'm not sure if areas are unable to flick or not, but if someone could point out the problem it would be lovely~

Note: LIGHTNING is a defined sound, which is working, for the record.

Err..I just tried changing it to a turf instead of an area, which worked. Admins, if you're out there, delete this post.

EDIT: Ok, no more late-night coding for me..
You should not use goto. Ever.

Here's what that should look like:

area/lightning/New()
spawn()
while(src)
sleep(rand(50,600))
flick("Strike",src)
In response to Garthor (#2)
Ah, alright. I'll keep that in mind.

Thank you.