LuaGameplay.wiki
changeset 2256 54f89e50129d
parent 2255 3b53cfb51850
child 2260 e9eccb1eeac4
equal deleted inserted replaced
2255:3b53cfb51850 2256:54f89e50129d
   111 
   111 
   112 -- Erase a circle of land without side effects
   112 -- Erase a circle of land without side effects
   113 Explode(500, 100, 100, EXPLNoDamage + EXPLDoNotTouchAny + EXPLNoGfx)
   113 Explode(500, 100, 100, EXPLNoDamage + EXPLDoNotTouchAny + EXPLNoGfx)
   114 </code>
   114 </code>
   115 
   115 
   116 == <tt>!GetEngineString(stringType, msgId)</tt> (1.1.0-dev) ==
   116 === <tt>!GetEngineString(stringType, msgId)</tt> (1.1.0-dev) ===
   117 Returns a string that is used in the engine in localized form. For example, "Round draw!". Useful to avoid repeating common gameplay-relevant texts in Lua which reduces redundancy.
   117 Returns a string that is used in the engine in localized form. For example, "Round draw!". Useful to avoid repeating common gameplay-relevant texts in Lua which reduces redundancy.
   118 
   118 
   119  * `stringType`: One of:
   119  * `stringType`: One of:
   120   * `"TMsgStrId"` for basic messages (section `01` in `en.txt`) or
   120   * `"TMsgStrId"` for basic messages (section `01` in `en.txt`) or
   121   * `"TGoalStrId"` for strings used to describe game rules in the mission panel (section `05` in `en.txt`) 
   121   * `"TGoalStrId"` for strings used to describe game rules in the mission panel (section `05` in `en.txt`)