ID:174311
 
Well, I've given up trying to wing it, so... I've decided to ask those who know what they're doing how to do it.

How do I make a "Custom pet" verb? I have the proc that makes them follow, but I can't get the beginning part right, where the user chooses the pet's name and icon.
You want to create a /mob/pet and let the player choose its name and icon? Okay, not too difficult.

First, create the pet. =)

<code>var/mob/pet/P=new(src.loc)</code>

Then let the player choose the name:

<code>P.name=html_encode(input(src,"Type the name of your pet.","Pet name") as text|null) if (P.name==null) //If it's null, they pressed cancel del P return</code>

Then the icon:

<code>P.icon=input(src,"Select an icon for your pet.","Pet icon") as icon|null if (!P.icon) //If it's null, they pressed cancel del P return</code>

There's a lot that's dodgy about that system, but it's a starting point.