Code:
//CODE
client//client
command_text = ".alt "//makes the macro thing pushed in when they login
mob/var//vars
1=""//the space var
2=""//the + var
3=""// the / var
4=""// the * var
5=""//the -
6=""//the - var
7=""//the - var
8=""//the - var
9=""//the - var
0=""//the - var
mob/verb/Set_Macro()//verb to set macro
var/l = input("What Var?","Vars") in list("1","2","3","4","5","6","7","8","9","0")
// usr.vars[l] = p
mob/proc/Find(var/H)//proc
if(H=="1")//if the var that was used equals a it runs a verb
usr.1()//runs a verb
if(H=="2")//diddo
usr.2()//diddo
if(H=="3")//diddo
usr.3()//same
if(H=="4")//same
usr.4()//same
if(H=="5")//same
usr.5()//same
if(H=="6")//same
usr.6()//same
if(H=="7")//same
usr.7()//same
if(H=="8")//same
usr.8()//same
if(H=="9")//same
usr.9()//same
if(H=="0")//same
usr.0()//same
if(H=="")//this sees if there is a equals set to a var, if not it will say
usr<<"Please set one."
mob/verb//verb
Get(d as text)//the verb to make it run the FIND proc to run the verb the macro is set to
set hidden = 1//hides this, so its not in the command pannel
var/H = "[usr.vars[d]]"//sets H to a var
usr.Find(H)
/////////////////////////////////
//MACRO FILE
macro
1 return "Get \ 1"
2 return "Get \ 2"
3 return "Get \ 3"
4 return "Get \ 4"
5 return "Get \ 5"
6 return "Get \ 6"
7 return "Get \ 7"
8 return "Get \ 8"
9 return "Get \ 9"
0 return "Get \ 0"
Problem description:
Errors...
D:\Macro test\macros.dms:2:error at '1': unexpected character
loading skin.dmf
Macro test.dm:14:error: 0: bad variable definition
Macro test.dm:13:error: 9: bad variable definition
Macro test.dm:12:error: 8: bad variable definition
Macro test.dm:11:error: 7: bad variable definition
Macro test.dm:10:error: 6: bad variable definition
Macro test.dm:9:error: 5: bad variable definition
Macro test.dm:8:error: 4: bad variable definition
Macro test.dm:7:error: 3: bad variable definition
Macro test.dm:6:error: 2: bad variable definition
Macro test.dm:5:error: 1: bad variable definition
Macro test.dm:4:error: var: invalid variable name: reserved word
Macro test.dm:16:warning: l: variable defined but not used
Macro test.dm:21:error: usr.1: undefined var
Macro test.dm:23:error: usr.2: undefined var
Macro test.dm:25:error: usr.3: undefined var
Macro test.dm:27:error: usr.4: undefined var
Macro test.dm:29:error: usr.5: undefined var
Macro test.dm:31:error: usr.6: undefined var
Macro test.dm:33:error: usr.7: undefined var
Macro test.dm:35:error: usr.8: undefined var
Macro test.dm:37:error: usr.9: undefined var
Macro test.dm:39:error: usr.0: undefined var
Macro test.dmb - 21 errors, 1 warning (double-click on an error to jump to it)