Towns begin

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 of the first defined town.

[edit] Common use

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

[edit] Examples

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

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox