<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
 <channel>
  <atom:link href="https://smaugmuds.afkmods.com/index.php?a=rssfeed&amp;t=4871" rel="self" type="application/rss+xml" />
  <title>SmaugMuds - Topic: health bar code not displaying correctly. why?</title>
  <link>https://smaugmuds.afkmods.com/index.php?a=rssfeed&amp;t=4871</link>
  <description>The largest Smaug community resource site. - </description>
  <language>en</language>
  <generator>SmaugMuds</generator>
  <ttl>60</ttl>
  <item>
   <title>health bar code not displaying correctly. why?</title>
   <link>https://smaugmuds.afkmods.com/topic/health-bar-code-not-displaying-correctly-why-4871/&amp;p=23797#p23797</link>
   <description>Nick Gammon helped out... the equation would not work unless it was changed as such [code]float value = 100.0 * ((float) ch-&amp;gt;hit / (float) ch-&amp;gt;max_hit) ; [/code] </description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/health-bar-code-not-displaying-correctly-why-4871/&amp;p=23797#p23797</guid>
   <pubDate>Wed, 21 Mar 2018 12:50:33 CDT</pubDate>
   <category>Coding</category>
   <author>nobody@example.com (joeyfogas)</author>
  </item>
  <item>
   <title>health bar code not displaying correctly. why?</title>
   <link>https://smaugmuds.afkmods.com/topic/health-bar-code-not-displaying-correctly-why-4871/&amp;p=23796#p23796</link>
   <description>i tried it with float value.. still same outcome [code] send_to_char(&amp;quot;[&amp;quot;,ch); float value = 100.0 * (ch-&amp;gt;hit/ch-&amp;gt;max_hit) ; for (start = 1; start &amp;lt;= 100; start++ ) { if (start &amp;lt;= value ) send_to_char(&amp;quot;|&amp;quot;,ch); else send_to_char(&amp;quot; &amp;quot;,ch); } </description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/health-bar-code-not-displaying-correctly-why-4871/&amp;p=23796#p23796</guid>
   <pubDate>Wed, 21 Mar 2018 02:16:52 CDT</pubDate>
   <category>Coding</category>
   <author>nobody@example.com (joeyfogas)</author>
  </item>
  <item>
   <title>health bar code not displaying correctly. why?</title>
   <link>https://smaugmuds.afkmods.com/topic/health-bar-code-not-displaying-correctly-why-4871/&amp;p=23795#p23795</link>
   <description>can anyone help out and tell me why this code doesn&#039;t display right? it is supposed to be a healthbar based on health percentage [code] send_to_char(&amp;quot;[&amp;quot;,ch); int value = 100 * (ch-&amp;gt;hit/ch-&amp;gt;max_hit) ; for (start = 1; start &amp;lt;= 100; start++ ) { if (start &amp;lt;= value ) send_to_char(&amp;quot;|&amp;quot;,ch); else </description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/health-bar-code-not-displaying-correctly-why-4871/&amp;p=23795#p23795</guid>
   <pubDate>Wed, 21 Mar 2018 01:11:49 CDT</pubDate>
   <category>Coding</category>
   <author>nobody@example.com (joeyfogas)</author>
  </item>
 </channel>
</rss>
