Hey everyone. Complete newb to MUSH but I'm getting the hang of it pretty fast. I'm running into a small problem, though. From what it looks like, my variables don't update right away.
Here's an example of some output. I tried starting with blank variables, but I got the following error:
[string "Alias: Brewing"]:2: unexpected symbol near '*'
When I input values into the variables beforehand the system runs, but it doesn't update variables properly and ruins my brewing. Getting kind of frustrated now, at the waste of materials I've encountered so far.
For what it's worth, I know what it SHOULD do. If I type brew 1 health, brewamt should equal 5, brewamt2 should equal 10, and brewtype should equal health. I'm aiming to use variables to control these because in the game (Achaea) the multiplicative factors can change based on your skill level, so I figured it would be easier to just change around one number than having to peruse through an entire script and change it all.
Below is my alias so far for what I've got.
Here's an example of some output. I tried starting with blank variables, but I got the following error:
[string "Alias: Brewing"]:2: unexpected symbol near '*'
When I input values into the variables beforehand the system runs, but it doesn't update variables properly and ruins my brewing. Getting kind of frustrated now, at the waste of materials I've encountered so far.
For what it's worth, I know what it SHOULD do. If I type brew 1 health, brewamt should equal 5, brewamt2 should equal 10, and brewtype should equal health. I'm aiming to use variables to control these because in the game (Achaea) the multiplicative factors can change based on your skill level, so I figured it would be easier to just change around one number than having to peruse through an entire script and change it all.
Below is my alias so far for what I've got.
<aliases>
<alias
name="Brewing"
match="^brew (\d+) (\D+)$"
enabled="y"
echo_alias="y"
expand_variables="y"
group="General"
regexp="y"
send_to="12"
sequence="100"
>
<send>SetVariable ("brewamt" , %1 * 5)
SetVariable ("brewamt2" , @brewamt * 2)
SetVariable ("brewtype", "%2")
ColourNote ("white", "black", "@brewamt, @brewamt2, @brewtype")
SetStatus ("@brewamt, @brewamt2, @brewtype")</send>
</alias>
</aliases>