<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/6473" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2003-12-25T10:12:22-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/6473</id>

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-12-25T10:12:22-04:00</updated>

		<published>2003-12-25T10:12:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31780#p31780</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31780#p31780"/>
		<title type="html"><![CDATA[trivia.tcl question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31780#p31780"><![CDATA[
hey all,<br>i run the trivia.tcl from souperman and made some adjustments to encrease the scores per correct answer.<br>Now i want to display the time after each hint given like:hint .... val points 45 seconds remaining and the points should decrease at each hint <br><br>i will set the code here that i've entered in the tcl <br><br>fore the bonusquestions is the code:<br>proc get_rand_value {} {<br>  set rnd [rand 79]<br>  set rnd [expr $rnd+30]<br>  if {$rnd &lt; 101} {<br>      set val [expr [expr $rnd/10]+450]<br>      } else {<br>      switch $rnd {<br>        101 {set val 1000}<br>        102 {set val 1500}<br>        103 {set val 2000}<br>        104 {set val 2500}<br>        105 {set val 3000}<br>        106 {set val 3500}<br>        107 {set val 4000}<br>        108 {set val 5000}<br>        default {set val 0}<br>        }<br>      }<br>  unset rnd<br>  return $val<br><br>For the msg after the hints i allready have this:<br><br>tggamemsg "[tgcolqhead]===== vraag [expr $tgquestionnumber+1]/$tgquestionstotal [expr $tghintnum?"(hint $tghintnum/$tgmaxhintcurrent)":""] ====="<br> if {$tgalwaysshowq==1||$tghintnum==0} {<br>  tggamemsg "[tgcolqbody][expr $tgcapsquestion?"[strupr $tgcurrentquestion]":"$tgcurrentquestion"]"<br> }<br> tggamemsg "[tgcolhint]Hint: [expr $tgcapshint?"[strupr [join $_hint]]":"[join $_hint]"]\00300 \00312,00  [join $qval]\00312,00 punten"<br> set tghinttimer [utimer $tgtimehint tghint]<br><br>is there someone who nows how i can set the options i'v displayed at the beginning of this tread ???<br><br>Thx in advance<p>Statistics: Posted by Guest — Thu Dec 25, 2003 10:12 am</p><hr />
]]></content>
	</entry>
	</feed>
