# lib_general function library

Dependencies: install_sfo.tpa, lib_eff.tpa, lib_evaluate.tpa, lib_internal.tpa, lib_itm.tpa, lib_list.tpa, lib_macro.tpa, lib_patch.tpa, lib_spl.tpa, lib_table.tpa, lib_text.tpa, lib_tools.tpa

## Description

## Public Functions

add_animation_entry(minimum:i, animation:s, ini:s, location:s, locbase:s, locabs:s)=() action

add_silent_sectype(sectype:s)=(sectype_value:s) action

add_to_statdesc(start_row:i=190, string:s="-1", bam:s="****")=(stat_num:s) action

add_to_statdesc_helper(start_row:i, rowcount:i)=(stat_num:s, row:s) patch

apply_to_strrefs(arguments:s, filename:s, file_ext:s)=() patch

apply_to_strrefs_2da(arguments:s)=() patch

apply_to_strrefs_opcode_helper(file_ext:s)=(opcode_loc:s) patch

apply_to_strrefs_script(arguments:s)=() patch

clone_extend(inline:i, arguments:s, top:s="yes", location:s, locbase:s)=() action

clone_script(script:s)=() action

compile_rename(file:s, files:s, location:s, locbase:s)=() action

compile_ssl_output(script:s)=() action

COMPILE_SSL_TO_BCS(script:s, location:s, variables:s, rename_to:s, inline:s, booleans:s)=() action

compile_ssl_to_bcs_core(skip_bcs:i, script:s, variables:s, booleans:s, location:s, locbase:s, locabs:s, rename_to:s, inline:s)=() action

count_files(file_ext:s, tv:s="no")=(value:s) action

edit_whatever(tv:i, allow_missing:i, files:s, file:s, edits:s, editstring:s, location:s, locbase:s, locabs:s)=() action

extend(tv:i, allow_missing:i, file:s, files:s, script:s, top:s, bottom:s, location:s, locbase:s, locabs:s, inline:s="no", ssl:s="no", variables:s)=() action

implement_line_if()=() patch

increment_number_entries(arguments:i, file_ext:s, entry_type:s)=() patch

increment_offset(arguments:i, file_ext:s, entry_type:s)=() patch

install(overwrite:i=1, file:s, files:s, location:s, locbase:s, inline:s="no", postfix:s)=() action

level_at_xp(xp:i, num_classes:i=1, class:s)=(level:s) action

level_at_xp_cap(class:s, parent_class:s)=(level:s) action

level_at_xp_core(min_level:i=1, xp:i, rownum:i, colcount:i=40)=(level:s) patch

log_resource_name(arguments:s="SFOlog")=() patch

merge_scripts(top:s, bottom:s, script:s)=() action

read_file_into_array(file:s, location:s, locbase:s, locabs:s, inline:s="no")=(file_length:s, file_contents:a) action

resolve_splprot_entry(stat:i, value:i, relation_number:i, relation:s)=(value:s) action

return_number_entries(file_ext:s, entry_type:s)=(value:s) patch

return_offset(offset_num:i, file_ext:s, entry_type:s)=(value:s, offset_loc:s) patch

sort_ids(ids:s)=() action

ssl_to_baf(script:s, location:s, locbase:s, locabs:s, variables:s, inline:s, rename_to:s, booleans:s)=() action

ssl_to_bcs(script:s, location:s, locbase:s, locabs:s, variables:s, booleans:s, rename_to:s, inline:s)=() action

swap_text(tv:i, allow_missing:i, files:s, file:s, swaps:s, postfix:s)=() action

swap_text_core(arguments:s)=() patch

swap_text_core2(arguments:s)=() patch

write_array_into_file(file:s, file_contents:s)=() action