ID:149726
 
Ok.. I'd like to have it so in my game, if you hit the "P" key, you will Pickup an object around you.. how do I insert the macro for the p letter?
[something.dms] //This is a script file

macro//tells it you're defining a macro
P return "Pickup"//pickup verb called when P is pressed


[somethingelse.dm]//This is a code file
mob/verb/Pickup()
for(var/obj/O in oview(1))//loops over all objects within oview(1)
O.Move(usr)//Pickup the object
usr << "You pickup [O]!"
break//stops the loop
return//Stops the verb
usr << "You find nothing..."