Towns end

From Mount&Blade Modding Wiki
Revision as of 12:25, 8 June 2013 by Swyter (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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