Gammon Forum
Entire forum
MUSHclient
General
Achaea Serpent
It is now over 60 days since the last post. This thread is closed.
  Refresh page
Posted by
| Donato
(2 posts) bio
|
Date
| Wed 23 Feb 2005 09:11 PM (UTC) |
Message
| Hi, I was wondering whether it would be possible to create an alias which secretes a venom and then bite with it. | top |
|
Posted by
| David Haley
USA (3,881 posts) bio
|
Date
| Reply #1 on Wed 23 Feb 2005 09:24 PM (UTC) |
Message
| You'll have to give more specific information on what exactly you want your alias to do. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | top |
|
Posted by
| Donato
(2 posts) bio
|
Date
| Reply #3 on Thu 24 Feb 2005 09:03 AM (UTC) |
Message
| okay here is what I want to happen... say the allias is 'attack'
secrete sumac
then wait untill the power of the venom is flowing throug my veins
if balance, then bite @target
if not balance, wait for balance and bite @target
| top |
|
Posted by
| David Haley
USA (3,881 posts) bio
|
Date
| Reply #4 on Thu 24 Feb 2005 09:05 AM (UTC) |
Message
| You should provide example output from the MUD along with a transcript of input etc. to make it very clear what exactly you are asking for. It seems that you will need not only an alias but also a trigger to react to the message about balance. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | top |
|
Posted by
| Ked
Russia (524 posts) bio
|
Date
| Reply #5 on Thu 24 Feb 2005 09:18 PM (UTC) |
Message
| You'll probably need two triggers and an alias. Something like this:
<triggers>
<trigger
expand_variables="y"
match="You feel the power of the venom sumac flowing through your veins\.$"
name="sumac_secreted"
regexp="y"
send_to="12"
sequence="100"
>
<send>EnableTrigger "sumac_secreted", 0
if @balance = 1 then
Send "bite @target"
else
EnableTrigger "balance_trigger_bite", 1
end</send>
</trigger>
<trigger
expand_variables="y"
match="You have recovered balance on all limbs\.$"
name="balance_trigger_bite"
regexp="y"
send_to="12"
sequence="100"
>
<send>SetVariable "balance", 1
Send "bite @target"
EnableTrigger "balance_trigger_bite", 0</send>
</trigger>
</triggers>
<aliases>
<alias
match="bsum"
enabled="y"
send_to="12"
sequence="100"
>
<send>Send "secrete sumac"
EnableTrigger "sumac_secreted", 1</send>
</alias>
</aliases>
Though without the actual messages, it's hard to tell whether it'll work or not. | top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
16,459 views.
It is now over 60 days since the last post. This thread is closed.
  Refresh page
top
Quick links:
MUSHclient.
MUSHclient help.
Forum shortcuts.
Posting templates.
Lua modules.
Lua documentation.
Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.