15 Nov, 2016, Valo wrote in the 1st comment:
Votes: 0
Hey guys. I'm running on MUX 2.9.1.8 and I'm trying to get a code to display a list of FCs into separate pages with like 20 or 25 listed on each page so they're not spamming with the whole list. The code I have is below for the listing. I've tried to figure it out and have nothing. Thanks for any help.

&c.list fc list=$+fc/list:

@pemit %#=
[setq(
0,setinter(
lwho(),u(fc-list))
)]

[center(<%b[ansi(h,Featured Characters List)]%b>,78,-)]

%r%b
[ljust(Avail,6)]
[ljust(Name,15)]
[ljust(Race,10)]
[ljust(Gender,8)]
[ljust(Age,5)]
[ljust(Occupation,17)]
[ljust(Show,10)]

%r[repeat(-,78)]

[iter(
u(fc-list),%r[setq(1,match(%q0,##))]

[space(2)]

[ljust(
[switch(u(##/_status),open,ansi(hg,*),pending,ansi(hy,*),taken,ansi(hr,*))]
[switch(hasflag(##,fachead),1,ansi(hc,~),)]
,5)]
[ljust(name(##),15)]
[ljust(u(##/_race),10)]
[ljust(u(##/sex),8)]
[ljust(u(##/_age),5)]
[ljust(u(##/_occupation),20)])]
[ljust(u(##/_show),10)]

%r[repeat(-,78)]
15 Nov, 2016, quixadhal wrote in the 2nd comment:
Votes: 0
Ugh, if you want anyone with MUX experience to help, please format that mess so it's at least semi-readable. Indentation and formatting should NOT be optional.
0.0/2