ID:270777
 
I'm trying to make a macro using the number 1 on the row above the keyboard, but it keeps giving me errors. Here's the macro's code:
macro
b1{set name="1";return "Release_Arrow0";}


The verb itself is fine, but the macro gives this error when used:
Unrecognized or inaccessible verb: Release_Arrow0
try Release Arrow()... not too good on the whole macro thing... but it might be what you need to fix...

§atans§pawn
The problem is that you probably defined your macro as a proc. Macros are used to type in the command line, so you will have to make your "Release_Arrow0" proc a verb. I also suggest you to use one verb, and supply an argument, so you will not need countless verbs, and instead can use one verb.

macro
num1
set name = "1"
return "ReleaseArrow 1"
num2
set name = "2"
return "ReleaseArrow 2"
num3
set name = "3"
return "ReleaseArrow 3"

// ...

num9
set name = "9"
return "ReleaseArrow 9"


And for your verb:

mob/verb
ReleaseArrow(n as num) // n is the number that the user pressed
switch(n)
if(1)
// do what number 1 does
if(2)
// do whta number 2 does
if(3)
// ...


~~> Unknown Person