LuaGlobals.wiki
changeset 1896 3b924ec68ec5
parent 1821 e514ad7c39a3
child 1897 1d24131414e3
equal deleted inserted replaced
1895:93f8269fca27 1896:3b924ec68ec5
    74 || `Theme` || _depends_ || The theme to be used. When `Map` is set, a default value is used. For missions which don't use an image map, `Theme` *must* be set explicitly ||
    74 || `Theme` || _depends_ || The theme to be used. When `Map` is set, a default value is used. For missions which don't use an image map, `Theme` *must* be set explicitly ||
    75 || `Map` || `""` || The image map being played or `""` if no image map is used ||
    75 || `Map` || `""` || The image map being played or `""` if no image map is used ||
    76 || `Seed` || `0` || Seed of the random number generator ||
    76 || `Seed` || `0` || Seed of the random number generator ||
    77 || `LandDigest` || _N/A_ || Digest for the current map. Only meant for internal use by Hedgewars ||
    77 || `LandDigest` || _N/A_ || Digest for the current map. Only meant for internal use by Hedgewars ||
    78 || `MapGen` || `mgRandom` || Type of map generator. One of `mgRandom`, `mgMaze`, `mgPerlin`, `mgDrawn`. ||
    78 || `MapGen` || `mgRandom` || Type of map generator. One of `mgRandom`, `mgMaze`, `mgPerlin`, `mgDrawn`. ||
    79 || `TemplateFilter` || `0` || _unknown meaning_ ||
    79 || `TemplateNumber` || `0` || This is the number of the land template for random map generators like `mgRandom`. A land template is a rule set for random maps. Maps generated with the same template look similar. You can see the land template number in console when you generate a new random map in the frontend. ||
    80 || `TemplateNumber` || `0` || _unknown meaning_ ||
    80 || `TemplateFilter` || `0` || Used for the random map generator (`mgRandom`). This is the number of the template filter to be used. template filter is a grouping of multiple land templates. This corresponds directly to the map size/type selection in the frontend (e.g. Small/Medium/Large/Cavern/Wacky).
    81 || `MapFeatureSize` || `50` (`12` in 1.0.0) || Used by random maps to determine its “curvyness” or complexity. This value can be set by the user with the slider under the random map preview in the game setup screen. The user-set value ranges from 1 (leftmost position) to 25 (rightmost position). A good starting value is `12`. ||
    81 || `MapFeatureSize` || `50` (`12` in 1.0.0) || Used by random maps to determine its “curvyness” or complexity. This value can be set by the user with the slider under the random map preview in the game setup screen. The user-set value ranges from 1 (leftmost position) to 25 (rightmost position). A good starting value is `12`. ||
    82 || `GameFlags` || `0` || All `GameFlags` combined as a bitmask. Setting `GameFlags` directly is discouraged, use the [LuaGameplay#GameFlags_functions GameFlags functions] instead ||
    82 || `GameFlags` || `0` || All `GameFlags` combined as a bitmask. Setting `GameFlags` directly is discouraged, use the [LuaGameplay#GameFlags_functions GameFlags functions] instead ||
    83 || `Ready` || `5000` || Ready timer at the start of the turn (in milliseconds) ||
    83 || `Ready` || `5000` || Ready timer at the start of the turn (in milliseconds) ||
    84 || `Delay` || `100` || Time the current hedgehog needs to be inactive before gear stuff gets updated in infinite attack mode, like applying hog damage and deaths. This is quite an obscure variable, only change it if you know what you're doing ||
    84 || `Delay` || `100` || Time the current hedgehog needs to be inactive before gear stuff gets updated in infinite attack mode, like applying hog damage and deaths. This is quite an obscure variable, only change it if you know what you're doing ||
    85 || `TurnTime` || `45000` || Turn time in milliseconds ||
    85 || `TurnTime` || `45000` || Turn time in milliseconds ||
   103 || `ScreenWidth` || _N/A_ || Width of the Hedgewars window or screen ||
   103 || `ScreenWidth` || _N/A_ || Width of the Hedgewars window or screen ||
   104 || `ScreenHeight` || _N/A_ || Height of the Hedgewars window or screen ||
   104 || `ScreenHeight` || _N/A_ || Height of the Hedgewars window or screen ||
   105 
   105 
   106 The proper way to disable Sudden Death is by setting both `WaterRise` and `HealthDecrease` to `0`.
   106 The proper way to disable Sudden Death is by setting both `WaterRise` and `HealthDecrease` to `0`.
   107 
   107 
       
   108 == <tt>!TemplateFilter</tt> ==
       
   109 Depending on the map type (`MapGen`), the meaning of `TemplateFilter` differs:
       
   110 
       
   111 === Random maps (`mgRandom`) ===
       
   112 || *Template filter number* || *Generated maps* ||
       
   113 || `0` || All ||
       
   114 || `1` || Small ||
       
   115 || `2` || Medium ||
       
   116 || `3` || Large ||
       
   117 || `4` || Cavern ||
       
   118 || `5` || Wacky ||
       
   119 
       
   120 === Perlin maps (`mgPerlin`) and maze maps (`mgMaze`) ===
       
   121 || *Template filter number* || *Generated maps* ||
       
   122 || `0` || Small tunnels ||
       
   123 || `1` || Medium tunnels ||
       
   124 || `2` || Large tunnels ||
       
   125 || `3` || Small islands ||
       
   126 || `4` || Medium islands ||
       
   127 || `5` || Large islands ||
       
   128 
       
   129 === Other map generators ===
       
   130 It doesn't matter.
       
   131 
   108 == <tt>!WorldEdge</tt> ==
   132 == <tt>!WorldEdge</tt> ==
   109 The value of `WorldEdge` can have the following values:
   133 The value of `WorldEdge` can have the following values:
   110 
   134 
   111 || *Identifier* || *Meaning* ||
   135 || *Identifier* || *Meaning* ||
   112 || `weNone` || No world edges ||
   136 || `weNone` || No world edges ||