File types for Includes
Posted: Wed May 16, 2007 10:08 pm
I wanted to know if I could put #includes in other file types, because I wanted to make an INI for each of my characters, and then add "#include"s to each character's INI. I thought that it might work, if I used "|**" and "**|" around the INI data, like this:
mycharname.ini
This all hinges on whether or not MQ can use other file types as Includes, or if it only works with .inc files. I editted the wiki at http://www.macroquest2.com/wiki/index.p ... lude_Files , and added in a section stating a basic definition of include files, how to call them in a macro, and that you COULD use any plaintext filetype for include files, but I don't know if that is the case. Any help would be much appreciated. Also, just after posting this I saw a short section on Snippets in the Macro/Snippet questions section at http://www.macroquest2.com/wiki/index.p ... s#Snippets , but the information there regarding my question is a little vague. It says that traditionally includes end in .inc, and that the name does not matter. Does this mean that the filetype does not matter? Or does it just mean that the file name does not matter, but it must be .inc?
mycharname.ini
Code: Select all
#include filenamehere.inc
|**
[section1]
key1=2
[end]
**|