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
➜ Excuse me
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Kijin
(5 posts) Bio
|
Date
| Sun 25 Apr 2004 08:02 AM (UTC) |
Message
| Excuse me i was wondering if there is anyway to set an alias to match on like,
hocuspocus 30 colour 11 cows go moo
and have a script or something have the seconds sent to something or something and start a timer and alert me when the time is up thank you every much
| Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #1 on Sun 25 Apr 2004 09:29 AM (UTC) |
Message
| |
Posted by
| Kijin
(5 posts) Bio
|
Date
| Reply #2 on Sun 25 Apr 2004 06:11 PM (UTC) |
Message
| i mean its a command to do something in game
Hocuspocus 30 colour 11 cows go moo
Hocuspocus is the name of the skill, the 30 is in how many seconds till it goes off, and the rest is colour of the wording, and the wording. I am not quite sure a trigger could do that if i must type it in | Top |
|
Posted by
| Meerclar
USA (733 posts) Bio
|
Date
| Reply #3 on Sun 25 Apr 2004 07:55 PM (UTC) |
Message
| Sounds like you want aliasing rather than triggers but you could use a rather interesting combination of the 2 for some very..... unusual effects. |
Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org | Top |
|
Posted by
| Kijin
(5 posts) Bio
|
Date
| Reply #4 on Sun 25 Apr 2004 08:42 PM (UTC) |
Message
| oh hehe i think i figured it out, cant believe it was as simply as just using * and %1 for the time lol | Top |
|
Posted by
| Kijin
(5 posts) Bio
|
Date
| Reply #5 on Sun 25 Apr 2004 09:18 PM (UTC) |
Message
| i have a quick question. its it possible to make an alias that will do a few things like
inscribe 10 magician
to like do inscribe blank with magician, then wait for
You have successfully inscribed the image of the Magician on your Tarot card.
then do it 9 more times, and if i get this message
You lack the mental resources to etch a Tarot card.
to stop, then med and wait till i get
You cease your meditation having achieved full will and mana.
then start again? | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #6 on Sun 25 Apr 2004 09:52 PM (UTC) |
Message
| Virtually anything is possible, yes.
In this case I would do something like "send to script" on the first alias, along these lines:
Match: inscribe * *
Send:
world.Send "inscribe blank with %2"
world.SetVariable "inscribe_count", "%1"
world.SetVariable "inscribe_name", "%2"
This kicks the process off.
Then have a trigger matching:
You have successfully inscribed the image of * on your Tarot card.
This decrements variable "inscribe_count" by 1, and if greater than zero does it again (using the variable "incscribe_name" to know what to inscribe).
Similarly the "stop" and "start" actions could be handled by other triggers.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Kijin
(5 posts) Bio
|
Date
| Reply #7 on Mon 26 Apr 2004 12:37 AM (UTC) |
Message
| what decrements the variable again | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #8 on Mon 26 Apr 2004 01:16 AM (UTC) |
Message
| Something like this:
Match: You have successfully inscribed the image of * on your Tarot card.
Send:
world.SetVariable "inscribe_count", CInt (GetVariable ("inscribe_count")) - 1
if CInt (GetVariable ("inscribe_count")) > 0 then
Send "inscribe blank with " & GetVariable ("inscribe_name")
end if
Send to: script
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | 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.
27,461 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top