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 ➜ General ➜ smart healing triggers

smart healing triggers

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


Pages: 1  2 3  

Posted by Neurowiz   (17 posts)  Bio
Date Reply #15 on Wed 18 Dec 2002 09:52 PM (UTC)
Message
Hi Magnum

When does this array get initialized originally? It's not clear to me when this array would get "built" with the various afflictions/cures.

Hi Cron0

Can't comment on other MUDs, I've only played Achaea and it takes up enough time. For my pipes - I'm not sure what you are asking?
Top

Posted by Magnum   Canada  (580 posts)  Bio
Date Reply #16 on Wed 18 Dec 2002 11:33 PM (UTC)
Message
Well, the array is outside any subroutines, which means it gets executed immediately, when the script is loaded.

The script is loaded when you open the world file. You can also force a reload of the script from the menu options or by pressing SHIFT-CTRL-R.

Because the script does NOT use MUSHclient variables, it will forget any afflictions you have (they will be reset), whenever you [re]load the script file. People don't often force a reset of their script unless they are busy debugging something. I also doubt people will quit their mud while afflicted with something (or that they will still be afflicted if they log on a while later), which is why I proposed MUSHclient variables not be used. Using MUSHclient variables makes things just a tiny bit slower, so I avoid them when possible.

Get my plugins here: http://www.magnumsworld.com/muds/

Constantly proving I don't know what I am doing...
Magnum.
Top

Posted by Cron0   United Kingdom  (11 posts)  Bio
Date Reply #17 on Thu 19 Dec 2002 03:04 PM (UTC)
Message
Hi Neurowiz, i just meant that do you have a trigger to keep your pipes lit at all times? and how do you get around disabling/enabling the trigger so you don't light each pipe multiple times and create a load of spam.

I'm pretty sure you achaea guys smoke as much as us avalon junkies, but if you have no idea what i'm talking about please ignore me :)
Top

Posted by Neurowiz   (17 posts)  Bio
Date Reply #18 on Thu 19 Dec 2002 03:18 PM (UTC)
Message
I have a trigger/timer combination. I use an alias to fill and light the pipes and enable a timer. Then the timer autosmokes every 1.25 minutes. I also have a macro for smoking manually and some triggers on afflictions or events to smoke. I also have a trigger for if a pipe goes empty. When I'm done with smoking, I have an alias that will empty the pipes and shut the timer off.

HTH.
Top

Posted by Neurowiz   (17 posts)  Bio
Date Reply #19 on Thu 19 Dec 2002 03:26 PM (UTC)
Message
Hi Magnum

I like your approach, although I've had to add a couple of additional elements - I use the InfoLine to give me a "gauge" of which herbs I need to eat/salves I need to apply, so I had to add an array element that indicates which Gauge is affected by each affliction.

Alternatively, since I have to do some curing by herbs and some by salves, I've had to use two different keys (there are issues about trying to do it all with one key, the timing of curing what/when would be a bit trickier with just one big run through the array.

There's also issues of some afflictions cannot be cured because of other afflictions. For instance, I may be afflicted by anorexia, which prevents me from eating, so I have to apply a salve.

I've therefore added another element to the array that indicates what type of cure it is: herb or salve.

For now, until I figure out a more elegant way, I'm using boolean flags to indicate the "special" afflictions that might stop herb or salve cures.

Thanks for the code, I'm actually now converting many of my "temporary" variables to non-MC variables - although some I am going to keep - have to retain from connection to connection.

Top

Posted by Adam Petersen   (17 posts)  Bio
Date Reply #20 on Sat 18 Jan 2003 01:57 AM (UTC)
Message
can you post all you put up and how to do it, thats exactly what i need, so please if you could help me?
Top

Posted by Magnum   Canada  (580 posts)  Bio
Date Reply #21 on Mon 07 Apr 2003 06:56 PM (UTC)
Message
Laf. I found this post by doing a search for "arthritis". (I remembered using that as an affliction).

Bumping this thread for someone who wants the exact same thing.

Get my plugins here: http://www.magnumsworld.com/muds/

Constantly proving I don't know what I am doing...
Magnum.
Top

Posted by Morgoth   Israel  (38 posts)  Bio
Date Reply #22 on Mon 21 Apr 2003 06:54 PM (UTC)
Message
I know this is an old subject, but there's one thing that kind of sparked my curiousity. I know this may sound dumb, but whats an InfoLine?
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #23 on Mon 21 Apr 2003 08:46 PM (UTC)
Message
If you go to the View menu you can see an "Info Bar" entry which can be toggled on and off. This is a status bar near the bottom of the screen that can be programmed from a script to contain various things.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Morgoth   Israel  (38 posts)  Bio
Date Reply #24 on Tue 22 Apr 2003 05:56 AM (UTC)
Message
Ok. Thanks Nick. But what the exact command to get it to show somethign on the info line. Lets say I get a certain affliction, and I want it to show on the INfo line. E.g. (Stupidity,Paralysis).
Thanks
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #25 on Tue 22 Apr 2003 05:59 AM (UTC)
Message
See Info

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Morgoth   Israel  (38 posts)  Bio
Date Reply #26 on Tue 22 Apr 2003 07:23 AM (UTC)
Message
Ok thanks. Only, is there any way not to clear the whole thing at once and just one specific thing?
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #27 on Tue 22 Apr 2003 09:10 AM (UTC)
Message
Not really, the only thing I can suggest is remembering what you put there, and putting it back.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Ked   Russia  (524 posts)  Bio
Date Reply #28 on Wed 23 Apr 2003 12:58 AM (UTC)
Message
This probably belongs in the Bugs section, but since it was the result of my own stupidity... After reading one of your posts about Info bar I went and did something extremely odd, Nick - I repeated what you told us not to repeat, namely dragged the bar into the middle of the output screen and dropped it. Don't ask why... Now, I've tried to reinstall Mushclient but my Info bar still stays broken, is there any more or less easy way to fix it?
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #29 on Wed 23 Apr 2003 02:43 AM (UTC)
Message
  • Click right near the left of the info bar (between the double lines) but with the mouse still an arrow and not a double-arrow. If you get it right you can then drag the info bar away.

  • Drag it right away from the MUSHclient window, until you see the outline change to thicker lines.

  • Let go - it will become an independent window.

  • Then drag it again, and drop it over the status bar. It should then reappear in its correct spot.


- 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.


99,638 views.

This is page 2, subject is 3 pages long:  [Previous page]  1  2 3  [Next page]

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.