it's been some time since I modded X:Rebirth but now I am getting excited again about being able to mod X4 (although it seems to be still far off based on all the "I don't know yet" answers in the FAQ).
From all the info I gathered it seems that scripting will not change very much between X:R and X4, i.e. we still have the XML based MD and the XML based AI scripts. While there is some documentation on the internet regarding the MD there is almost nothing I could find regarding AI scripts. I just had a look at my old scripts for UFO and remembered the kind of workarounds I had to do to get some basic functionality. My biggest gripe back then was having no easy way to create a Map/Hash/Dictionary (or maybe I just never found it).
I'll use this thread to ask all those questions that I should have asked back then and figure out if I can make the scripts easier. So here's the first basic one: How can I create the equivalent code for the JavaScript snippet below in XML AI script?
Code: Select all
var hash = {
a: 2,
b: {
c: 'string'
},
};
PS: I am thinking about writing a JavaScript/TypeScript to MD XML transpiler to be able to code a bit easier. Therefore most of my questions will be targeted at translating JavaScript snippets to MD XML.