Trigger help

by Unknown

Back to Mechanic's Corner.

Unknown2008-11-15 16:03:31
Trying to make a trigger that'll automatically pick up corpses. I have something similar to this for Imperian, but it's for Zmud.

This is what I had:
CODE
#TRIGGER {You have slain} {bodycount=1}
#TRIGGER {You have recovered balance.} {#if @bodycount=1 {g @target;bodycount=0}}
#VAR {bodycount} {0}

Would be great if someone told me or actually converted this into MUSH form. biggrin.gif Thanks in advance.
Unknown2008-11-15 20:16:51
Le bump
Shaddus2008-11-15 22:36:06
Try this.
From the aetherplex, PORTAL ENTER ATTAI
WARES ACQUISITIO
BUY "ring enchanted with acquisitio"
RUB ACQUISITIO
Esano2008-11-15 22:46:24
QUOTE(Shaddus Mes @ Nov 16 2008, 09:36 AM) 582634
Try this.
From the aetherplex, PORTAL ENTER ATTAI
WARES ACQUISITIO
BUY "ring enchanted with acquisitio"
RUB ACQUISITIO

That kind of works. But for the cheapskates:

Apollon: You should be able to do exactly the same thing in mushclient. Use the trigger interface, rather than trying to write it in XML, for future occasions. I'll post it in a moment for you, though.
Rika2008-11-15 22:47:12
Forgot to wear the ring. wink.gif
Unknown2008-11-15 23:03:05
<----- Newb to Lusternia, didn't know such a thing existed.
Esano2008-11-15 23:14:51
CODE

     enabled="y"
   keep_evaluating="y"
   match="^You have recovered balance on all limbs\\.$"
   regexp="y"
   send_to="12"
   sequence="100"
  >
  if GetVariable("bodycount")=="1" then
--if 1==1 then
Send("get "..GetVariable("target"))
SetVariable("bodycount","0")
end

  
     enabled="y"
   match="^You have slain"
   regexp="y"
   send_to="12"
   sequence="100"
  >
  SetVariable("bodycount","1")
  


  0
  test



There you go. Copy that, open up the triggers page, and click paste. That should put it all in for you.
Unknown2008-11-15 23:18:16
Thank ye.
Gwylifar2008-11-15 23:39:31
It doesn't just pick up corpses, it also pilfers random items on the ground on a tick. In addition, it causes halitosis, cancer, premature ejaculation, and warts.