Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ VBscript ➜ Trigger variable macros combined...

Trigger variable macros combined...

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Koyote   (3 posts)  Bio
Date Thu 18 Nov 2004 02:31 PM (UTC)
Message
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
Top

Posted by Flannel   USA  (1,230 posts)  Bio
Date Reply #1 on Thu 18 Nov 2004 07:02 PM (UTC)
Message
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.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
Top

Posted by Koyote   (3 posts)  Bio
Date Reply #2 on Thu 18 Nov 2004 07:34 PM (UTC)
Message
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
Top

Posted by Koyote   (3 posts)  Bio
Date Reply #3 on Thu 18 Nov 2004 07:37 PM (UTC)
Message
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...
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


13,844 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.