Page 1 of 1
How to trigger split coins
Posted: Tue Aug 01, 2023 2:34 pm
by RodGK
Hi, I am using Mudlet since this year so I am still learning how to use it after using tintin++ and Zmud years ago to mud. I have a trigger to "get all coins corpse" when a mob dies, but I don't know how to auto split the coins with my group. In tintin++ it was easy ("you get % coins from corpse -> action/trigger "split % coins"), but don't know how to replicate it on Mudlet. Can you help me with that?
Thanks in advance!
Rod
Re: How to trigger split coins
Posted: Tue Aug 01, 2023 5:42 pm
by demonnic
You can make a perl regex trigger with the pattern "you get (\d+) coins from corpse" (without the "") and then in the script box at the bottom put in
send("split " .. matches[2] .. " coins")
Re: How to trigger split coins
Posted: Wed Aug 02, 2023 8:54 pm
by RodGK
Hi, thanks for your answer!
Re: How to trigger split coins
Posted: Wed Aug 02, 2023 10:00 pm
by demonnic
if you click 'show' on the code box in my answer it gives what to put in the script box. Reproduced below without the formatting.
send("split " .. matches[2] .. " coins")