ID:2126817
 
(See the best response by Super Saiyan X.)
Code:
mob
verb
ImportFile(var/ImportedFile as file)
//Whatever I want to do with the file here...


Problem description:
The above code is just an example but is it possible to specify a file type in the open file dialog that appears? The code always defaults to "any file type" but how would I go about doing it so it defaults to checking for text files or for png files?

Thanks
Best response
Unfortunately, there's no way to do this using vanilla DM, aside from using "as sound" and "as icon" for sound files and icons (which includes image formats) - you can submit a feature request though, as it does seem like a good idea.
Thanks. I posted one!