ID:268973
 
Grrr. How do I make it when this is clicked if its else, it makes a new mob of mob/Icons/None at 5,4,1)
        NewPet
icon_state="New Pet"
Click()
if(haspet)
usr << "You already have a pet."
else
usr << "You created a pet!"
usr.haspet=1
var/mob/Icons/None/N = new(5,6,1)
var/mob/Icons/None/N = new /mob/Icons/None(5,6,1)


Try that...you might need to use N or something, but I don't know.
In response to N1ghtW1ng
Why is this so hard....it doesnt seem like it would be, jst a new /mob/Icons/None(5,4,1) should work perfectly. And yours doesnt work.
In response to Skye Reaver
locate(5,4,1)
In response to Skye Reaver
Skye Reaver wrote:
Why is this so hard....it doesnt seem like it would be, jst a new /mob/Icons/None(5,4,1) should work perfectly. And yours doesnt work.

Well, you see the argument for atom/New() is an atom at which to create the atom. Therefore, you need to use locate():
var/mob/Icons/None/N = new(locate(5,6,1))
In response to Wizkidd0123
k it works, ty :)