sTiLe's Yahtzee patch

Install this after you install sTiLe's Yahtzee game (for TinyMUSH 3), and it should allow you to use it in TinyMUSH 2 and PennMUSH.

Author: Unknown
Category: Games
Commands: @pemit.

Instructions

Copy and paste the below code into a compatible MUSH or MUX.

MUSHCode for sTiLe's Yahtzee patch

&SHOW_CARD Yahtzee=$show card:@pemit %#=space(15)[parse(setr(7,sort(v(players))),center(mid(name(##),0,8),8))]%r[iter(1 2 3 4 5 6 7 8 9 10 11 12 13,%r[ljust(extract(v(categories),##,1,|),14)][map(setq(0,##)me/card_map,%q7)])]%r[ljust(Top Total,14)][iter(%q7,center(fold(add_fold,edit(extract(v(score_##),1,6,|),|,%b)),8))]%r[ljust(Bonus,14)][iter(%q7,center(v(bonus_##),8))]%r[ljust(Bottom Total,14)][iter(%q7,center(fold(add_fold,edit(extract(v(score_##),7,7,|),|,%b)),8))]%r[ljust(Grand Total,14)][iter(%q7,center(add(v(total_##),v(bonus_##)),8))]