Towns end

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

[edit] Description

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

[edit] 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.

[edit] Examples

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

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox