verb/ChangeRockIcon( I as icon )
var/obj/Rock/R = /obj/Rock // This is NOT the correct way to reference an object
R.icon = I // Set the icon of all Rocks to whatever the user inputted
icon = 'someicon.dmi' // Just some default icon
I have forgotten something so trivial as how to reference an object so that I can modify its variables from outside its scope. I just want the ChangeRockIcon verb to change the icon of all Rock objects, but from within the /mob/Player scope. How is this done?