<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.neatportal.com/index.php?action=history&amp;feed=atom&amp;title=Tips_and_Tricks</id>
		<title>Tips and Tricks - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.neatportal.com/index.php?action=history&amp;feed=atom&amp;title=Tips_and_Tricks"/>
		<link rel="alternate" type="text/html" href="http://wiki.neatportal.com/index.php?title=Tips_and_Tricks&amp;action=history"/>
		<updated>2026-05-07T02:23:32Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.29.2</generator>

	<entry>
		<id>http://wiki.neatportal.com/index.php?title=Tips_and_Tricks&amp;diff=930&amp;oldid=prev</id>
		<title>Anonymous: ommission fix</title>
		<link rel="alternate" type="text/html" href="http://wiki.neatportal.com/index.php?title=Tips_and_Tricks&amp;diff=930&amp;oldid=prev"/>
				<updated>2011-06-25T04:51:27Z</updated>
		
		<summary type="html">&lt;p&gt;ommission fix&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&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;' lang='en'&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 04:51, 25 June 2011&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-l4&quot; &gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&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;Scripts are the exception to the safety rule.&amp;#160; Other than the removal of the abandontown command, there are no safety nets. If you disband your army, demolish your defences of squander your resources, they are gone, plain and simple.&amp;#160; There is no undo key, nor will &amp;lt;ctrl&amp;gt;-z do you any good.&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;Scripts are the exception to the safety rule.&amp;#160; Other than the removal of the abandontown command, there are no safety nets. If you disband your army, demolish your defences of squander your resources, they are gone, plain and simple.&amp;#160; There is no undo key, nor will &amp;lt;ctrl&amp;gt;-z do you any good.&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;I volunteered to write this section for 2 reasons: 1: I am ex-aerospace toolmaker in SoCal, which in the 1980's and 90's was the ultimate thing to do in the ultimate place to do it. I was there the day they rolled both the F-117A Stealth fighter and The B1-B bomber out of the hangars. I am not a rocket scientist, but I did design and build all of the tooling used in the manufacture of the Atlas-Centaur Launch Vehicle. (Those are the things that keep it from tipping over at launch, like the infamous Russian rocket did in the video). I am a toolmaker, which is the highest title attainable in the machinist trade. I can and have run virtually every type of manufactiuing tool there is, from 1950's series Cincinnati shaper mills, to state of the art cnc lasers and machine centers to the latest in rapid prototying equipment. I have built machines ranging from 2 axis pattern cutters, to the robot that polishes the inside of the naval I.C.B.M. launch tubes. (Before which time it was done by hand by a tiny little Korean kid who crawled through with a buffer...). I can program the computers or turn the handles. It does not matter to me. If it can be built, I can build it. Then the goverment stepped in and in their stupidly misplaced efforts to protect us from ourselves (not to be confused with disabling the abandontown command) outlawed most of the chemicals and materials used in said industry, without which the industry could not function. So now there is no more Lockheed skunk-works, Boeing, Martin-Marietta, Nothrop, Raytheon, or any other such company in the entire state that wwas 20 years ago home to them all.&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;I volunteered to write this section for 2 reasons: 1: I am ex-aerospace toolmaker in SoCal, which in the 1980's and 90's was the ultimate thing to do in the ultimate place to do it. I was there the day they rolled both the F-117A Stealth fighter and The B1-B bomber out of the hangars. I am not a rocket scientist, but I did design and build all of the tooling used in the manufacture &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;of the retro-rokets &lt;/ins&gt;of the Atlas-Centaur Launch Vehicle &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;( a sattelite/heavy cargo platform)&lt;/ins&gt;. (Those are the things that keep it from tipping over at launch, like the infamous Russian rocket did in the video). I am a toolmaker, which is the highest title attainable in the machinist trade. I can and have run virtually every type of manufactiuing tool there is, from 1950's series Cincinnati shaper mills, to state of the art cnc lasers and machine centers to the latest in rapid prototying equipment. I have built machines ranging from 2 axis pattern cutters, to the robot that polishes the inside of the naval I.C.B.M. launch tubes. (Before which time it was done by hand by a tiny little Korean kid who crawled through with a buffer...). I can program the computers or turn the handles. It does not matter to me. If it can be built, I can build it. Then the goverment stepped in and in their stupidly misplaced efforts to protect us from ourselves (not to be confused with disabling the abandontown command) outlawed most of the chemicals and materials used in said industry, without which the industry could not function. So now there is no more Lockheed skunk-works, Boeing, Martin-Marietta, Nothrop, Raytheon, or any other such company in the entire state that wwas 20 years ago home to them all.&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;&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;So I started building custom Harleys, even had a shop, but the government in its further efforts to destroy what was once the 6th largest economy in the world by itself have forced my shop to close because I cannot afford the over $35,000 in fees, licenses, permits along with the 10% of everything city tax to go along with the 30% off the top business tax.&amp;#160; They charged me an $800 compressor inspection fee.&amp;#160; The man had no idea what he was doing, given the fact it was a 30 yr old compressor with one bad cylinder, less efficient than a bicycle pump.&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;So I started building custom Harleys, even had a shop, but the government in its further efforts to destroy what was once the 6th largest economy in the world by itself have forced my shop to close because I cannot afford the over $35,000 in fees, licenses, permits along with the 10% of everything city tax to go along with the 30% off the top business tax.&amp;#160; They charged me an $800 compressor inspection fee.&amp;#160; The man had no idea what he was doing, given the fact it was a 30 yr old compressor with one bad cylinder, less efficient than a bicycle pump.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Anonymous</name></author>	</entry>

	<entry>
		<id>http://wiki.neatportal.com/index.php?title=Tips_and_Tricks&amp;diff=929&amp;oldid=prev</id>
		<title>Anonymous: title change</title>
		<link rel="alternate" type="text/html" href="http://wiki.neatportal.com/index.php?title=Tips_and_Tricks&amp;diff=929&amp;oldid=prev"/>
				<updated>2011-06-25T04:48:48Z</updated>
		
		<summary type="html">&lt;p&gt;title change&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&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;' lang='en'&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 04:48, 25 June 2011&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-l48&quot; &gt;Line 48:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 48:&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;/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;===&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;A working example&lt;/del&gt;===&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;===&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Replacable Variables Example&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;Scripts take up memory.&amp;#160; If you have 3 accounts with 9 cities each, with all of them running a 150 line script, you will find yourself hard-pressed for memory real quick.&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;Scripts take up memory.&amp;#160; If you have 3 accounts with 9 cities each, with all of them running a 150 line script, you will find yourself hard-pressed for memory real quick.&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;/table&gt;</summary>
		<author><name>Anonymous</name></author>	</entry>

	<entry>
		<id>http://wiki.neatportal.com/index.php?title=Tips_and_Tricks&amp;diff=928&amp;oldid=prev</id>
		<title>Anonymous: disclaimer</title>
		<link rel="alternate" type="text/html" href="http://wiki.neatportal.com/index.php?title=Tips_and_Tricks&amp;diff=928&amp;oldid=prev"/>
				<updated>2011-06-25T04:25:21Z</updated>
		
		<summary type="html">&lt;p&gt;disclaimer&lt;/p&gt;
&lt;a href=&quot;http://wiki.neatportal.com/index.php?title=Tips_and_Tricks&amp;amp;diff=928&amp;amp;oldid=927&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Anonymous</name></author>	</entry>

	<entry>
		<id>http://wiki.neatportal.com/index.php?title=Tips_and_Tricks&amp;diff=927&amp;oldid=prev</id>
		<title>Anonymous: lvl10 demonstration</title>
		<link rel="alternate" type="text/html" href="http://wiki.neatportal.com/index.php?title=Tips_and_Tricks&amp;diff=927&amp;oldid=prev"/>
				<updated>2011-06-25T02:46:45Z</updated>
		
		<summary type="html">&lt;p&gt;lvl10 demonstration&lt;/p&gt;
&lt;a href=&quot;http://wiki.neatportal.com/index.php?title=Tips_and_Tricks&amp;amp;diff=927&amp;amp;oldid=925&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Anonymous</name></author>	</entry>

	<entry>
		<id>http://wiki.neatportal.com/index.php?title=Tips_and_Tricks&amp;diff=925&amp;oldid=prev</id>
		<title>Anonymous: Page created</title>
		<link rel="alternate" type="text/html" href="http://wiki.neatportal.com/index.php?title=Tips_and_Tricks&amp;diff=925&amp;oldid=prev"/>
				<updated>2011-06-24T22:23:54Z</updated>
		
		<summary type="html">&lt;p&gt;Page created&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===Introduction===&lt;br /&gt;
&lt;br /&gt;
In this section we will look at some advanced techniques for saving memory, creating reusable blocks and methods of keeping things under control.&lt;br /&gt;
&lt;br /&gt;
:Rule #1: '''Test your script!'''&lt;br /&gt;
::This is particularily important for attack scripts and any script that destroys a troop, building or wall defense.&lt;br /&gt;
::Ideally you would test any such script in an empty city. It is ok to produce errors when you expect them.&lt;br /&gt;
::Set quantities to minimum numbers until you are sure the script functions properly.&lt;br /&gt;
:::Before you run your market script to sell 9,999,999 food at a time, run it through selling 100 just to test the logic.&lt;br /&gt;
&lt;br /&gt;
:Rule #2: '''Keep your scripts as compact and simple as possible.'''&lt;br /&gt;
::This includes using gosub routines and replaceable variables.&lt;br /&gt;
&lt;br /&gt;
:Rule #3: '''Be sure you have enough troops, resources, heroes, and most importantly, time.'''&lt;br /&gt;
::There is nothing worse than getting to wave #8 and encountering an &amp;quot;Illegal camp time ignored&amp;quot; error.&lt;br /&gt;
::Before running an attack script against your enemy, run it against an npc 1 mile '''beyond''' your enemy.&lt;br /&gt;
:::This will be further discussed in the attack section.&lt;br /&gt;
&lt;br /&gt;
Y.A.E.B. contains space for 5 scripts per city.  You should take advantage of these spaces to store scripts that you use regularly.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Kiss your script===&lt;br /&gt;
&lt;br /&gt;
Kiss stands for 'Keep it simple, stupid'.  The best way to do this is with sub-routines.  Any time your script does the same thing more than once, you should use a sub-routine. Bear in mind, however, that there is absolutely no advantage to having a sub-routine who's only function is to send you somewhere else.&lt;br /&gt;
&lt;br /&gt;
Use repeat and loop whenever you want to run the same command or chunk of commands more than once.&lt;br /&gt;
Replaceable variables are by far the most economical way to keep your script compact and make it reuseable.&lt;br /&gt;
&lt;br /&gt;
[http://duelingelectrons.com/forum/viewtopic.php?f=21&amp;amp;t=6761#p22344 The Simple Attack] script is a good example. Simply changing the '''set xy xxx,yyy''' and '''set army xxxx''' lines will allow you to send any army to any city.&lt;br /&gt;
The Schwack Attack, found immediately following the previous example is a far more complex example . I keep a copy in one of the script spaces of every city.&lt;br /&gt;
&lt;br /&gt;
The Schwack Attack also demonstrates a simple way of selecting an option from multiple choices.  Only the first goto command encountered is able to run, so you simply cut the and paste the attack you want to perform into the first position and run the script.  It is best to set the 'always run script from line #1' option in the misc. page of the options.  The script was written before this option was availible, and I have since eliminated the 'goto top' line from the end of the script.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===A working example===&lt;br /&gt;
Scripts take up memory.  If you have 3 accounts with 9 cities each, with all of them running a 150 line script, you will find yourself hard-pressed for memory real quick.&lt;/div&gt;</summary>
		<author><name>Anonymous</name></author>	</entry>

	</feed>