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

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Suggestions
. . -> [Subject]  world.window? world.openwindow? Something like that..

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: world.window? world.openwindow? Something like that..
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please)
Maximum of 6000 characters. Text only please, no HTML.
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Thu 18 Oct 2001 10:36 PM (UTC)  quote  ]
Message
Sure, that is easy enough.

You can use world.setstatus in a script to do that.

For a reasonably simple case, the latest versions of MUSHclient let a trigger send directly to the status line.

For example:


Match on: <*hp *m *mv>
Send: %1 hp %2 mana %3 movement
Send to: Status


The trigger would match on the prompt line (each asterisk is a wildcard) and then send the results to the status line, where %1 %2 and %3 represent the 3 matching wildcard values.



- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Christof   (10 posts)  [Biography] bio
Date Thu 18 Oct 2001 08:33 AM (UTC)  quote  ]
Message
Is there a way to take statistics such as hitpoints/spellpoints and display them in the status bar using scripts?
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Tue 19 Jun 2001 11:32 PM (UTC)  quote  ]
Message
Well, anything's possible. :)

Right now I'm getting MXP perfected, so that sort of thing will have to wait a little while.

If you are familiar with COM programming you could always make another little app, that MUSHclient scripts could invoke and send text to. Make it "always on top" and you have your status window.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Deqitosv   USA  (26 posts)  [Biography] bio
Date Tue 19 Jun 2001 10:44 PM (UTC)  quote  ]
Message
Well I do use world.setstatus for some things, but this amount of data would be too much for that status bar, but too little, and too much work to swap out to a notepad. There's no way we could have a little defineable "status" window added? (I've heard rumour, though I've never used zmud, that it has something like this)

Deqitosv
MushClient Plugins for LegendMUD:
http://www.itgotdeleted.com/ (currently offline)

Experiments in Film:
http://www.cookiejarfilms.com/

15, a Parody of 24:
http://www.pkill.org
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Tue 19 Jun 2001 10:24 PM (UTC)  quote  ]
Message
For small amounts of status information you can use:


world.setstatus "blah"


You can use this to monitor HP, current exits, that sort of thing. You can also send direct to the status line from a trigger.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Deqitosv   USA  (26 posts)  [Biography] bio
Date Tue 19 Jun 2001 10:11 PM (UTC)  quote  ]
Message
The notepad is all well and good, but not quite what I wanted. I like running my world maximized, and for using the notepad, I'd have to swap out of it, whereas I'd like a small window that I can place ontop of everything (like in the upper right hand corner). Ah well good client! I advertise it on the mud I'm on!

Deqitosv
MushClient Plugins for LegendMUD:
http://www.itgotdeleted.com/ (currently offline)

Experiments in Film:
http://www.cookiejarfilms.com/

15, a Parody of 24:
http://www.pkill.org
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Tue 19 Jun 2001 09:01 PM (UTC)  quote  ]
Message
The script functions 'sendtonotepad' and 'appendtonotepad' will do that.

You can't control their location, but you can send basic text.

You can send to them from triggers to, so with a bit of work you can make a script that detects (say) inventory output, and makes a copy in the extra window.

As for matching on non-linefeed text, this is on the drawing board, but so far MUSHclient waits for a newline. You can always match once the newline arrives, so you can update your HP etc., it just won't be updated until a second later.

Also, on MXP-enabled MUDs they can send stuff like HP, movement points etc. as tags, which update immediately, linefeed or no linefeed.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Deqitosv   USA  (26 posts)  [Biography] bio
Date Tue 19 Jun 2001 07:43 PM (UTC)  quote  ]
Message
I was wondering if it would be possible to cause the world, from a script, to open a new window (with various properties setable from the script such as dimensions, always on top, and location), where we could place our own customizable text (either basic text, maybe a world.htmlwindow, that would allow us to load a homepage to modify with scripts etc). I would use such a thing for a status (of sorts) window.
Also the mud I play on does not send a line feed after it's prompt, until I, or it, sends text. Is it possible to add a check mark option in triggers to "match on on non-linefed text", so I could use information in my prompt in a window such as that, or in variables, etc? Thanks!

Deqitosv
MushClient Plugins for LegendMUD:
http://www.itgotdeleted.com/ (currently offline)

Experiments in Film:
http://www.cookiejarfilms.com/

15, a Parody of 24:
http://www.pkill.org
[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.


2,289 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

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

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]