<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://packard.life/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Cuendillar</id>
	<title>AvatarWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://packard.life/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Cuendillar"/>
	<link rel="alternate" type="text/html" href="http://packard.life/index.php/Special:Contributions/Cuendillar"/>
	<updated>2026-04-03T19:05:01Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.33.0</generator>
	<entry>
		<id>http://packard.life/index.php?title=TF_Run_Counter&amp;diff=18556</id>
		<title>TF Run Counter</title>
		<link rel="alternate" type="text/html" href="http://packard.life/index.php?title=TF_Run_Counter&amp;diff=18556"/>
		<updated>2006-02-27T20:47:52Z</updated>

		<summary type="html">&lt;p&gt;Cuendillar: Link to parent category&lt;/p&gt;
&lt;hr /&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;br /&gt;
&lt;br /&gt;
[[Category: TinyFugue Scripting]]&lt;/div&gt;</summary>
		<author><name>Cuendillar</name></author>
		
	</entry>
	<entry>
		<id>http://packard.life/index.php?title=TF_Run_Counter&amp;diff=18554</id>
		<title>TF Run Counter</title>
		<link rel="alternate" type="text/html" href="http://packard.life/index.php?title=TF_Run_Counter&amp;diff=18554"/>
		<updated>2006-02-27T20:45:39Z</updated>

		<summary type="html">&lt;p&gt;Cuendillar: Basic kill + gold counters for tinyfugue&lt;/p&gt;
&lt;hr /&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>