[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Trying to figure out this macro

Trying to figure out this macro

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


Posted by BabbleOn   (2 posts)  [Biography] bio
Date Mon 11 Jul 2005 02:06 AM (UTC)

Amended on Mon 11 Jul 2005 02:43 AM (UTC) by BabbleOn

Message
Here's some sample MUD output:

>attack rat
You slash at the giant rat with your iron sword.
(5 seconds.)
>attack rat
You slash at the giant rat with your iron sword.
(7 seconds.)
A giant rat angrily bites you in the torso!
You have 72/90 HP.
>attack rat
You slash at the giant rat with your iron sword.
(5 seconds.)

What I'm trying to do is create aliases/triggers that upon catching the command 'attack X' will store X as the target, and attack it. I also need a way to catch the time left before the next action, and create a timer that will send 'attack X' when it reaches 0, while at the same time catching */90 HP and sending 'flee' instead of 'attack' when the next round comes up.

Any pointers?
[Go to top] 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.


5,934 views.

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

Go to topic:           Search the forum


[Go to top] 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.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]