Trigger variable macros combined...

Posted by Koyote on Thu 18 Nov 2004 02:31 PM — 4 posts, 14,587 views.

#0
Ok I'll give you two scenarios and say how I want the alias/macro/trigger to work...

First one: I see
(WANTED) Person is here
----
I want the client to make an alias "manacle person" on a macros.

Second scenario:
(WANTED) Person is here
(WANTED) Mate is here
----
Same thing but once I manacled person, I want the macros to set the variable on mate, is this possible to do?
The echo for when manacles are done is "You slap the manacles on Person."
I wonder if you could help me, thank you
USA #1
For the macro, just have the macro send a long bit of text that you would never type (like "qwertyuiopasdfghjklzxcvbnm") and then have an alias match that.

The multiple people thing can get interesting.
Since I assume there can be more than two, and you'd want it to be extensible? And you dont want to look after each one.

Im thinking an array, one trigger that just adds to the array, and then each time you successfully manacle someone, it takes their name away, and shrinks the array.
And then you'd have to either reset the array everytime you start seeing the list (how would you know?) so that you dont get A B C A B C in your list of targets. Which means you'd need to have something that either comes before, or after the list. Or a timer, or something.

Im just thinking out loud, Im not at a computer where I can write the code at the moment. But there are some signifigant hurtles regarding the latter bit. Or at least some potential problems, depending on how your mud works, and how you plan on using the macros/etc.
#2
Oh yeah...that would be great removing and all that stuff and make a timer like 3 minutes...and maybe if it says that the person is already manacled (by someone else) it will remove it from the array as well...but a timer would work perfectly too bad I don't know how to do it;(
If you can please help me I would really appreciate it
#3
And also uhm, there shouldn't be more than 6 of that kinda targets, though I don't really understand what do you mean by how I am going to use the macros hrm...