I am building a teleportation system around a private island where flying is not allowed. The current working method brings up the map with a destination marked as the result of clicking on a dialog box. This works but is very ugly. It would be better to bring up a landmark when you click on a destination, as the ESC tourHUD does for example.
I know how to do this, and I have already done it and abandoned it. Because my implementation (and Electric Sheep's) causes you to get the landmarks every time you use the tp booth in my case and HUD in theirs.
What I need is this:
1. you click on the tp booth
2. it check is you have the XYZ folder in your inventory. If you have it then it does nothing. If you don't have it then it gives it to you.
3. It brings up its dialog boxes and then pops up the right landmark from inside the XYZ folder when you have made your selection.
My problem:
Despite looking at the wiki and the forums I have no idea how to check if you have a specific folder in your inventory. Do I have to do a loop through your entire inventory checking for a specific item by name or key?
I need to check if you already have what you need to avoid giving you the same stuff over and over again. If I cannot do this then the map is the only solution, because handing out the same notecards over and over is simply a dopey way of filling the asset server with nothing to nobody's benefit. Isn't it?
If I cannot check for folders then I suppose that I could create an item-to-check-for whose purpose was simply to be checked for

If I do that then how does the loop work: alphanumerically by name or by key? In other words will an item named aaaaaaaardvark be 99% certain to be at the top of the loop (and thus do away with thousands of unecessary loopings) or am I being naive here?
Or even worse starting a naming war *grins*
Is my problem clear? If it is does anyone have any suggestions? I cannot believe that I am the first (or even the 101st) person to try to avoid handing out endless duplicates of the same landmark/notecard, but I cannot find any solutions...
