M | |
MakeKeyValues, otlib | |
Max, otlib. | |
MaxRepeats, otlib. | |
Min, otlib. | |
MinRepeats, otlib. | |
P | |
Parent | |
Parse | |
ParseArgs, otlib | |
ParseKeyValues, otlib | |
R | |
Register, otlib. | |
Remove, otlib. | |
RemoveDuplicateValues, otlib | |
Round, otlib | |
RoundTo, otlib. | |
RTrim, otlib | |
S | |
SetFromList, otlib | |
SetLevel, otlib. | |
SetParameterNum, otlib. | |
SetVersion, otlib. | |
ShortUsage, otlib. | |
SplitCommentHeader, otlib | |
Start, otlib. | |
Stop, otlib. | |
StoredExpression, otlib | |
StripComments, otlib | |
T | |
TakesRestOfLine, otlib. | |
ThrowBadArg, otlib | |
ToBool, otlib | |
ToString | |
Trim, otlib | |
U | |
UnionByKey, otlib | |
UnionByKeyI, otlib | |
UnionByValue, otlib | |
UntrackedCopy, otlib. | |
V | |
Vardump, otlib |
Makes a key values string from a table.
function MakeKeyValues( t )
Sets the maximum number for this argument.
function NumParam:Max( max )
Set the maximum number of times this argument is allowed to repeat.
function BaseParam:MaxRepeats( max_repeats )
Sets the minimum number for this argument.
function NumParam:Min( min )
Set the minimum number of times this argument must repeat.
function BaseParam:MinRepeats( min_repeats )
Gets the parent of a clone.
function Parent( clone )
Parses a string into the appropriate type for this parameter.
function BaseParam:Parse( user, arg )
See otlib.BaseParam.Parse.
function NumParam:Parse( user, arg )
This is similar to Explode with ( str, “%s+” ) except that it will not split up words within quotation marks.
function ParseArgs( args )
Parses a key value formatted string into a table.
function ParseKeyValues( str )
Registers a new access object.
function access:Register( tag, ... )
Delets a row from the database.
function DataTable:Remove( primary_key )
Removes any duplicate values from a list.
function RemoveDuplicateValues( list, in_place )
Rounds a number to a given decimal place.
function Round( num, places )
Sets what to round this argument too during Parse.
function NumParam:RoundTo( round_to )
Exactly like Trim except it only trims the right side.
function RTrim( str )
Creates a set from a list.
function SetFromList( list )
Sets the level for this invalid condition, see Denied Levels.
function InvalidCondition:SetLevel( level )
Sets the parameter number the invalid condition occured on.
function InvalidCondition:SetParameterNum( num )
Set the version and version suffix of the plugin.
function Plugin:SetVersion( version, version_suffix )
Used to give information about the usage on this parameter as concisely as possible.
function BaseParam:ShortUsage( user )
Splits a comment header in a string.
function SplitCommentHeader( str, comment_prefix )
Start the plugin.
function Plugin:Start()
Stop the plugin.
function Plugin:Stop()
Creates an object that will store an expression.
function StoredExpression()
Strips comments from a string.
function StripComments( str, line_comment )
Set the argument to take the rest of whatever arguments are available.
function BaseParam:TakesRestOfLine( takes_rest_of_line )
“Throws” an error similar to the lua standard error of “bad argument #x to fn_name (type expected, got type)”.
function ThrowBadArg( argnum, fn_name, expected, data, throw_level )
Converts a boolean, nil, string, or number to a boolean value.
function ToBool( value )
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 BaseParam:ToString()
See otlib.BaseParam.ToString.
function NumParam:ToString()
Trims leading and tailing whitespace from a string.
function Trim( str )
Merges two tables by key.
function UnionByKey( table_a, table_b, in_place )
Exactly the same as UnionByKey except that it uses fori instead of pairs.
function UnionByKeyI( table_a, table_b, in_place )
Gets the union of two lists by value.
function UnionByValue( list_a, list_b, in_place )
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 DataTable:UntrackedCopy( data )
Returns useful, readable information about variables.
function Vardump( ... )