Hi,
MUD: Aaardwolf
Very new to Lua and apologies if this is obvious. I may not be searching for the right terms!
I would like to change certain aliases on reaching a certain level.
As an example, I have a primary spell alias which I then put into one of the numberpad keys.
Example Alias:
Currently I have to manually change this alias on obtaining a more powerful spell. This gets a bit tedious after awhile.
I think I can use a trigger like this:
However, I've not been successful with the above trigger during testing.
These are contained in a plugin. Two questions.
1) Is this the correct method of changing the send info of an alias? Is there a better way?
2) How do I maintain this new value when I close the and reload the mushclient?
thanks
Dak
MUD: Aaardwolf
Very new to Lua and apologies if this is obvious. I may not be searching for the right terms!
I would like to change certain aliases on reaching a certain level.
As an example, I have a primary spell alias which I then put into one of the numberpad keys.
Example Alias:
<alias
name="mageprimcast"
match="^csc(?:[ ]+(.*))?$"
enabled="y"
regexp="y"
send_to="10"
sequence="100"
>
<send>c 346 %1</send>
</alias>
Currently I have to manually change this alias on obtaining a more powerful spell. This gets a bit tedious after awhile.
I think I can use a trigger like this:
<trigger
enabled="y"
match="you reach level {*)."
send_to="10"
sequence="100"
>
<send>if %1 == 46 then
SetAliasOption ("mageprimcast", "send", "c 347 %1")
end --if
</send>
</trigger>
However, I've not been successful with the above trigger during testing.
These are contained in a plugin. Two questions.
1) Is this the correct method of changing the send info of an alias? Is there a better way?
2) How do I maintain this new value when I close the and reload the mushclient?
thanks
Dak