User:Cathbadh: Difference between revisions

From LiberationMUSH Wiki
(→‎Trod exit: Fix courtesy of Luu)
 
Line 1: Line 1:
=Code=
=Code=
==Trod exit==
==Trod exit==
This is a hack. An unabashed hack.
So I've cleaned this up to the point that I'm actually okay with it. It should be relatively future proof.


<pre>
<pre>
@set here=DREAMINGDESC: %t[u(basedesc)]%r%r%t%xm%xh[u(faedesc)]%xn%r%r[center(%bTrods%b,78,=)]%r [u(trods)]
@set here=&dreamingdesc here=[wrap(%t[u(basedesc)],78,l,,,1)]%r%r%xm%xh[wrap(%t[u(faedesc)],78,l,,,1)]%xn%r%r [center(%bTrods%b,76,-)]%r [u(trods)]
@set here=TRODS:  [trim(iter(lexits(me),if(get(##/trod),[setq(0, fullname(##))%xh[index(%q0,;,1,1) %xn<%xc[ucstr(index(%q0,;,2,1))]%xn>]])))]
@set here=TRODS:  [trim(iter(lexits(me),if(get(##/trod),[setq(0, fullname(##))%xh[index(%q0,;,1,1) %xn<%xc[ucstr(index(%q0,;,2,1))]%xn>]])))]
</pre>
</pre>

Latest revision as of 18:09, 27 June 2021

Code

Trod exit

So I've cleaned this up to the point that I'm actually okay with it. It should be relatively future proof.

@set here=&dreamingdesc here=[wrap(%t[u(basedesc)],78,l,,,1)]%r%r%xm%xh[wrap(%t[u(faedesc)],78,l,,,1)]%xn%r%r [center(%bTrods%b,76,-)]%r [u(trods)]
@set here=TRODS:  [trim(iter(lexits(me),if(get(##/trod),[setq(0, fullname(##))%xh[index(%q0,;,1,1) %xn<%xc[ucstr(index(%q0,;,2,1))]%xn>]])))]