A window with clickable targets?

Posted by Kaimarae on Tue 17 May 2011 01:05 AM — 5 posts, 25,295 views.

#0
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 :)
USA #1
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.
#2
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
USA #3
Nah, not at all. Now you have somewhere better to follow up at with questions!
Australia Forum Administrator #4
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).