ID:174433
 
I'm trying to make a gm command where I can change peoples pixel step size this is what I got so far.

mob/verb/Change_Pixel_Step(mob/M in world)
set category = "GGM"
set desc = "Change anyones step size"

I just don't know how I'm going to add the number changing.
mob/verb/Change_Pixel_Step(mob/M in world)
set category = "GGM"
set desc = "Change anyones step size"
var/PS = input("Change pixel step size to what?") as num
M.pixel_step_size = PS


Will that work for ya?
<code>mob/verb/Change_Pixel_Step(mob/M in world, value as num) set category = "GGM" set desc = "Change anyone's step size" M.pixel_step_size = value</code>

You might want to consider looking into some of the functions that s_admin and maybe a few other GM systems have that allow you to edit any variable for any object. They're very useful.
In response to Jotdaniel
Thank you for being helpful. That just helped me solve some other coding similar.