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

Gammon Forum

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

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Miniwindows
. . -> [Subject]  A window with clickable targets?
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

A window with clickable targets?

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


Posted by Kaimarae   (34 posts)  [Biography] bio
Date Tue 17 May 2011 01:05 AM (UTC)
Message
I would very much like to make a trigger that reads the names of npcs and mobs, then outputs them into a window where I can click on them to set a variable that I use to store my target. I'm sure this is possible, but I haven't the slightest idea on how to implement it. Any help would be greatly appreciated :)
[Go to top] top

Posted by Twisol   USA  (2,257 posts)  [Biography] bio
Date Reply #1 on Tue 17 May 2011 01:10 AM (UTC)
Message
The best place to start is the Miniwindows Intro, linked above the threads list in the Miniwindows forum (i.e. here).

http://www.gammon.com.au/mushclient/mw_intro.htm

Play with some small things for a bit, ask any questions you might have, and I'd suggest at least attempting to write a TicTacToe miniwindow. :) You can also look at the source of my MapWindow plugin (funny how that keeps coming up) for a somewhat-icky-but-still-okay example of how to use a miniwindow.

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by Kaimarae   (34 posts)  [Biography] bio
Date Reply #2 on Tue 17 May 2011 01:12 AM (UTC)
Message
I had this sneaking suspicion that when I made this thread that there was little point and that I may as well have just asked you in the other thread xD
[Go to top] top

Posted by Twisol   USA  (2,257 posts)  [Biography] bio
Date Reply #3 on Tue 17 May 2011 01:16 AM (UTC)
Message
Nah, not at all. Now you have somewhere better to follow up at with questions!

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by Nick Gammon   Australia  (21,478 posts)  [Biography] bio   Forum Administrator
Date Reply #4 on Tue 17 May 2011 01:17 AM (UTC)
Message
This might get you started:

http://www.gammon.com.au/forum/?id=9462

It's a miniwindow with clickable names, so that is close to what you want. However the names are world names of open worlds.

So just modify where it builds the list to change from open worlds, to known targets, and you are done (and of course do something different when you click on one).

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[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.


4,410 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 FutureQuest]