LibAlts-1.0

API / LibAlts-1.0

:DeleteAlt(main, alt)

Remove an Main Alt relationship and fire a callback for the disassociation.

Parameters

main
Name of the Main character
alt
Name of the Alt being removed


:GetAllMains()

Get a list of all main characters

Return value

list of all main characters


:GetAlt (main)

Get a list of alts for a given character

Parameters

main
Name of the main character

Return value

list list of alts


:IsAlt(alt)

Test if a character is a alt

Parameters

alt
Name of the character

Return value

boolean is this a alt character


:IsMain(main)

Test if a character is a main

Parameters

main
Name of the character

Return value

boolean is this a main character


:IsMain (alt)

Get main for a given alt character

Parameters

alt
Name of the alt character

Return value

string the main character


:SetAlt (main, alt)

Register a Main<->Alt relationship

Parameters

main
Name of the main character
alt
Name of the alt character


You must login to post a comment. Don't have an account? Register to get one!