Gammon Forum
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 (22,975 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 (22,975 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 (22,975 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.
24,146 views.
It is now over 60 days since the last post. This thread is closed.
  Refresh page
top
Quick links:
MUSHclient.
MUSHclient help.
Forum shortcuts.
Posting templates.
Lua modules.
Lua documentation.
Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.