LuaGlobals: Seed is a string draft
authorWuzzy
Sat, 02 Nov 2019 11:46:04 +0000
changeset 2102 c6cb4d0c2b1a
parent 2101 a0a6ebfa2aab
child 2103 612f6f103787
LuaGlobals: Seed is a string
LuaGlobals.wiki
--- a/LuaGlobals.wiki	Fri Nov 01 19:34:47 2019 +0000
+++ b/LuaGlobals.wiki	Sat Nov 02 11:46:04 2019 +0000
@@ -73,7 +73,7 @@
 || *Identifier* || *Default* || *Description* ||
 || `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 ||
 || `Map` || `""` || The image map being played or `""` if no image map is used ||
-|| `Seed` || `0` || Seed of the random number generator ||
+|| `Seed` || `""` || Seed of the random number generator. This is a string ||
 || `LandDigest` || _N/A_ || Digest for the current map. Only meant for internal use by Hedgewars ||
 || `MapGen` || `mgRandom` || Type of map generator. One of `mgRandom`, `mgMaze`, `mgPerlin`, `mgDrawn`. ||
 || `TemplateNumber` || `0` || Set the number of the land template for the random map generator `mgRandom`. Use this to force a certain “style” of random map. 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. This field is write-only, you cannot use it to read the template number that Hedgewars chose (you will always get `0`). To be able to set the `TemplateNumber`, you must also set `TemplateFilter` to `6`. ||