<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.melanarchy.org/index.php?action=history&amp;feed=atom&amp;title=TF_Run_Counter</id>
	<title>TF Run Counter - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://www.melanarchy.org/index.php?action=history&amp;feed=atom&amp;title=TF_Run_Counter"/>
	<link rel="alternate" type="text/html" href="http://www.melanarchy.org/index.php?title=TF_Run_Counter&amp;action=history"/>
	<updated>2026-04-04T07:22:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.33.0</generator>
	<entry>
		<id>http://www.melanarchy.org/index.php?title=TF_Run_Counter&amp;diff=18556&amp;oldid=prev</id>
		<title>Cuendillar: Link to parent category</title>
		<link rel="alternate" type="text/html" href="http://www.melanarchy.org/index.php?title=TF_Run_Counter&amp;diff=18556&amp;oldid=prev"/>
		<updated>2006-02-27T20:47:52Z</updated>

		<summary type="html">&lt;p&gt;Link to parent category&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 20:47, 27 February 2006&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l65&quot; &gt;Line 65:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 65:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  /def -i gt_stats = /set xp_total=$[xp_gain - xp_death_loss - xp_flee_loss] %;\&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  /def -i gt_stats = /set xp_total=$[xp_gain - xp_death_loss - xp_flee_loss] %;\&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   gtell Run XP: $[xp_total], Gained XP: $[xp_gain], Kills: $[xp_kill_counter], Avg: $[xp_total/xp_kill_counter].&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   gtell Run XP: $[xp_total], Gained XP: $[xp_gain], Kills: $[xp_kill_counter], Avg: $[xp_total/xp_kill_counter].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category: TinyFugue Scripting]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Cuendillar</name></author>
		
	</entry>
	<entry>
		<id>http://www.melanarchy.org/index.php?title=TF_Run_Counter&amp;diff=18554&amp;oldid=prev</id>
		<title>Cuendillar: Basic kill + gold counters for tinyfugue</title>
		<link rel="alternate" type="text/html" href="http://www.melanarchy.org/index.php?title=TF_Run_Counter&amp;diff=18554&amp;oldid=prev"/>
		<updated>2006-02-27T20:45:39Z</updated>

		<summary type="html">&lt;p&gt;Basic kill + gold counters for tinyfugue&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Basic run counter I've used for years.  It doesn't track damage verbs etc, but could be extended to do that.&lt;br /&gt;
&lt;br /&gt;
 ;; Initial value, 0 in this case&lt;br /&gt;
 ;;/set xp_total=0&lt;br /&gt;
 ;;/set xp_gain=0&lt;br /&gt;
 ;;/set xp_flee_loss=0&lt;br /&gt;
 ;;/set xp_death_loss=0&lt;br /&gt;
 ;;/set xp_kill_counter=0&lt;br /&gt;
 ;;/set xp_flee_counter=0&lt;br /&gt;
 ;;/set xp_death_counter=0&lt;br /&gt;
 ;;/set gold_total=0&lt;br /&gt;
 ;;/set gold_counter=0&lt;br /&gt;
 &lt;br /&gt;
 ;; Reset macros&lt;br /&gt;
 /def run_reset = /xp_reset %; /gold_reset&lt;br /&gt;
 /def -i xp_reset = /set xp_total=0 %; /set xp_kill_counter=0 %; /set xp_gain=0 %; /set xp_death_counter=0 %; /set xp_death_loss=0 %; /set xp_flee_counter=0 %; /set xp_flee_loss=0&lt;br /&gt;
 /def -i gold_reset = /set gold_total=0 %; /set gold_counter=0&lt;br /&gt;
 /def runon = /set run_on=true&lt;br /&gt;
 /def runoff = /set run_on=false&lt;br /&gt;
 /if (run_on == true)&lt;br /&gt;
 ;; Experience counter&lt;br /&gt;
 /def -i -t'You receive * experience points.' xp_counter_macro = \&lt;br /&gt;
  /set xp_gain=$[xp_gain + {3}] %;\&lt;br /&gt;
  /set xp_kill_counter=$[xp_kill_counter + 1] %; \&lt;br /&gt;
&lt;br /&gt;
 ;; Death counter&lt;br /&gt;
 /def -i -t'Death sucks * experience.' xp_death_macro = \&lt;br /&gt;
  /set xp_death_loss=$[xp_death_loss - {3}] %;\&lt;br /&gt;
  /set xp_death_counter=$[xp_death_counter + 1] %; \&lt;br /&gt;
&lt;br /&gt;
 ;; Flee checker&lt;br /&gt;
 /def -i -t'You lose * experience points.' flee_loss_macro = \&lt;br /&gt;
  /set xp_flee_loss=$[xp_flee_loss - {3}] %; \&lt;br /&gt;
  /set xp_flee_counter=$[xp_flee_counter + 1] %; \&lt;br /&gt;
&lt;br /&gt;
 ;; Manually subtract XP.&lt;br /&gt;
 /def -i sub_xp = /set xp_total=$[xp_total - {1}] %; \&lt;br /&gt;
        /echo XP Total set to $[xp_total]&lt;br /&gt;
&lt;br /&gt;
 ;; Manually add XP.&lt;br /&gt;
 /def -i add_xp = /set xp_total=$[xp_total + {1}] %; \&lt;br /&gt;
        /echo XP Total set to $[xp_total]&lt;br /&gt;
&lt;br /&gt;
 ;; Gold counter&lt;br /&gt;
 /def -i -mregexp -t'Your share is *' coin_counter_macro = \&lt;br /&gt;
  /set gold_total=$[gold_total + {9}] %;\&lt;br /&gt;
  /set gold_counter=$[gold_counter + 1]&lt;br /&gt;
&lt;br /&gt;
 /endif&lt;br /&gt;
 &lt;br /&gt;
 /def -i run_stats = /set xp_total=$[xp_gain - xp_death_loss - xp_flee_loss] %; \&lt;br /&gt;
         /echo *********************** %; \&lt;br /&gt;
         /echo * Run totals %; \&lt;br /&gt;
                 /echo *********************** %; \&lt;br /&gt;
                 /echo * Total XP Gained:  $[xp_total] %; \&lt;br /&gt;
                 /echo * Kill XP Gained:   $[xp_gain] %; \&lt;br /&gt;
                 /echo * Death Losses:     $[xp_death_loss] %; \&lt;br /&gt;
                 /echo * Flee Losses:      $[xp_flee_loss] %; \&lt;br /&gt;
                 /echo * Mobs killed:      $[xp_kill_counter] %; \&lt;br /&gt;
                 /echo * Avg XP per kill:  $[xp_total/xp_kill_counter] %; \&lt;br /&gt;
                 /echo * ----- %; \&lt;br /&gt;
                 /echo * Gold collected:   $[gold_total] %; \&lt;br /&gt;
                 /echo ***********************&lt;br /&gt;
&lt;br /&gt;
 /def -i gt_stats = /set xp_total=$[xp_gain - xp_death_loss - xp_flee_loss] %;\&lt;br /&gt;
  gtell Run XP: $[xp_total], Gained XP: $[xp_gain], Kills: $[xp_kill_counter], Avg: $[xp_total/xp_kill_counter].&lt;/div&gt;</summary>
		<author><name>Cuendillar</name></author>
		
	</entry>
</feed>