mob
Login()
..()
loc=locate(x,y,2)
verb/Spawn_Random_Pokemon()
var/obj/Pokemon/P=new(5,2,2)
var/Pokemon=rand(1,649)
P.icon=file("BW/[Pokemon].png")
Problem description:
I want the icon of P to become a random number from 1 to 649, but I dunno how to do that since you can't embed variables in them single apostrophes. I tried using file() but of course that didn't work.
Any help?