BWE:SET LAND NUMBER

From PBnWModdingWIKI

SET_LAND_NUMBER tells the engine which CHL Script it needs to load.

If SET_LAND_NUMBER(0) was called, the game will attempt to load \data\Scripts\BW2\land0.chl. If this fails, the loading process will not be finished, nor aborted.

Contents

Command

SET_LAND_NUMBER

Parameters

  • Signed 32-bits Integer (-2147483648 to 2147483647): Defines which CHL gets loaded from the \data\Scripts\BW2\ directory. May be possitive or negative.

Example

 SET_LAND_NUMBER(0)
;loads \data\Scripts\BW2\land0.chl
 SET_LAND_NUMBER(-1)
;Attemtps to load \data\Scripts\BW2\land-1.chl

Note

  • If SET_LAND_NUMBER is not specified (in neither map.txt or the loaded BWE file), 0 is assumed.
  • When you start a new game, SET_LAND_NUMBER is typically called twice. The first time is in map.txt, and the second time is in the BWE file. The last call supercedes the first call(s).
  • If SET_LAND_NUMBER refers to a non-existing CHL script file, then the loading process is neither finished or aborted.