Function Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
M
 MakeKeyValues, otlib
 Max, otlib.NumParam
 MaxRepeats, otlib.BaseParam
 Min, otlib.NumParam
 MinRepeats, otlib.BaseParam
P
 Parent
 Parse
 ParseArgs, otlib
 ParseKeyValues, otlib
R
 Register, otlib.access
 Remove, otlib.DataTable
 RemoveDuplicateValues, otlib
 Round, otlib
 RoundTo, otlib.NumParam
 RTrim, otlib
S
 SetFromList, otlib
 SetLevel, otlib.InvalidCondition
 SetParameterNum, otlib.InvalidCondition
 SetVersion, otlib.Plugin
 ShortUsage, otlib.BaseParam
 SplitCommentHeader, otlib
 Start, otlib.Plugin
 Stop, otlib.Plugin
 StoredExpression, otlib
 StripComments, otlib
T
 TakesRestOfLine, otlib.BaseParam
 ThrowBadArg, otlib
 ToBool, otlib
 ToString
 Trim, otlib
U
 UnionByKey, otlib
 UnionByKeyI, otlib
 UnionByValue, otlib
 UntrackedCopy, otlib.DataTable
V
 Vardump, otlib
function MakeKeyValues(t)
Makes a key values string from a table.
function NumParam:Max(max)
Sets the maximum number for this argument.
function BaseParam:MaxRepeats(max_repeats)
Set the maximum number of times this argument is allowed to repeat.
function NumParam:Min(min)
Sets the minimum number for this argument.
function BaseParam:MinRepeats(min_repeats)
Set the minimum number of times this argument must repeat.
function Parent(clone)
Gets the parent of a clone.
Exactly the same as otlib.Parent.
function BaseParam:Parse(user,
arg)
Parses a string into the appropriate type for this parameter.
function NumParam:Parse(user,
arg)
See otlib.BaseParam.Parse.
function ParseArgs(args)
This is similar to Explode with ( str, “%s+” ) except that it will not split up words within quotation marks.
function ParseKeyValues(str)
Parses a key value formatted string into a table.
function access:Register(tag,
...)
Registers a new access object.
function DataTable:Remove(primary_key)
Delets a row from the database.
function RemoveDuplicateValues(list,
in_place)
Removes any duplicate values from a list.
function Round(num,
places)
Rounds a number to a given decimal place.
function NumParam:RoundTo(round_to)
Sets what to round this argument too during Parse.
function RTrim(str)
Exactly like Trim except it only trims the right side.
function SetFromList(list)
Creates a set from a list.
function InvalidCondition:SetLevel(level)
Sets the level for this invalid condition, see Denied Levels.
function InvalidCondition:SetParameterNum(num)
Sets the parameter number the invalid condition occured on.
function Plugin:SetVersion(version,
version_suffix)
Set the version and version suffix of the plugin.
function BaseParam:ShortUsage(user)
Used to give information about the usage on this parameter as concisely as possible.
function SplitCommentHeader(str,
comment_prefix)
Splits a comment header in a string.
function Plugin:Start()
Start the plugin.
function Plugin:Stop()
Stop the plugin.
function StoredExpression()
Creates an object that will store an expression.
function StripComments(str,
line_comment)
Strips comments from a string.
function BaseParam:TakesRestOfLine(takes_rest_of_line)
Set the argument to take the rest of whatever arguments are available.
function ThrowBadArg(argnum,
fn_name,
expected,
data,
throw_level)
“Throws” an error similar to the lua standard error of “bad argument #x to fn_name (type expected, got type)”.
function ToBool(value)
Converts a boolean, nil, string, or number to a boolean value.
function BaseParam:ToString()
Converts any options on this parameter that would be used for user permissions to a string that can be read in again later using FromString.
function NumParam:ToString()
See otlib.BaseParam.ToString.
function Trim(str)
Trims leading and tailing whitespace from a string.
function UnionByKey(table_a,
table_b,
in_place)
Merges two tables by key.
function UnionByKeyI(table_a,
table_b,
in_place)
Exactly the same as UnionByKey except that it uses fori instead of pairs.
function UnionByValue(list_a,
list_b,
in_place)
Gets the union of two lists by value.
function DataTable:UntrackedCopy(data)
One of the downsides of using DataTable is that data you get out of it (except GetAll) can’t be thrown throw an iterator like pairs because of the way we track changes to the table.
function Vardump(...)
Returns useful, readable information about variables.
Close