Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
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.
18,415 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top