ID:149375
 
Is there any special technique for setting up a number as a macro? I'm not talking about numbers on the numpad. For example, I want to macro 1, 2, 3, and 4 to change a player's weapons. I put this in a dms file:

macro
1 return "Weapon1"
2 return "Weapon2"
3 return "Weapon3"
4 return "Weapon4"

When I try to press these keys in the game, it gives me a message saying that the macro for that key isn't set. However, I can go into preferences in the Dreamseeker and manually set the macros for those numbers. All of my other macros using letters etc. work just fine.

macro
1 return "Weapon1"
2 return "Weapon2"
3 return "Weapon3"
4 return "Weapon4"

Remember that macros must follow the same rules of DM.

For example:

mob
1stClassCitizen

will give you a compile error. This is due to the fact that all nodes must start with a letter, and then can be followed by a sequence of letters and numbers of a (reasonably) unlimited length.


You have to add a little more detail:

macro
number1
set name = "1"
return "Weapon1"
number2
set name = "2"
return "Weapon2"
//...
In response to Spuzzum
Ahhh...I see it clearly now. Thanks for your help!