if(usr.Species=="Bulbasaur")
var/mob/N=new /mob/Pokemon/Kanto/Bulbasaur
Problem description:
As you can see, the path of the second line depends on usr.Species. Right now, I have the two lines of code repeated for 151 Pokemon.
I want to condense it, like this:
if(usr.Species=="Bulbasaur")
usr<<"Bulbasaur!"
can be condensed into this
usr<<"[usr.Species]!"
Is there any way I can accomplish this by substituting some expression into the end of the path name?