mob
verb
Take_Picture()
var/A = usr.loc.x
var/A1 = A-14
var/B = usr.loc.y
var/B1 = B+15
var/pic
for(var/atom/E in A1,B1)
if(!E.icon)
return
else
pic += E.icon
usr << browse(E.icon)
Problem description:
So, I call that verb.
runtime error: Cannot read null.icon
proc name: Take Picture (/mob/verb/Take_Picture)
source file: Pictures.dm,21
usr: Revojake (/mob)
src: Revojake (/mob)
call stack:
Revojake (/mob): Take Picture()
Now...I see 2 odd things here. One, I put the if seeing if E had an icon...If it didnt...Do nothing. Well, it does. And when it does have an icon, it still throws that runtime to me.... Line 21 is the if statement...
Now normally that shouldn't be happening, but your malformed for() loop is probably to blame for that:
A1,B1 is not valid here. You might mean list(A1,B1), or perhaps A1 to B1, but either way you've got something fairly bogus because you can't find an atom in a list of numbers.
Lummox JR