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
➜ General
➜ Creating Variables (By means of someone chatting, not using the client)
|
Creating Variables (By means of someone chatting, not using the client)
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Epazon
(1 post) Bio
|
| Date
| Mon 08 Nov 2004 01:35 AM (UTC) |
| Message
| I've been playing with MUSHClient for about a week now. I've gotten it to do most of the stuff I've wanted it to do except a trick involving variables. I have a radio-type bot for a game I play, that sends messages to any "radios" that are listening to it. How could I create variables by someone private messaging the bot.
Example: (Player's Name) pms "connect" to you.
Is it possible I could have the program create a variable titled (Player's Name) and then everytime someone says something near the bot (which is located on a seperate map), the bot sends the message to the players that pm-ed connect to it? | | Top |
|
| Posted by
| Flannel
USA (1,230 posts) Bio
|
| Date
| Reply #1 on Mon 08 Nov 2004 02:08 AM (UTC) |
| Message
| Yes.
Its possible to create a variable based on a wildcard.
setvariable "%1", "contents"
Put that in your send box, with send to: "script"
although, Im not certain why you want to do this.
Are you going to then check to see if the variable exists?
It would probably be better to make an array of people listening, and then send to everyone in the array.
Or if you want to stay away from arrays, make a variable, and then make a list of people you want to send to in that variable, and then cycle through that to send (theres been a thread on a 'friends list' or, enemies list, they are examples of both, and can be modified to suit your needs). |
~Flannel
Messiah of Rose
Eternity's Trials.
Clones are people two. | | 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.
10,181 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top