Greetings,
When new players play, sometimes they are absolutely new to the world of Achaea and MUDs. They were playing an MMORPG and saw a banner with an image they thought was cool and clicked it. They found out that it wasn't a Android App game and kept reading on into the website.
about 30 minutes later they are registered an account, reading about classes, races, cities.. and creating a character..
Again, they have Zero knowledge of MUDLET .. or MUDs..
They begin to play and have tons of fun, then they notice that the people of their city want them to start coding triggers in MUDLET, but they are new and have no clue how to do that, they aren't explained how to, except pretty much told to google it.
My question is.. (after giving some background that there are true newbies in the realm)..
Does anyone know where I can find Anti-Theft triggers or examples? I'm tasked with setting myself up so if I'm hypnotised by a Serpent that I can put my gold back in my bag, but I have yet to get anyone to try it on me so I can figure out what text I'm trying to capture.
I have come across some things that have Anti Theft in them, but they charge 125 dollars to use their product, and I just am learning, I'm sure I can make a simple trigger, I just don't know what text I'm looking for.
Thanks for the help.
0
Answers
send("CT I've been snapped by " ..matches[2].. " !")
send("selfishness")
for the snap.
I also have triggers for rewearing containers:
^You remove a bag of stasis.$ -> send("wear bag")
I don't know if thieves can make you give them containers, but I was told to do that.
also I have:
^A soft tug upon your apparel grabs at your attention, and in an instant you realise that your inventory is lighter.$
send("selfishness")
should probably also highlight that - that's a successful theft. But they can only steal so much gold at a time, so if you see that you can get away quickly and they won't have gotten much. (Is it 5k at a time?)
I've successfully thwarted an attempt to steal from me with these triggers. (I was not afk at the time.)
As far as triggers, Whispaire, if you're on mudlet all you gotta do is trigger the lines that people ask you to prepare for. You can ask IC fairly easy for what it is you have to prepare for, but as far as making triggers itself, you'll basically have what Minifie said. Make sure you pick 'perl regex' from the dropdown at the side if you're using Mudlet.
As for triggers, I wouldn't do what @Cailin is suggesting and reflex "selfishness" to snap and such things. Its far too abusable in combat situations, and it won't really help you to protect your stuff in the long run. You're better off using the triggers @Minifie provided, and making sure you automatically keep selfishness up. Do that, and your gold will be pretty much completely secure.
But that reminds me, Svof's 'sl' toggle is the best thing EVER and you should either get it or find something like it.
I did a hypno trigger
^(.+) Snaps (his|her) fingers in front of you
sendAll("get box from pack","open box","put sovereign in box","close box","put box in pack")
deleteFull()
cecho("\n<blue:green><DodgerBlue><< "..matches[2]:title().." SNAPPED YOU, THEFT/AFFLICTIONS POTENTIALLY!!!<DodgerBlue> >>")
I did the remove trigger for items that I'm wearing..
I also made a couple aliases
^getg$
sendAll("get sovereign","get box from pack","open box","put gold in box","close box","put box in pack")
and
^gg (\d+)$
sendAll("get box from pack","open box")
send("get "..matches[2].. " gold from box")
sendAll("close box","put box in pack")
they might not be pretty, I'm just learning how to do the basics.. but they work for what I want them to..
I would highly consider setting a separator via CONFIG SEPARATOR, then using that instead of sendAll, so that all your actions get sent at once without any delay whatsoever in between.
EG:
That would make it show as:
You take a box from your pack.
You open the box.
You put gold in box.
You close the box.
You put the box in your pack.
<--prompt line goes here-->
Rather than having it send individual commands and be like:
You take a box from your pack.
<--prompt line goes here-->
You open the box.
<--prompt line goes here-->
You put gold in box.
<--prompt line goes here-->
You close the box.
<--prompt line goes here-->
You put the box in your pack.
<--prompt line goes here-->
This isn't to diss, just future advice!
For the record, I spent about half an hour or so talking with @Whispaire last night, so his trigger should be set. Mhaldor, take care of your novices!