# HG changeset patch # User Wuzzy # Date 1687990561 0 # Node ID 6dc92adc347a4b9c0c45560a28200a555d3a836d # Parent 55bd0ae9d187e4bab3b64d4d1a65b3a822d36d15 LuaGameplay: Add formatEngineString mention diff -r 55bd0ae9d187 -r 6dc92adc347a 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) +For engine strings that use placeholders like `%1`, you can use `formatEngineString` from the [LuaLibraryUtils `Utils` library]. + == Ammo == === !SetAmmo(ammoType, count, probability, delay, numberInCrate) === 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.