gnasirator wrote:phew, are you sure the command does that?
No, I am not sure that "get amount of <ware> in cargo hold" will work with just a name (rather than an ID).
However, I *am* sure that scripts add custom wares, then check for their existence. Using EMP. So there must be a way.
===================================================
EDIT: After thinking more about this problem, I wonder whether EMP may be architecturally flawed? EMP is definitely better, now that Cycrow has built support for it into the Plugin Manager. Still, I get ReadText errors that I cannot track down.
For example, ReadText24-111 at Equipment Docks, when there does not appear to be a "24" file. I know that it is the Advanced Thruster, but I cannot figure out why it is having problems.
It does not help that I cannot find documentation about how EMP works. I have read several EMP threads, but they never explain how it makes relationships. And all of the EMP threads appear to be stale -- it seems that nobody supports it.
I mentioned this in the Plugin Manager thread, and Cycrow gave me one of his cryptic one-liners: "Maybe a t file is not getting loaded". That does not explain how or why a t file might not get loaded, but your question seems as though it might be related.
As far as I can figure out, for EMP to work correctly, *all* of the related t files must be loaded. Always.
And t files are usually loaded in the setup script, right? But what if a script does not load the t file on every reload of a saved game? That could leave t files unloaded which, in turn, would result in ReadText errors.
I am speculating about most of this. Does it make any sense, or am I missing something fundamental? (Actually, I *know* that I am missing the fundamentals of EMP, so maybe I should ask what, exactly, am I missing?)

===================================================