RM Scripting
From AgeofWiki
In Age of Mythology and Age of Empires 3, Ensemble Studios created a brand new scripting system for random maps, more like a programming language than the old Age of Kings system. The new scripting language may have a steeper learning curve, but it opens up a world of possibilities for the random map scripter. This section will talk about some of the features in the new scripting system and how to make use of them.
| Table of contents |
Basic RM
Random map scripting requires a bit of programing knowledge, like JavaScript, PHP, C++, or anything of that sort. But if you are clueless, don't worry, that's why we are here. If you have never heard of random map scripting before, then a good place to start is this section. This is a guide made by M0nTy_PyTh0n, in it he explains everything the basic RM scripter needs to know. It also includes a sample map file to get you started!
AoE3 RMS Tutorial (http://hyenastudios.mugamo.com/aoe3rmstutorial.htm)
Advanced RM
Already know how to make RM scripts? Don't worry, we can help you too! There is a collection of guides made by Matei, the famous creator of Norse Wars (AoM), that are on the wiki to boost your knowledge about scripting. The guides include Variables, Functions, Arrays and more! To get started, just click a link below:
- Part 1 - Variables
- Part 2 - Control Statements
- Part 3 - Functions
- Part 4 - Triggers in RMS
- Part 5 - Arrays
- Part 6 - Math Functions - Math Function Library
RM Script Editors
Random map scripts are just text files, so you can edit them with Windows Notepad. However, there are several better, free editors out there that will make it easier:
Reference Lists
New AOE3 RMS Features
As you have probably heard, AoE3 is very similar to AoM in many ways. But, as expected, also has some differences. This group focuses on those differences, to help you understand better how to use them.
Groupings
A new feature in RMS for AOE3 is the use of groupings, which are sets of terrain and objects exported from the scenario editor, in random map scripts. These allow unprecedented ability to create detailed groups of objects for placement in your script. See this link for a description: Define grouping
Natives
Several steps are required to add native villages to RMS. See Natives in RMS.
Techs
Want to use some techs in your Random Map Script? Unfortunately, you must call upon each tech by a number, here is a list to help you out: Tech ID list (don't forget, the "ctrl f" tool is your friend to)
Creating .xml files for custom RMS
An RMS needs an xml file to be displayed and played - see this page to find out how to use all of the features: Creating .xml files for custom RMS
