[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Achaea Serpent
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Achaea Serpent

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Donato   (2 posts)  [Biography] 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.
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] 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
[Go to top] top

Posted by GageEndal   (14 posts)  [Biography] bio
Date Reply #2 on Wed 23 Feb 2005 10:57 PM (UTC)
Message
Yes, yes it is.
[Go to top] top

Posted by Donato   (2 posts)  [Biography] 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
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] 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
[Go to top] top

Posted by Ked   Russia  (524 posts)  [Biography] 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.
[Go to top] 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.


5,227 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] 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.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]