Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Untitled

By Small Agouti, 11 Years ago, written in TCL/iTCL, viewed 760 times. This paste is a reply to Re: Re: Re: Re: Re: Re: Re: Re: Re: Untitled by Whipped Tern
URL http://pb.stoleyour.com/view/e101cd3a Embed
Download Paste or View RawExpand paste to full width of browser
  1. # Set up color dict
  2. set serverColors {"Red" "00304" "Green" "00303" "Blue" "00302"}
  3. # Build output string
  4. set output ""
  5. foreach world $worlds {
  6.         # Get name, score, and color for this server
  7.         set name [dict get $world "name"]
  8.         set score [dict get $world "score"]
  9.         set color [dict get $serverColors [dict get $world "color"]]
  10.        
  11.         # Append colorized server info
  12.         set output "$output\002\$color$name\003\002: \002$score\002, "
  13. }

Reply to "Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Untitled"

Here you can reply to the paste above