Python

From Mount&Blade Modding Wiki
Jump to: navigation, search

Python is a free, open development, programming language used to compile the Module System into text files readable by Mount&Blade and Mount&Blade Warband. Currently, only Python 2.5 or Python 2.6 are can be used to compile the Module System. Contrary to popular belief, Python is not the scripting language read by the game. The Module System itself is it's own language.

[edit] Lists

A python lists starts with a '[', includes a list of objects seperated by commas, and ends with a ']'. This can encapsulate anything, including list of objects, tuples, operations.

[edit] Tuples

Tuples, like lists, contain elements seperated by commas (but they start and end with parentheses). The structure of each tuple object is documented at the beginning of the module file.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox