mob/verb/CreateMacro(var/Letter as text)
var/action=input(usr,"Write the name of the command you want to macro, use a dash instead of SPACE","Macro") as text
winset(usr,"Macro[Letter]","parent=macro;name=[Letter];command=[action]")
Problem description: This command makes it so that a player from inside the game, can make a macro, and it works perfectly, the only problem is that when you exit the game and come back in, the macro didn't get saved, so what I want to know, is how can I save a macro with this code? Thank you in advance!
Although, I'm sure there are some brighter individuals than myself who've found better ways to handle it.
If you need help using savefiles, there are a buuuunch of savefile libraries on the Developers page.