Towns end

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

Description

A constant defined in module_constants.py which represents the party ID after the last defined large town.

Common use

towns_end is commonly used in conjunction with towns_begin to loop through every large town, or to determine if an encountered party is a large town in dialog.

Examples

[(try_for_range_backwards, ":town_no", towns_begin, towns_end),
  ...,
(try_end)]

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox