LuaGameplay: Add formatEngineString mention
authorWuzzy
Wed, 28 Jun 2023 22:16:01 +0000
changeset 2262 6dc92adc347a
parent 2261 55bd0ae9d187
child 2263 1050e4f78485
LuaGameplay: Add formatEngineString mention
LuaGameplay.wiki
--- a/LuaGameplay.wiki	Wed Jun 28 22:14:36 2023 +0000
+++ b/LuaGameplay.wiki	Wed Jun 28 22:16:01 2023 +0000
@@ -127,6 +127,8 @@
 AddCaption(GetEngineString("TMsgStrId", sidDraw), capcolDefault, capgrpGameState)
 </code>
 
+For engine strings that use placeholders like `%1`, you can use `formatEngineString` from the [LuaLibraryUtils `Utils` library].
+
 == Ammo ==
 === <tt>!SetAmmo(ammoType, count, probability, delay, numberInCrate)</tt> ===
 This updates the settings (initial ammo, crate probability, etc.) for a specified [AmmoTypes ammo type]. This must only be used in the `onAmmoStoreInit()` [LuaEvents event handler]. In other places, this function will not work.