Your understanding is mostly on the right track. The XML handles a lot of the scenario and entity configuration, while JavaScript is used for triggers and scripted events such as waves and other gameplay actions. I’d recommend checking the scenario and map-making tutorials on the Wildfire Games forum, as they cover setting up mods and working with Atlas and scenario files. That should give you a good starting point before experimenting further with your own scenario.