Achaea Serpent

Posted by Donato on Wed 23 Feb 2005 09:11 PM — 6 posts, 24,862 views.

#0
Hi, I was wondering whether it would be possible to create an alias which secretes a venom and then bite with it.
USA #1
You'll have to give more specific information on what exactly you want your alias to do.
#2
Yes, yes it is.
#3
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
USA #4
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.
Russia #5
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.