SS1984 - Modules - TypesDefine Details

code/__HELPERS/_string_lists.dm

pick_listPick a random string from a JSON string file by key
pick_list_weightedPick a random string from a JSON string file with weighted selection
pick_list_replacementsPick a string with @pick(SOME_KEY) replacements for nested random selection
json_loadLoad and parse a JSON file
/proc/strings_replacementGet a random string with nested @pick() replacements
/proc/stringsGet strings array from a JSON string file
/proc/strings_subkey_lookupCallback for regex replacement in strings_replacement
/proc/load_strings_fileLoad and cache a JSON string file

Define Details

json_load

Load and parse a JSON file

pick_list

Pick a random string from a JSON string file by key

pick_list_replacements

Pick a string with @pick(SOME_KEY) replacements for nested random selection

pick_list_weighted

Pick a random string from a JSON string file with weighted selection