How do you use a variable from the command line? Every time I try, the program doesn't know what I'm doing.
For example: The variable "sword1" is given a value of "sword134878". But when I type in "examine @sword1", the program returns that I don't have such an item. When I use it as a part of a script it works just fine. What am I doing wrong?
Second question: I want to use an alias with variables in it, like so:
<aliases>
<alias
match="vv * *"
enabled="y"
expand_variables="y"
sequence="100"
>
<send>envenom @sword1 with @%1
envenom @sword2 with @%2
</send>
</alias>
</aliases>
The asterisks are both going to be aliases referring to different types of venoms. I don't want to type out the whole name because it would take overly long. And it's really, really inelegant to type out all possible combinations of venoms and make an alias for each. That would be ridiculous.
I think this is connected to the "using a variable from the command line" problem because of course this particular alias is sending variables to the command line.
For example: The variable "sword1" is given a value of "sword134878". But when I type in "examine @sword1", the program returns that I don't have such an item. When I use it as a part of a script it works just fine. What am I doing wrong?
Second question: I want to use an alias with variables in it, like so:
<aliases>
<alias
match="vv * *"
enabled="y"
expand_variables="y"
sequence="100"
>
<send>envenom @sword1 with @%1
envenom @sword2 with @%2
</send>
</alias>
</aliases>
The asterisks are both going to be aliases referring to different types of venoms. I don't want to type out the whole name because it would take overly long. And it's really, really inelegant to type out all possible combinations of venoms and make an alias for each. That would be ridiculous.
I think this is connected to the "using a variable from the command line" problem because of course this particular alias is sending variables to the command line.