Thanks for pointing me in the right direction. Believe it or not, I did try both
ashref and searching the wiki. Unfortunately, I assumed that any function serving this purpose would work across chat channels, so I tried something like:
Code:
> ashref chat
void chat_clan( string )
void chat_clan( string, string )
void chat_macro( string )
void chat_notify( string, string )
void chat_private( string, string )
int [item] get_chateau( )
> ashref channel
> ashref online
boolean is_online( string )
... and found nothing. Is it safe to assume by implication that there is
not similar functionality for any channel other than /clan?
Also - and this is unrelated to the thread title, so I hope you'll indulge me - why doesn't this work?
Code:
boolean [string] clannies = who_clan();
sort clannies by random(100);
foreach clannie in clannies {
print(clannie);
}
I don't want to prank people according to alphabetical priority, so I tried randomizing them.
The wiki page on data structures > sort seems to indicate that random(int) should work. But I still get an alphabetized map. Is it not possible to randomize a map that's not indexed by number?