<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://drl.chaosforge.org/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://drl.chaosforge.org/w/index.php?action=history&amp;feed=atom&amp;title=Modding%3ATutorial%2FThe_Infinite_Arena%2FSource</id>
		<title>Modding:Tutorial/The Infinite Arena/Source - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://drl.chaosforge.org/w/index.php?action=history&amp;feed=atom&amp;title=Modding%3ATutorial%2FThe_Infinite_Arena%2FSource"/>
		<link rel="alternate" type="text/html" href="https://drl.chaosforge.org/w/index.php?title=Modding:Tutorial/The_Infinite_Arena/Source&amp;action=history"/>
		<updated>2026-04-14T00:48:14Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.21.1</generator>

	<entry>
		<id>https://drl.chaosforge.org/w/index.php?title=Modding:Tutorial/The_Infinite_Arena/Source&amp;diff=1954&amp;oldid=prev</id>
		<title>Game Hunter: forgot source tags</title>
		<link rel="alternate" type="text/html" href="https://drl.chaosforge.org/w/index.php?title=Modding:Tutorial/The_Infinite_Arena/Source&amp;diff=1954&amp;oldid=prev"/>
				<updated>2012-04-08T16:48:38Z</updated>
		
		<summary type="html">&lt;p&gt;forgot source tags&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 16:48, 8 April 2012&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;core.declare(&amp;quot;inf_arena&amp;quot;, {} )&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;core.declare(&amp;quot;inf_arena&amp;quot;, {} )&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 472:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 473:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; Level.player(38, 10)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; Level.player(38, 10)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;end&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&amp;lt;/source&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Game Hunter</name></author>	</entry>

	<entry>
		<id>https://drl.chaosforge.org/w/index.php?title=Modding:Tutorial/The_Infinite_Arena/Source&amp;diff=1953&amp;oldid=prev</id>
		<title>Game Hunter: revised for 0996</title>
		<link rel="alternate" type="text/html" href="https://drl.chaosforge.org/w/index.php?title=Modding:Tutorial/The_Infinite_Arena/Source&amp;diff=1953&amp;oldid=prev"/>
				<updated>2012-04-08T16:48:04Z</updated>
		
		<summary type="html">&lt;p&gt;revised for 0996&lt;/p&gt;
&lt;a href=&quot;https://drl.chaosforge.org/w/index.php?title=Modding:Tutorial/The_Infinite_Arena/Source&amp;amp;diff=1953&amp;amp;oldid=1391&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Game Hunter</name></author>	</entry>

	<entry>
		<id>https://drl.chaosforge.org/w/index.php?title=Modding:Tutorial/The_Infinite_Arena/Source&amp;diff=1391&amp;oldid=prev</id>
		<title>Game Hunter: more debugging</title>
		<link rel="alternate" type="text/html" href="https://drl.chaosforge.org/w/index.php?title=Modding:Tutorial/The_Infinite_Arena/Source&amp;diff=1391&amp;oldid=prev"/>
				<updated>2011-10-08T02:06:46Z</updated>
		
		<summary type="html">&lt;p&gt;more debugging&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 02:06, 8 October 2011&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 392:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 392:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; end&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; --used in .OnMortem()&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; --used in .OnMortem()&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;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;arena&lt;/del&gt;.result = &amp;quot;had enough of the gauntlet at wave &amp;quot;..Level.result()&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&amp;#160;&amp;#160; &amp;#160; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;inf_arena&lt;/ins&gt;.result = &amp;quot;had enough of the gauntlet at wave &amp;quot;..Level.result()&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;end&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;function &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;arena&lt;/del&gt;.OnMortem()&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;function &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;inf_arena&lt;/ins&gt;.OnMortem()&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; local kill = player.killedby --calls kill descriptions from beings&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; local kill = player.killedby --calls kill descriptions from beings&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;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; if &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;arena&lt;/del&gt;.result then kill = &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;arena&lt;/del&gt;.result end&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&amp;#160;&amp;#160; &amp;#160; if &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;inf_arena&lt;/ins&gt;.result then kill = &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;inf_arena&lt;/ins&gt;.result end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; player:mortem_print( &amp;quot; &amp;quot;..player.name..&amp;quot;, level &amp;quot;..player.explevel..&amp;quot; &amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; player:mortem_print( &amp;quot; &amp;quot;..player.name..&amp;quot;, level &amp;quot;..player.explevel..&amp;quot; &amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  ..&amp;quot; &amp;quot;..klasses[player.klass].name..&amp;quot;, &amp;quot;..kill )&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  ..&amp;quot; &amp;quot;..klasses[player.klass].name..&amp;quot;, &amp;quot;..kill )&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Game Hunter</name></author>	</entry>

	<entry>
		<id>https://drl.chaosforge.org/w/index.php?title=Modding:Tutorial/The_Infinite_Arena/Source&amp;diff=1389&amp;oldid=prev</id>
		<title>Game Hunter: debugging</title>
		<link rel="alternate" type="text/html" href="https://drl.chaosforge.org/w/index.php?title=Modding:Tutorial/The_Infinite_Arena/Source&amp;diff=1389&amp;oldid=prev"/>
				<updated>2011-10-08T02:00:11Z</updated>
		
		<summary type="html">&lt;p&gt;debugging&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 02:00, 8 October 2011&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 234:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 234:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;local corpseCells = {}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;local corpseCells = {}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;local function get_corpses&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;local function get_corpses&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;()&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; for i = 1, #cells do&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; for i = 1, #cells do&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; if cells[i] and cells[i].flags then&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; if cells[i] and cells[i].flags then&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Game Hunter</name></author>	</entry>

	<entry>
		<id>https://drl.chaosforge.org/w/index.php?title=Modding:Tutorial/The_Infinite_Arena/Source&amp;diff=1374&amp;oldid=prev</id>
		<title>Game Hunter: fixed some errors</title>
		<link rel="alternate" type="text/html" href="https://drl.chaosforge.org/w/index.php?title=Modding:Tutorial/The_Infinite_Arena/Source&amp;diff=1374&amp;oldid=prev"/>
				<updated>2011-10-03T18:06:40Z</updated>
		
		<summary type="html">&lt;p&gt;fixed some errors&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 18:06, 3 October 2011&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 231:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 231:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;--from Skulltag Arena, credit goes to yaflhdztioxo&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;--from Skulltag Arena, credit goes to yaflhdztioxo&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;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;--initializes table of cells that &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;a considered &lt;/del&gt;corpses&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;--initializes table of cells that &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;contains only &lt;/ins&gt;corpses&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;local corpseCells = {}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;local corpseCells = {}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 251:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 251:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; --changes corpses to blood&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; --changes corpses to blood&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; for i = 1, #corpseCells do&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; for i = 1, #corpseCells do&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;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; Generator.transmute(&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;CorpseCells&lt;/del&gt;[i], &amp;quot;bloodpool&amp;quot;)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; Generator.transmute(&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;corpseCells&lt;/ins&gt;[i], &amp;quot;bloodpool&amp;quot;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; end&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;end&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 292:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 292:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; --filled (and/or multiple) stacks&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; --filled (and/or multiple) stacks&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; pack.ammo = pack.ammomax&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; pack.ammo = pack.ammomax&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; part.amt = part.amt - pack.ammomax&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; end&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; player.inv:add(pack)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; player.inv:add(pack)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Game Hunter</name></author>	</entry>

	<entry>
		<id>https://drl.chaosforge.org/w/index.php?title=Modding:Tutorial/The_Infinite_Arena/Source&amp;diff=1365&amp;oldid=prev</id>
		<title>Game Hunter: fixed indentation</title>
		<link rel="alternate" type="text/html" href="https://drl.chaosforge.org/w/index.php?title=Modding:Tutorial/The_Infinite_Arena/Source&amp;diff=1365&amp;oldid=prev"/>
				<updated>2011-10-01T21:45:35Z</updated>
		
		<summary type="html">&lt;p&gt;fixed indentation&lt;/p&gt;
&lt;a href=&quot;https://drl.chaosforge.org/w/index.php?title=Modding:Tutorial/The_Infinite_Arena/Source&amp;amp;diff=1365&amp;amp;oldid=1364&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Game Hunter</name></author>	</entry>

	<entry>
		<id>https://drl.chaosforge.org/w/index.php?title=Modding:Tutorial/The_Infinite_Arena/Source&amp;diff=1364&amp;oldid=prev</id>
		<title>Game Hunter: woo source</title>
		<link rel="alternate" type="text/html" href="https://drl.chaosforge.org/w/index.php?title=Modding:Tutorial/The_Infinite_Arena/Source&amp;diff=1364&amp;oldid=prev"/>
				<updated>2011-10-01T21:12:35Z</updated>
		
		<summary type="html">&lt;p&gt;woo source&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
core.declare(&amp;quot;inf_arena&amp;quot;, {} )&lt;br /&gt;
&lt;br /&gt;
--enemy scaling for each wave: note that game difficulty will modify scaling independently&lt;br /&gt;
local mob_scale_factor = 0.5&lt;br /&gt;
--customize minLev/maxLev/weight of each enemy (defaults given)&lt;br /&gt;
--for names of beings, check Object IDs in the modding documentation&lt;br /&gt;
--be aware that JC auto-ends the game unless modified directly&lt;br /&gt;
local mobGenStats = {&lt;br /&gt;
	{ being = &amp;quot;former&amp;quot;,         minLev = 0,   maxLev = 12,  weight = 10 },&lt;br /&gt;
	{ being = &amp;quot;sergeant&amp;quot;,       minLev = 2,   maxLev = 15,  weight = 10 },&lt;br /&gt;
	{ being = &amp;quot;captain&amp;quot;,        minLev = 8,   maxLev = 15,  weight = 10 },&lt;br /&gt;
	{ being = &amp;quot;imp&amp;quot;,            minLev = 0,   maxLev = 17,  weight = 8  },&lt;br /&gt;
	{ being = &amp;quot;demon&amp;quot;,          minLev = 4,   maxLev = 20,  weight = 6  },&lt;br /&gt;
	{ being = &amp;quot;lostsoul&amp;quot;,       minLev = 6,   maxLev = 16,  weight = 10 },&lt;br /&gt;
	{ being = &amp;quot;knight&amp;quot;,         minLev = 9,   maxLev = 15,  weight = 6  },&lt;br /&gt;
	{ being = &amp;quot;cacodemon&amp;quot;,      minLev = 10,  maxLev = 50,  weight = 6  },&lt;br /&gt;
	{ being = &amp;quot;commando&amp;quot;,       minLev = 12,  maxLev = 17,  weight = 6  },&lt;br /&gt;
	{ being = &amp;quot;pain&amp;quot;,           minLev = 12,  maxLev = 17,  weight = 2  },&lt;br /&gt;
	{ being = &amp;quot;baron&amp;quot;,          minLev = 12,  maxLev = 200, weight = 6  },&lt;br /&gt;
	{ being = &amp;quot;arachno&amp;quot;,        minLev = 13,  maxLev = 50,  weight = 4  },&lt;br /&gt;
	{ being = &amp;quot;revenant&amp;quot;,       minLev = 13,  maxLev = 200, weight = 5  },&lt;br /&gt;
	{ being = &amp;quot;mancubus&amp;quot;,       minLev = 15,  maxLev = 200, weight = 7  },&lt;br /&gt;
	{ being = &amp;quot;arch&amp;quot;,           minLev = 16,  maxLev = 200, weight = 4  },&lt;br /&gt;
	{ being = &amp;quot;nimp&amp;quot;,           minLev = 30,  maxLev = 60,  weight = 8  },&lt;br /&gt;
	{ being = &amp;quot;ndemon&amp;quot;,         minLev = 40,  maxLev = 200, weight = 6  },&lt;br /&gt;
	{ being = &amp;quot;ncacodemon&amp;quot;,     minLev = 51,  maxLev = 200, weight = 6  },&lt;br /&gt;
	{ being = &amp;quot;narachno&amp;quot;,       minLev = 50,  maxLev = 200, weight = 5  },&lt;br /&gt;
	{ being = &amp;quot;narch&amp;quot;,          minLev = 90,  maxLev = 200, weight = 3  },&lt;br /&gt;
	{ being = &amp;quot;bruiser&amp;quot;,        minLev = 50,  maxLev = 200, weight = 6  },&lt;br /&gt;
	{ being = &amp;quot;lava_elemental&amp;quot;, minLev = 70,  maxLev = 200, weight = 1  },&lt;br /&gt;
	{ being = &amp;quot;shambler&amp;quot;,       minLev = 80,  maxLev = 200, weight = 3  },&lt;br /&gt;
	{ being = &amp;quot;agony&amp;quot;,          minLev = 80,  maxLev = 200, weight = 1  },&lt;br /&gt;
	{ being = &amp;quot;cyberdemon&amp;quot;,     minLev = 80,  maxLev = 200, weight = 1  },&lt;br /&gt;
	{ being = &amp;quot;arenamaster&amp;quot;,    minLev = 0,   maxLev = 0,   weight = 0  },&lt;br /&gt;
	{ being = &amp;quot;angel&amp;quot;,          minLev = 0,   maxLev = 0,   weight = 0  },&lt;br /&gt;
	{ being = &amp;quot;jc&amp;quot;,             minLev = 0,   maxLev = 0,   weight = 0  },&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
--item scaling for each wave&lt;br /&gt;
local item_scale_factor = 0.5&lt;br /&gt;
--customize level/weight of items (defaults given)&lt;br /&gt;
--for names of items, check Object IDs in the modding documentation&lt;br /&gt;
local itemGenStats = {&lt;br /&gt;
	--Commons&lt;br /&gt;
&lt;br /&gt;
	--weapons&lt;br /&gt;
	{ item = &amp;quot;knife&amp;quot;,        level = 1,  weight = 640 },&lt;br /&gt;
	{ item = &amp;quot;pistol&amp;quot;,       level = 1,  weight = 70  },&lt;br /&gt;
	{ item = &amp;quot;shotgun&amp;quot;,      level = 2,  weight = 180 },&lt;br /&gt;
	{ item = &amp;quot;ashotgun&amp;quot;,     level = 2,  weight = 160 },&lt;br /&gt;
	{ item = &amp;quot;dshotgun&amp;quot;,     level = 4,  weight = 100 },&lt;br /&gt;
	{ item = &amp;quot;chaingun&amp;quot;,     level = 5,  weight = 200 },&lt;br /&gt;
	{ item = &amp;quot;bazooka&amp;quot;,      level = 7,  weight = 200 },&lt;br /&gt;
	{ item = &amp;quot;plasma&amp;quot;,       level = 12, weight = 70  },&lt;br /&gt;
	--ammo/ammo packs&lt;br /&gt;
	{ item = &amp;quot;ammo&amp;quot;,         level = 1,  weight = 500 },&lt;br /&gt;
	{ item = &amp;quot;pammo&amp;quot;,        level = 3,  weight = 700 },&lt;br /&gt;
	{ item = &amp;quot;shell&amp;quot;,        level = 2,  weight = 400 },&lt;br /&gt;
	{ item = &amp;quot;pshell&amp;quot;,       level = 4,  weight = 200 },&lt;br /&gt;
	{ item = &amp;quot;rocket&amp;quot;,       level = 5,  weight = 60  },&lt;br /&gt;
	{ item = &amp;quot;procket&amp;quot;,      level = 7,  weight = 60  },&lt;br /&gt;
	{ item = &amp;quot;cell&amp;quot;,         level = 8,  weight = 36  },&lt;br /&gt;
	{ item = &amp;quot;pcell&amp;quot;,        level = 10, weight = 18  },&lt;br /&gt;
	--armor/boots&lt;br /&gt;
	{ item = &amp;quot;garmor&amp;quot;,       level = 1,  weight = 400 },&lt;br /&gt;
	{ item = &amp;quot;barmor&amp;quot;,       level = 4,  weight = 240 },&lt;br /&gt;
	{ item = &amp;quot;rarmor&amp;quot;,       level = 7,  weight = 150 },&lt;br /&gt;
	{ item = &amp;quot;sboots&amp;quot;,       level = 4,  weight = 240 },&lt;br /&gt;
	{ item = &amp;quot;pboots&amp;quot;,       level = 7,  weight = 150 },&lt;br /&gt;
	{ item = &amp;quot;psboots&amp;quot;,      level = 11, weight = 80  },&lt;br /&gt;
	--consumables&lt;br /&gt;
	{ item = &amp;quot;smed&amp;quot;,         level = 1,  weight = 600 },&lt;br /&gt;
	{ item = &amp;quot;lmed&amp;quot;,         level = 5,  weight = 400 },&lt;br /&gt;
	{ item = &amp;quot;phase&amp;quot;,        level = 5,  weight = 200 },&lt;br /&gt;
	{ item = &amp;quot;hphase&amp;quot;,       level = 7,  weight = 100 },&lt;br /&gt;
	{ item = &amp;quot;epack&amp;quot;,        level = 5,  weight = 100 },&lt;br /&gt;
	{ item = &amp;quot;nuke&amp;quot;,         level = 10, weight = 40  },&lt;br /&gt;
	{ item = &amp;quot;lava_element&amp;quot;, level = 23, weight = 0   },&lt;br /&gt;
	{ item = &amp;quot;mod_power&amp;quot;,    level = 7,  weight = 120 },&lt;br /&gt;
	{ item = &amp;quot;mod_tech&amp;quot;,     level = 6,  weight = 120 },&lt;br /&gt;
	{ item = &amp;quot;mod_bulk&amp;quot;,     level = 6,  weight = 120 },&lt;br /&gt;
	{ item = &amp;quot;mod_agility&amp;quot;,  level = 5,  weight = 120 },&lt;br /&gt;
	--powerups&lt;br /&gt;
	{ item = &amp;quot;shglobe&amp;quot;,      level = 1,  weight = 900 },&lt;br /&gt;
	{ item = &amp;quot;lhglobe&amp;quot;,      level = 6,  weight = 330 },&lt;br /&gt;
	{ item = &amp;quot;scglobe&amp;quot;,      level = 4,  weight = 150 },&lt;br /&gt;
	{ item = &amp;quot;bpack&amp;quot;,        level = 1,  weight = 200 },&lt;br /&gt;
	{ item = &amp;quot;iglobe&amp;quot;,       level = 7,  weight = 200 },&lt;br /&gt;
	{ item = &amp;quot;msglobe&amp;quot;,      level = 16, weight = 60  },&lt;br /&gt;
	{ item = &amp;quot;map&amp;quot;,          level = 1,  weight = 200 },&lt;br /&gt;
	{ item = &amp;quot;pmap&amp;quot;,         level = 1,  weight = 80  },&lt;br /&gt;
	{ item = &amp;quot;ashard&amp;quot;,       level = 5,  weight = 700 },&lt;br /&gt;
	{ item = &amp;quot;backpack&amp;quot;,     level = 7,  weight = 0   },&lt;br /&gt;
	&lt;br /&gt;
	--Exotics&lt;br /&gt;
	&lt;br /&gt;
	--weapons&lt;br /&gt;
	{ item = &amp;quot;chainsaw&amp;quot;,        level = 12, weight = 3  },&lt;br /&gt;
	{ item = &amp;quot;ublaster&amp;quot;,        level = 4,  weight = 2  },&lt;br /&gt;
	{ item = &amp;quot;uashotgun&amp;quot;,       level = 6,  weight = 6  },&lt;br /&gt;
	{ item = &amp;quot;upshotgun&amp;quot;,       level = 12, weight = 4  },&lt;br /&gt;
	{ item = &amp;quot;udshotgun&amp;quot;,       level = 10, weight = 5  },&lt;br /&gt;
	{ item = &amp;quot;uminigun&amp;quot;,        level = 10, weight = 6  },&lt;br /&gt;
	{ item = &amp;quot;umbazooka&amp;quot;,       level = 10, weight = 6  },&lt;br /&gt;
	{ item = &amp;quot;unapalm&amp;quot;,         level = 10, weight = 6  },&lt;br /&gt;
	{ item = &amp;quot;ulaser&amp;quot;,          level = 12, weight = 5  },&lt;br /&gt;
	{ item = &amp;quot;unplasma&amp;quot;,        level = 15, weight = 4  },&lt;br /&gt;
	{ item = &amp;quot;utristar&amp;quot;,        level = 12, weight = 4  },&lt;br /&gt;
	{ item = &amp;quot;bfg9000&amp;quot;,         level = 20, weight = 2  },&lt;br /&gt;
	{ item = &amp;quot;unbfg9000&amp;quot;,       level = 22, weight = 2  },&lt;br /&gt;
	{ item = &amp;quot;utrans&amp;quot;,          level = 14, weight = 3  },&lt;br /&gt;
	--armor/boots&lt;br /&gt;
	{ item = &amp;quot;uoarmor&amp;quot;,         level = 7,  weight = 4  },&lt;br /&gt;
	{ item = &amp;quot;uparmor&amp;quot;,         level = 10, weight = 6  },&lt;br /&gt;
	{ item = &amp;quot;upboots&amp;quot;,         level = 8,  weight = 6  },&lt;br /&gt;
	{ item = &amp;quot;ugarmor&amp;quot;,         level = 15, weight = 6  },&lt;br /&gt;
	{ item = &amp;quot;ugboots&amp;quot;,         level = 10, weight = 6  },&lt;br /&gt;
	{ item = &amp;quot;umedarmor&amp;quot;,       level = 5,  weight = 6  },&lt;br /&gt;
	{ item = &amp;quot;uduelarmor&amp;quot;,      level = 5,  weight = 6  },&lt;br /&gt;
	{ item = &amp;quot;ubulletarmor&amp;quot;,    level = 2,  weight = 4  },&lt;br /&gt;
	{ item = &amp;quot;uballisticarmor&amp;quot;, level = 2,  weight = 5  },&lt;br /&gt;
	{ item = &amp;quot;ueshieldarmor&amp;quot;,   level = 5,  weight = 3  },&lt;br /&gt;
	{ item = &amp;quot;uplasmashield&amp;quot;,   level = 10, weight = 3  },&lt;br /&gt;
	{ item = &amp;quot;uenergyshield&amp;quot;,   level = 8,  weight = 3  },&lt;br /&gt;
	{ item = &amp;quot;ubalshield&amp;quot;,      level = 6,  weight = 3  },&lt;br /&gt;
	{ item = &amp;quot;uacidboots&amp;quot;,      level = 8,  weight = 5  },&lt;br /&gt;
	--consumables&lt;br /&gt;
	{ item = &amp;quot;uswpack&amp;quot;,         level = 5,  weight = 10 },&lt;br /&gt;
	{ item = &amp;quot;ubskull&amp;quot;,         level = 5,  weight = 8  },&lt;br /&gt;
	{ item = &amp;quot;ufskull&amp;quot;,         level = 7,  weight = 8  },&lt;br /&gt;
	{ item = &amp;quot;uhskull&amp;quot;,         level = 9,  weight = 8  },&lt;br /&gt;
	{ item = &amp;quot;umod_firestorm&amp;quot;,  level = 10, weight = 4  },&lt;br /&gt;
	{ item = &amp;quot;umod_sniper&amp;quot;,     level = 10, weight = 2  },&lt;br /&gt;
	&lt;br /&gt;
	--Uniques&lt;br /&gt;
	&lt;br /&gt;
	--weapons	&lt;br /&gt;
	{ item = &amp;quot;ubutcher&amp;quot;,     level = 1,  weight = 2 },&lt;br /&gt;
	{ item = &amp;quot;spear&amp;quot;,        level = 16, weight = 0 },&lt;br /&gt;
	{ item = &amp;quot;uscythe&amp;quot;,      level = 16, weight = 0 },&lt;br /&gt;
	{ item = &amp;quot;utrigun&amp;quot;,      level = 8,  weight = 2 },&lt;br /&gt;
	{ item = &amp;quot;ujackal&amp;quot;,      level = 10, weight = 2 },&lt;br /&gt;
	{ item = &amp;quot;uberetta&amp;quot;,     level = 6,  weight = 3 },&lt;br /&gt;
	{ item = &amp;quot;usjack&amp;quot;,       level = 12, weight = 2 },&lt;br /&gt;
	{ item = &amp;quot;urbazooka&amp;quot;,    level = 12, weight = 2 },&lt;br /&gt;
	{ item = &amp;quot;uacid&amp;quot;,        level = 12, weight = 3 },&lt;br /&gt;
	{ item = &amp;quot;urailgun&amp;quot;,     level = 15, weight = 2 },&lt;br /&gt;
	{ item = &amp;quot;ubfg10k&amp;quot;,      level = 20, weight = 1 },&lt;br /&gt;
	--armor/boots&lt;br /&gt;
	{ item = &amp;quot;umarmor&amp;quot;,      level = 15, weight = 3 },&lt;br /&gt;
	{ item = &amp;quot;ucarmor&amp;quot;,      level = 10, weight = 2 },&lt;br /&gt;
	{ item = &amp;quot;unarmor&amp;quot;,      level = 10, weight = 3 },&lt;br /&gt;
	{ item = &amp;quot;umedparmor&amp;quot;,   level = 10, weight = 2 },&lt;br /&gt;
	{ item = &amp;quot;ulavaarmor&amp;quot;,   level = 12, weight = 2 },&lt;br /&gt;
	{ item = &amp;quot;uenviroboots&amp;quot;, level = 10, weight = 2 },&lt;br /&gt;
	{ item = &amp;quot;ushieldarmor&amp;quot;, level = 10, weight = 2 },&lt;br /&gt;
	{ item = &amp;quot;aarmor&amp;quot;,       level = 22, weight = 0 },&lt;br /&gt;
	--consumables&lt;br /&gt;
	{ item = &amp;quot;uhwpack&amp;quot;,      level = 10, weight = 4 },&lt;br /&gt;
	{ item = &amp;quot;umodstaff&amp;quot;,    level = 15, weight = 4 },&lt;br /&gt;
	{ item = &amp;quot;uarenastaff&amp;quot;,  level = 4,  weight = 0 },&lt;br /&gt;
	{ item = &amp;quot;umod_nano&amp;quot;,    level = 10, weight = 1 },&lt;br /&gt;
	{ item = &amp;quot;umod_onyx&amp;quot;,    level = 10, weight = 1 },	&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
--changes the generation stats of enemies based on mobGenStats&lt;br /&gt;
for _,v in ipairs(mobGenStats) do&lt;br /&gt;
	beings[v.being].minLev = v.minLev&lt;br /&gt;
	beings[v.being].maxLev = v.maxLev&lt;br /&gt;
	beings[v.being].weight = v.weight&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--changes the generation stats of items based on itemGenStats&lt;br /&gt;
for _,v in ipairs(itemGenStats) do&lt;br /&gt;
	items[v.item].level  = v.level&lt;br /&gt;
	items[v.item].weight = v.weight&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--add your own announcer lines here&lt;br /&gt;
local anncrMsg = {&lt;br /&gt;
	--displays whenever player completes wave&lt;br /&gt;
	success = {&lt;br /&gt;
		{&lt;br /&gt;
		&amp;quot;The voice booms, \&amp;quot;Congratulations mortal!&amp;quot;,&lt;br /&gt;
		&amp;quot;The voice booms, \&amp;quot;Impressive mortal!&amp;quot;,&lt;br /&gt;
		&amp;quot;The voice booms, \&amp;quot;Most impressive.&amp;quot;,&lt;br /&gt;
		&amp;quot;The voice booms, \&amp;quot;You are a formidable warrior!&amp;quot;,&lt;br /&gt;
		},&lt;br /&gt;
		{&lt;br /&gt;
		&amp;quot;Each of your triumphs is a work of art!&amp;quot;,&lt;br /&gt;
		&amp;quot;Your ability to survive is incredible!&amp;quot;,&lt;br /&gt;
		&amp;quot;You've given us a great show!&amp;quot;,&lt;br /&gt;
		&amp;quot;You would make a terrific hell warrior!&amp;quot;,&lt;br /&gt;
		},&lt;br /&gt;
		{&lt;br /&gt;
		&amp;quot;But can you keep going?\&amp;quot;&amp;quot;,&lt;br /&gt;
		&amp;quot;How much longer can you go?\&amp;quot;&amp;quot;,&lt;br /&gt;
		&amp;quot;Will you fight with us a little more?\&amp;quot;&amp;quot;,&lt;br /&gt;
		&amp;quot;I can let you go now if you like, or...\&amp;quot;&amp;quot;,&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	--displays whenever player decides to continue to another wave&lt;br /&gt;
	choice = {&lt;br /&gt;
		{&lt;br /&gt;
		&amp;quot;The voice booms, \&amp;quot;I like it! Let the show go on!\&amp;quot;&amp;quot;,&lt;br /&gt;
		&amp;quot;The voice booms, \&amp;quot;Excellent! May the fight begin!!!\&amp;quot;&amp;quot;,&lt;br /&gt;
		},&lt;br /&gt;
		{&lt;br /&gt;
		&amp;quot;You hear screams everywhere! \&amp;quot;More Blood! More BLOOD!\&amp;quot;&amp;quot;,&lt;br /&gt;
		&amp;quot;You hear screams everywhere! \&amp;quot;Kill, Kill, KILL!\&amp;quot;&amp;quot;,&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
--add your own crowd lines here&lt;br /&gt;
--displays whenever enemy is killed&lt;br /&gt;
local crowdMsg = {&lt;br /&gt;
	&amp;quot;The crowd goes wild! \&amp;quot;BLOOD! BLOOD!\&amp;quot;&amp;quot;,&lt;br /&gt;
	&amp;quot;The crowd cheers! \&amp;quot;Blood! Blood!\&amp;quot;&amp;quot;,&lt;br /&gt;
	&amp;quot;The crowd cheers! \&amp;quot;Kill! Kill!\&amp;quot;&amp;quot;,&lt;br /&gt;
	&amp;quot;The crowd hisses. \&amp;quot;We came for a REAL fight!\&amp;quot;&amp;quot;,&lt;br /&gt;
	&amp;quot;The crowd boos. \&amp;quot;No skill, no kill!\&amp;quot;&amp;quot;,&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local function build_announcerMsg(MSG)&lt;br /&gt;
	for _,msgNum in ipairs(MSG) do&lt;br /&gt;
		ui.msg(table.random_pick(msgNum))&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--from Skulltag Arena, credit goes to yaflhdztioxo&lt;br /&gt;
--initializes table of cells that a considered corpses&lt;br /&gt;
local corpseCells = {}&lt;br /&gt;
&lt;br /&gt;
local function get_corpses&lt;br /&gt;
  for i = 1, #cells do&lt;br /&gt;
    if cells[i] and cells[i].flags then&lt;br /&gt;
      if cells[i].flag_set[CF_CORPSE] == true then&lt;br /&gt;
        table.insert(corpseCells, i) --i == sID's numeric value&lt;br /&gt;
      end&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
  &lt;br /&gt;
--removes corpses and blood-like cells&lt;br /&gt;
local function clear_corpses()&lt;br /&gt;
	--fade away all blood&lt;br /&gt;
	Generator.transmute(&amp;quot;blood&amp;quot;, &amp;quot;floor&amp;quot;)&lt;br /&gt;
	Generator.transmute(&amp;quot;bloodpool&amp;quot;, &amp;quot;blood&amp;quot;)&lt;br /&gt;
	--changes corpses to blood&lt;br /&gt;
	for i = 1, #corpseCells do&lt;br /&gt;
		Generator.transmute(CorpseCells[i], &amp;quot;bloodpool&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--changes player equipment&lt;br /&gt;
--add &amp;quot;nil&amp;quot; for any slot that should be empty&lt;br /&gt;
--always refreshes all slots: do not use to change only one equipment slot&lt;br /&gt;
local function build_gear(weap,prep,body,foot)&lt;br /&gt;
	player.eq:clear()&lt;br /&gt;
	if weap then player.eq.weapon   = item.new(weap) end --main weapon&lt;br /&gt;
	if prep then player.eq.prepared = item.new(prep) end --prepared weapon	&lt;br /&gt;
	if body then player.eq.armor    = item.new(body) end --body armor&lt;br /&gt;
	if foot then player.eq.boots    = item.new(foot) end --boots&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--changes player inventory&lt;br /&gt;
--always refreshes all slots: do not use to change only one equipment slot&lt;br /&gt;
--[[&lt;br /&gt;
input is an array of tables with two fields:&lt;br /&gt;
-name is the identifier of the item that goes in the inventory&lt;br /&gt;
-amt is how many items should be added (or how many units of ammo)&lt;br /&gt;
example table (based on default inventory):&lt;br /&gt;
&lt;br /&gt;
local starter_pack = {&lt;br /&gt;
	{name = &amp;quot;ammo&amp;quot;, amt = 24},&lt;br /&gt;
	{name = &amp;quot;smed&amp;quot;, amt = 2},&lt;br /&gt;
}&lt;br /&gt;
--]]&lt;br /&gt;
local function build_pack(itemPack)&lt;br /&gt;
	player.inv:clear()&lt;br /&gt;
	for _,part in ipairs(itemPack) do&lt;br /&gt;
		if items[part.name].type == ITEMTYPE_AMMO then&lt;br /&gt;
			--ammo is handled separately, loops for however many stacks are needed&lt;br /&gt;
			for n=1,math.ceil(part.amt/items[part.name].ammomax) do&lt;br /&gt;
				local pack = item.new(part.name)&lt;br /&gt;
				if part.amt &amp;lt; pack.ammomax then&lt;br /&gt;
					--remainder (or single) stack&lt;br /&gt;
					pack.ammo = part.amt&lt;br /&gt;
				else&lt;br /&gt;
					--filled (and/or multiple) stacks&lt;br /&gt;
					pack.ammo = pack.ammomax&lt;br /&gt;
				end&lt;br /&gt;
				player.inv:add(pack)&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			--loops for however many items are needed&lt;br /&gt;
			for n=1,part.amt do&lt;br /&gt;
				player.inv:add(part.name)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
function inf_arena.OnEnter()&lt;br /&gt;
	--inventory table used for build_pack()&lt;br /&gt;
	local itemPack = {&lt;br /&gt;
		{name = &amp;quot;smed&amp;quot;,  amt = 2},&lt;br /&gt;
		{name = &amp;quot;shell&amp;quot;, amt = 50},&lt;br /&gt;
	}&lt;br /&gt;
	--set up starting eq/inv&lt;br /&gt;
	build_gear(&amp;quot;shotgun&amp;quot;,&amp;quot;pistol&amp;quot;,nil,nil)&lt;br /&gt;
	build_pack(itemPack)&lt;br /&gt;
    &lt;br /&gt;
    --Print announcer messages&lt;br /&gt;
    ui.msg(&amp;quot;A devilish voice announces: \&amp;quot;Welcome to Hell's Arena, mortal! &amp;quot; ..&lt;br /&gt;
           &amp;quot;\&amp;quot;You are either very brave or very foolish. Either way I like it! &amp;quot; ..&lt;br /&gt;
           &amp;quot;\&amp;quot;And so do the crowds!\&amp;quot; Suddenly you hear screams everywhere! &amp;quot; ..&lt;br /&gt;
		   &amp;quot;\&amp;quot;Blood! Blood! BLOOD!\&amp;quot; \&amp;quot;Kill all enemies and I shall reward thee!\&amp;quot;&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
	--spawn first wave&lt;br /&gt;
	Level.flood_monsters(Generator.being_weight()*mob_scale_factor)&lt;br /&gt;
	Level.result(1)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function inf_arena.OnKill(being)&lt;br /&gt;
	--random message from crowdMsg array&lt;br /&gt;
	ui.msg(table.random_pick(crowdMsg))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function inf_arena.OnKillAll()&lt;br /&gt;
    --print more announcer stuff&lt;br /&gt;
	if Level.result() == 1 then&lt;br /&gt;
		ui.msg(&amp;quot;The voice booms, \&amp;quot;Not bad mortal! For a weakling that you are, &amp;quot; ..&lt;br /&gt;
               &amp;quot;you show some determination.\&amp;quot; You hear screams everywhere! &amp;quot; ..&lt;br /&gt;
               &amp;quot;\&amp;quot;More Blood! More BLOOD!\&amp;quot; The voice continues, \&amp;quot;I can now &amp;quot; ..&lt;br /&gt;
               &amp;quot;let you go free, or you may try to complete the challenge!\&amp;quot;&amp;quot;)&lt;br /&gt;
    elseif Level.result() == 2 then&lt;br /&gt;
		ui.msg(&amp;quot;The voice booms, \&amp;quot;Impressive mortal! Your determination to &amp;quot; ..&lt;br /&gt;
               &amp;quot;survive makes me excited!\&amp;quot; You hear screams everywhere! &amp;quot; ..&lt;br /&gt;
			   &amp;quot;\&amp;quot;More Blood! More BLOOD!\&amp;quot; \&amp;quot;I can let you go now, and give you &amp;quot; ..&lt;br /&gt;
			   &amp;quot;a small reward, or you can choose to fight an additional challenge!\&amp;quot;&amp;quot;)&lt;br /&gt;
    else&lt;br /&gt;
		--random message from anncrMsg.success array&lt;br /&gt;
		build_announcerMsg(anncrMsg.success)&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
	local choice = ui.msg_confirm(&amp;quot;Round &amp;quot; .. Level.result() + 1 .. &amp;quot; awaits. &amp;quot; ..&lt;br /&gt;
                                  &amp;quot;Do you want to continue the fight?&amp;quot;)&lt;br /&gt;
	if choice == true then --continuing&lt;br /&gt;
		--random message from anncrMsg.choice array&lt;br /&gt;
		build_announcerMsg(anncrMsg.choice)&lt;br /&gt;
		--set up the danger level for the next wave&lt;br /&gt;
		Level.result(Level.result() + 1);&lt;br /&gt;
		Level.danger_level = Level.result();&lt;br /&gt;
		--spawn items for next wave&lt;br /&gt;
		Level.flood_items(Generator.item_amount()*item_scale_factor)&lt;br /&gt;
		--spawn enemies for next wave&lt;br /&gt;
		Level.flood_monsters(Generator.being_weight()*mob_scale_factor)&lt;br /&gt;
		&lt;br /&gt;
	else --quitting&lt;br /&gt;
		if Level.result() == 1 then&lt;br /&gt;
			ui.msg(&amp;quot;The voice booms, \&amp;quot;Coward!\&amp;quot; You hear screams everywhere! &amp;quot; ..&lt;br /&gt;
                   &amp;quot;\&amp;quot;Coward! Coward! COWARD!\&amp;quot;&amp;quot;)&lt;br /&gt;
		elseif Level.result() == 2 then&lt;br /&gt;
			ui.msg(&amp;quot;The voice booms, \&amp;quot;Too bad, you won't make it far then...!\&amp;quot; &amp;quot; ..&lt;br /&gt;
                   &amp;quot;You hear screams everywhere! \&amp;quot;Boooo...\&amp;quot;&amp;quot;)&lt;br /&gt;
		elseif Level.result() &amp;lt; 10 then&lt;br /&gt;
			ui.msg(&amp;quot;The voice booms, \&amp;quot;An impressive run, Mortal!  We appreciate &amp;quot; ..&lt;br /&gt;
                   &amp;quot;it!\&amp;quot; The crowd starts to chant! \&amp;quot;Encore! Encore!\&amp;quot;&amp;quot;)&lt;br /&gt;
		else&lt;br /&gt;
			ui.msg(&amp;quot;\&amp;quot;Ladies and gentlemen, your champion, &amp;quot;&lt;br /&gt;
                   .. Player.get_name() .. &amp;quot;. He survived &amp;quot; .. Level.result() ..&lt;br /&gt;
				   &amp;quot; rounds in our arena! That has to be some sort of record. &amp;quot; ..&lt;br /&gt;
                   &amp;quot;Give him a hand folks!\&amp;quot; The crowd starts to chant your name &amp;quot; ..&lt;br /&gt;
				   &amp;quot;and they begin throwing items into the ring!&amp;quot;)&lt;br /&gt;
			Level.flood_items(Generator.item_weight())&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function inf_arena.OnExit()&lt;br /&gt;
	if Level.result() &amp;lt; 10 then&lt;br /&gt;
		ui.msg(&amp;quot;The voice laughs, \&amp;quot;Flee mortal, flee! There's no hiding in hell!\&amp;quot;&amp;quot;)&lt;br /&gt;
	else&lt;br /&gt;
		ui.msg(&amp;quot;The voice laughs, \&amp;quot;Remember to come back once you return to Hell &amp;quot; ..&lt;br /&gt;
               &amp;quot;for the extended stay\&amp;quot;&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
	--used in .OnMortem()&lt;br /&gt;
	arena.result = &amp;quot;had enough of the gauntlet at wave &amp;quot;..Level.result()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function arena.OnMortem()&lt;br /&gt;
    local kill = player.killedby --calls kill descriptions from beings&lt;br /&gt;
    if arena.result then kill = arena.result end&lt;br /&gt;
        player:mortem_print( &amp;quot; &amp;quot;..player.name..&amp;quot;, level &amp;quot;..player.explevel..&amp;quot; &amp;quot;&lt;br /&gt;
                             ..&amp;quot; &amp;quot;..klasses[player.klass].name..&amp;quot;, &amp;quot;..kill )&lt;br /&gt;
        --e.g., &amp;quot;Cool Guy, level 1 Marine, had enough of the gauntlet at wave 8&amp;quot;&lt;br /&gt;
        player:mortem_print(&amp;quot; in the Infinite Arena...&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--Creation of Infinite Arena&lt;br /&gt;
function inf_arena.run()&lt;br /&gt;
	Level.name = &amp;quot;Infinite Arena&amp;quot;&lt;br /&gt;
	Level.name_number = 0&lt;br /&gt;
	Level.fill(&amp;quot;prwall&amp;quot;)&lt;br /&gt;
	&lt;br /&gt;
	local translation = {&lt;br /&gt;
	[&amp;quot;.&amp;quot;] = &amp;quot;floor&amp;quot;,&lt;br /&gt;
	[&amp;quot;#&amp;quot;] = &amp;quot;prwall&amp;quot;,&lt;br /&gt;
	[&amp;quot;X&amp;quot;] = &amp;quot;pwall&amp;quot;,&lt;br /&gt;
	[&amp;quot;,&amp;quot;] = &amp;quot;blood&amp;quot;,&lt;br /&gt;
	[&amp;quot;&amp;gt;&amp;quot;] = &amp;quot;stairs&amp;quot;,&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	local map = [[&lt;br /&gt;
#######################.............................########################&lt;br /&gt;
###########.....................................................############&lt;br /&gt;
#####..................................................................#####&lt;br /&gt;
##........................................................................##&lt;br /&gt;
#..........................................................................#&lt;br /&gt;
....,.......................................................................&lt;br /&gt;
.................................,...,......................................&lt;br /&gt;
.,.....................................,....................................&lt;br /&gt;
..,&amp;gt;.,..........................,...........................................&lt;br /&gt;
.,..,.................................,.,...................................&lt;br /&gt;
................................,..,...,....................................&lt;br /&gt;
............................................................................&lt;br /&gt;
............................................................................&lt;br /&gt;
#..........................................................................#&lt;br /&gt;
##........................................................................##&lt;br /&gt;
#####..................................................................#####&lt;br /&gt;
###########.....................................................############&lt;br /&gt;
#######################.............................########################&lt;br /&gt;
]]&lt;br /&gt;
	--change up the column types&lt;br /&gt;
	local column = {&lt;br /&gt;
	[[&lt;br /&gt;
	,..,.,&lt;br /&gt;
	,XXXX.&lt;br /&gt;
	.X##X,&lt;br /&gt;
	.XXXX.&lt;br /&gt;
	,..,.,&lt;br /&gt;
	]],&lt;br /&gt;
	[[&lt;br /&gt;
	,..,.,&lt;br /&gt;
	,X##X.&lt;br /&gt;
	.####,&lt;br /&gt;
	.X##X.&lt;br /&gt;
	,..,.,&lt;br /&gt;
	]],&lt;br /&gt;
	[[&lt;br /&gt;
	,..,.,&lt;br /&gt;
	,####.&lt;br /&gt;
	.####,&lt;br /&gt;
	.####.&lt;br /&gt;
	,..,.,&lt;br /&gt;
	]]&lt;br /&gt;
	}&lt;br /&gt;
	&lt;br /&gt;
	Level.place_tile(translation,map,2,2)&lt;br /&gt;
	for i=1,11 + math.random(4) do&lt;br /&gt;
		Level.scatter_put( area.new(5,3,68,15), translation, table.random_pick(column), &amp;quot;floor&amp;quot;, 1)&lt;br /&gt;
	end&lt;br /&gt;
	Level.scatter(area.FULL_SHRINKED, &amp;quot;floor&amp;quot;, &amp;quot;blood&amp;quot;, 100)&lt;br /&gt;
	Level.player(38, 10)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Game Hunter</name></author>	</entry>

	</feed>