replace %db.uiName with getSafeVariableName(%db.uiName) if you're going to have prints with spaces, dashes, etc because it could mess up the variable, this replaces - with DASH, spaces with underscores, and more.
then $customPrint[getSafeVariableName("Your print ui name here")] = "PrintID";
yes getSafeVariableName(%string) is part of the game