1
DF Modding / Re: Can we set multiple OBJECT:TEXT_SET's in the same file?
« on: March 23, 2023, 04:59:41 am »It doesn't matter, because...
...you can't define your own arbitrary TEXT_SETs. [TEXT_SET:SECRET_EXAMPLE1] is just ignored.
These are the only TEXT_SET definitions that will do anything, straight from the executable:
Awesome, that's good to know. Though in my case, I was interested in how the parser behaves, not just the practicality of adding new TEXT_SETs.
So in light of all this, I tried modifying the vanilla TEXT_SETs to define two in the same file.
I got an error with Dwarf Fortress when trying to start a new game, saying the TEXT_SET I had pasted below another one couldn't be found.
So I think this confirms that TEXT_SETs are a special case in the parser, and everything following a [TEXT_SET:ID] token in a file is treated as newline-separated strings, not parsed as normal tokens. Meaning you can't put two different TEXT_SETs in the same file.