Custom Variables

Custom variables is a feature that allows you to create and use your own variables. These variables can contain conditions that affect the output text.

How do Custom Variables Work?

How to Setup a Custom Variable

Example of use:

Examples

Replace Map Prefixes (Like de_ , cs_ , awp_)
  • If the map name contains de_ / cs_ / awp_ , this text will be removed

"Server.RemoveMapPrefix": [
      {
        "Value": "{Server.MapName}",
        "Operator": "~",
        "ValueToCheck": "de_",
        "ReplacementValue": "{Replace(de_)()}"
      },
      {
        "Value": "{Server.MapName}",
        "Operator": "~",
        "ValueToCheck": "cs_",
        "ReplacementValue": "{Replace(cs_)()}"
      },
      {
        "Value": "{Server.MapName}",
        "Operator": "~",
        "ValueToCheck": "awp_",
        "ReplacementValue": "{Replace(awp_)()}"
      }
    ]
Better Map Names
  1. If the map name is de_mirage, the resulting text will be MIRAGE

  2. If the map name contains nuke, the resulting text will be Nuke

  3. None of the previous conditions is met, the default map name will be displayed

"Server.BetterMapName": [
      {
        "Value": "{Server.MapName}",
        "Operator": "==",
        "ValueToCheck": "de_mirage",
        "ReplacementValue": "MIRAGE"
      },
      {
        "Value": "{Server.MapName}",
        "Operator": "~",
        "ValueToCheck": "nuke",
        "ReplacementValue": "Nuke"
      },
      {
        "ReplacementValue": "{Server.MapName}"
      }
    ]
Better Players Count
  1. If only bots are connected, the result will be: Only the Bots are connected

  2. If the server is empty, the result will be: Server Is Empty

  3. If the server is not empty, the result will be: e.g. 5/10

"Server.BetterPlayersCount": [
      {
        "Value": "{Server.OnlinePlayers}",
        "Operator": "==",
        "ValueToCheck": "{Server.OnlineBots}",
        "ReplacementValue": "Only the Bots are connected"
      },
      {
        "Value": "{Server.OnlinePlayers}",
        "Operator": "==",
        "ValueToCheck": "0",
        "ReplacementValue": "Server Is Empty"
      },
      {
        "Value": "{Server.OnlinePlayers}",
        "Operator": ">",
        "ValueToCheck": "0",
        "ReplacementValue": "{Server.OnlinePlayers}/{Server.MaxPlayers}"
      }
    ]

Last updated