equal
deleted
inserted
replaced
82 * <tt>!WaterRise = 47</tt> - height of water rise at sudden death in pixels |
82 * <tt>!WaterRise = 47</tt> - height of water rise at sudden death in pixels |
83 * <tt>!HealthDecrease = 5</tt> - amount of health decreased on sudden death |
83 * <tt>!HealthDecrease = 5</tt> - amount of health decreased on sudden death |
84 * <tt>Map = "Bamboo"</tt> - the map being played |
84 * <tt>Map = "Bamboo"</tt> - the map being played |
85 * <tt>Theme = "Bamboo"</tt> - the theme to be used |
85 * <tt>Theme = "Bamboo"</tt> - the theme to be used |
86 * <tt>Ready = 5000</tt> - the ready timer at the start of the round |
86 * <tt>Ready = 5000</tt> - the ready timer at the start of the round |
87 * <tt>!MapGen</tt> |
87 * <tt>!MapGen</tt> - type of map generator. One of `mgRandom`, `mgMaze`, `mgPerlin`, `mgDrawn`. |
88 * <tt>!TemplateFilter</tt> |
88 * <tt>!TemplateFilter</tt> |
89 * <tt>Goals = "Jumping is disabled"</tt> - if you want to add info to the game mode dialog, use "|" to separate lines |
89 * <tt>Goals = "Jumping is disabled"</tt> - if you want to add info to the game mode dialog, use "|" to separate lines |
90 |
90 |
91 If you want to add teams or hogs manually you have to do it here. |
91 If you want to add teams or hogs manually you have to do it here. If you want to draw your own map using `AddPoint` and `FlushPoints`, you have to do this within this function as well. |
92 |
92 |
93 === <tt>onGameStart()</tt> === |
93 === <tt>onGameStart()</tt> === |
94 |
94 |
95 <blockquote>This function is called when the first round starts. |
95 <blockquote>This function is called when the first round starts. |
96 </blockquote> |
96 </blockquote> |
758 * 4: long, horizontal |
758 * 4: long, horizontal |
759 * 5: long, decreasing right |
759 * 5: long, decreasing right |
760 * 6: long, vertical |
760 * 6: long, vertical |
761 * 7: long, increasing right |
761 * 7: long, increasing right |
762 </blockquote> |
762 </blockquote> |
|
763 |
|
764 |
|
765 ==== <tt>!AddPoint(x, y [, width [, erase] ])</tt> (0.9.21) ==== |
|
766 This function is used to draw your own maps using Lua. The maps drawn with this are of type “hand-drawn”. |
|
767 |
|
768 The function takes a `x`,`y` location, a `width` (means start of a new line) and `erase` (if `false`, this function will draw normally, if `true`, this function will erase drawn stuff). |
|
769 |
|
770 This function must be called within `onGameInit`, where `MapGen` has been set to `mgDrawn`. You also should call `FlushPoints` when you are finished with drawing. |
|
771 |
|
772 ==== <tt>!FlushPoints()</tt> (0.9.21) ==== |
|
773 Makes sure that all the points/lines specified using `AddPoint` are actually applied to the map. This function must be called within `onGameInit`. |
763 |
774 |
764 === Current hedgehog === |
775 === Current hedgehog === |
765 |
776 |
766 ==== <tt>!GetCurAmmoType()</tt> (0.9.16) ==== |
777 ==== <tt>!GetCurAmmoType()</tt> (0.9.16) ==== |
767 |
778 |