Code: Select all
#ALIAS addalt {#SAY addalt}
#ALIAS delalt {#SAY delalt}
#ALIAS alts {#SAY @%1}
#TRIG {~] ({@MainList})} {#T- Alt;#SAY %ansi(green)~[%ansi(cyan) Alts %ansi(green)~] %ansi(cyan)@%1;#T+ Alt} "Alt"
#TRIG {addalt %1 %2} {#ADDITEM MainList %proper(%1);#ADDITEM MainList %proper(%2);#ADDITEM %proper(%1) %proper(%1);#ADDITEM %proper(%1) %proper(%2);#ADDITEM %proper(%2) %proper(%1);#ADDITEM %proper(%2) %proper(%2);#FORALL @%1 {#ADDITEM %proper(%i) %proper(%2)};#FORALL @%1 {#ADDITEM %proper(%2) %proper(%i)};#FORALL @%2 {#ADDITEM %proper(%i) %proper(%1)};#FORALL @%2 {#ADDITEM %proper(%1) %proper(%i)};#SAY Character ADDED to Alt List.}
#TRIG {Delalt %1} {#FORALL @%1 {#DELITEM %i %1};#FORALL @%1 {#DELITEM %1 %i};#DELITEM Mainlist %1;#UNVAR %1}
How it works:
Type 'addalt <Char> <Alt>' (It doesn't matter which name comes first, alt or main char can go in either spot).
Type 'delalt <Alt>' to remove all listings of that alt.
Type 'alts <Char>' to manually call up a list of someone's alts.
Type 'Who' or 'Who ingroup' or any variation of the who command and it will automatically display a list of any alts you have added under that persons name.
Please note that the delalt command will only delete the name of that person from other listings if that alt being deleted has the complete list of all the other names associated with that person.
For best results, use the same main character every time for the person you are adding alts to.
WARNING: This trigger setup creates a variable for every character and every alt of every character. If you do not want your variable list to be incredibly long, do not use.
And that is that. Enjoy. :)