Skip to content

SetString

EnashMods edited this page Feb 3, 2021 · 13 revisions

Sets the string associated with a stringID in a language. Remember to put the string value in quotes if it contains spaces. If the string does not exist, it will be added.

Usage

SetString <language> <stringid> <value>

  • language - the language this string is for.
  • stringid - the name of the stringid you would like the set.
  • value - the value you would like to give the stringid.

Unicode Characters

Along side the normal use of setting a string to a word or phrase, you can also use predefined Unicode characters to refer to specific things in the game. For instance, there is a Unicode character \uE461 that is presented in game as either "Hold" if your input method is set to controller, or "Press" if your input method is set to keyboard/mouse. Following is a table that defines all known Unicode string characters, and their resulting text.

Unicode Character String
\uE461 Hold/Press
\uE45F Activation Key

Font Package Unicode

In addition to the built-in Unicode characters tied to game functionality, you can also refer to an image in the font package by Unicode character. To find the specific Unicode desired, open up the font package with Zedds Font Packager (https://github.com/Lord-Zedd/FontPackager), browse to the image in the font that you want (weapon schematics are typically stored in conduit-18, medals in conduit-16) and hover your mouse over the image. The first line that pops up in the description box titled 'Unicode:' is the line you're after, the text beginning with E followed by 3 numbers is the Unicode character reference. The Energy Sword, for example, is Unicode character E119.

Font Package Example

Notes

When using a Unicode character in a string, the '\u' portion simply declares the following text to be a Unicode character, while the 'E000' portion is the actual Unicode character reference.

To split the line of the resulting string printed in game, for instance if you want to put your font image on a new line below the text "Hold E to pick up" just use |n, no spaces before or after.

Example

setstring english pr_pickup "\uE461 \uE45F to pick up|n\uE12A" E461 and E45F being "Press" and "<E>" if you're on mouse+keyboard with your default activation key set to E. |n splits the line and E12A is a font package reference to an image of the plasma rifle schematic.

The resulting string in game looks a little something like this:

Example image

Clone this wiki locally