<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://redmine.mygui.info/wiki/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://redmine.mygui.info/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Queeshai</id>
		<title>theFarWilds - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://redmine.mygui.info/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Queeshai"/>
		<link rel="alternate" type="text/html" href="http://redmine.mygui.info/wiki/index.php/Special:Contributions/Queeshai"/>
		<updated>2026-05-20T21:10:43Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.21.1</generator>

	<entry>
		<id>http://redmine.mygui.info/wiki/index.php/Entity_Functions</id>
		<title>Entity Functions</title>
		<link rel="alternate" type="text/html" href="http://redmine.mygui.info/wiki/index.php/Entity_Functions"/>
				<updated>2010-05-10T02:36:33Z</updated>
		
		<summary type="html">&lt;p&gt;Queeshai: moveEntity doesn't exist.  fixed to reflect actual method name.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Scripts]]&lt;br /&gt;
Each '''entity object''' represents a creature, building, enchantment, corpse, or ruin.  Collectively, these objects define the current game state.&lt;br /&gt;
&lt;br /&gt;
== Constructors ==&lt;br /&gt;
 Entity createEntity( string cardName, int x_coord, int y_coord, [[Player Functions|Player]] controller );&lt;br /&gt;
 &lt;br /&gt;
 Entity createEntity( string cardName, Location loc, [[Player Functions|Player]] controller );&lt;br /&gt;
 &lt;br /&gt;
 Entity createEntity( string cardName, Location loc );&lt;br /&gt;
&lt;br /&gt;
See also getFigure( Location loc ).&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
 bool '''isValid'''();&lt;br /&gt;
 // check to see if entity was created successfully&lt;br /&gt;
 &lt;br /&gt;
 bool '''doesExist'''();&lt;br /&gt;
 // check to see if entity has been removed&lt;br /&gt;
 &lt;br /&gt;
 string '''getName'''();&lt;br /&gt;
 &lt;br /&gt;
 [[Player Functions|Player]] '''getController'''();&lt;br /&gt;
 &lt;br /&gt;
 void '''setController'''( [[Player Functions|Player]] controller );&lt;br /&gt;
 &lt;br /&gt;
 bool '''isType'''( int type );&lt;br /&gt;
 // Types: CREATURE=1, BUILDING=2, ENCHANTMENT=3, ITEM=4, MARKER(Corpse,Flux Well,Ruin)=5, WORLD_ENCHANT=6&lt;br /&gt;
 &lt;br /&gt;
 Location '''getLoc'''();&lt;br /&gt;
 &lt;br /&gt;
 bool '''move'''( Location );&lt;br /&gt;
 // returns false if unsuccessful (e.g., trying to move figure into occupied location)&lt;br /&gt;
 &lt;br /&gt;
 void '''remove'''();&lt;br /&gt;
 &lt;br /&gt;
 void '''destroy'''();&lt;br /&gt;
 &lt;br /&gt;
 void '''sacrifice'''();&lt;br /&gt;
 &lt;br /&gt;
 void '''setDim'''( bool dimOrNot );&lt;br /&gt;
 &lt;br /&gt;
 bool '''isDim'''();&lt;br /&gt;
 &lt;br /&gt;
 int '''addTokens'''(string tokenName,int delta);&lt;br /&gt;
 // returns the number of that token after the add.&lt;br /&gt;
 // delta can be negative&lt;br /&gt;
 // some common tokens: attack,maxhp,vision,speed,range&lt;br /&gt;
 // also: age,work,entrench,sleep,vigor,spawn,soul,termite&lt;br /&gt;
 // you can look in helpers/counters.xml for a complete list&lt;br /&gt;
 // Example: ent.addToken(&amp;quot;attack&amp;quot;,1); &lt;br /&gt;
 // it is case sensitive&lt;br /&gt;
 &lt;br /&gt;
 int '''numTokens'''(string tokenName);&lt;br /&gt;
 &lt;br /&gt;
 int '''getCurHealth'''();&lt;br /&gt;
 &lt;br /&gt;
 int '''getMaxHealth'''();&lt;br /&gt;
 &lt;br /&gt;
 string '''otherName'''();&lt;br /&gt;
 // returns the name of the corpse, ruin, &lt;br /&gt;
 // or construction site building that this was or will be&lt;/div&gt;</summary>
		<author><name>Queeshai</name></author>	</entry>

	<entry>
		<id>http://redmine.mygui.info/wiki/index.php/Player_Functions</id>
		<title>Player Functions</title>
		<link rel="alternate" type="text/html" href="http://redmine.mygui.info/wiki/index.php/Player_Functions"/>
				<updated>2010-04-03T21:57:34Z</updated>
		
		<summary type="html">&lt;p&gt;Queeshai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Scripts]]&lt;br /&gt;
Each '''player object''' represents a human or ai player.&lt;br /&gt;
&lt;br /&gt;
== Constructors ==&lt;br /&gt;
 Player getAIPlayer( int index );&lt;br /&gt;
 &lt;br /&gt;
 Player getHumanPlayer( int index );&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
 bool '''isValid'''();&lt;br /&gt;
 &lt;br /&gt;
 void '''addToHand'''( string cardName );&lt;br /&gt;
 &lt;br /&gt;
 void '''addToDeck'''( string cardName, int index );&lt;br /&gt;
 &lt;br /&gt;
 Card '''getDeckCard'''( int index );&lt;br /&gt;
 &lt;br /&gt;
 Card '''getHandCard'''( int index );&lt;br /&gt;
 &lt;br /&gt;
 void '''removeHandCard'''( int index );&lt;br /&gt;
 &lt;br /&gt;
 void '''removeDeckCard'''( int index );&lt;br /&gt;
 &lt;br /&gt;
 void '''drawCard'''();&lt;br /&gt;
 &lt;br /&gt;
 void '''shuffleDeck'''();&lt;br /&gt;
 &lt;br /&gt;
 int '''deckSize'''();&lt;br /&gt;
 &lt;br /&gt;
 int '''handSize'''();&lt;br /&gt;
 &lt;br /&gt;
 void '''addFlux'''( int delta );&lt;br /&gt;
 &lt;br /&gt;
 void '''addGlory'''( int delta );&lt;br /&gt;
 &lt;br /&gt;
 int '''getFlux'''();&lt;br /&gt;
 &lt;br /&gt;
 int '''getGlory'''();&lt;br /&gt;
 &lt;br /&gt;
 void '''setTeam'''( int teamId );&lt;br /&gt;
 // set to zero for no team&lt;/div&gt;</summary>
		<author><name>Queeshai</name></author>	</entry>

	<entry>
		<id>http://redmine.mygui.info/wiki/index.php/Global_Functions</id>
		<title>Global Functions</title>
		<link rel="alternate" type="text/html" href="http://redmine.mygui.info/wiki/index.php/Global_Functions"/>
				<updated>2010-04-03T21:52:06Z</updated>
		
		<summary type="html">&lt;p&gt;Queeshai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Scripts]]&lt;br /&gt;
'''Global functions''' can be called from anywhere in your scripts.&lt;br /&gt;
&lt;br /&gt;
 Entity '''createEntity'''( string CardName, int x_coord, int y_coord, Player controller );&lt;br /&gt;
 Entity '''createEntity'''( string CardName,Location loc, Player controller );&lt;br /&gt;
 Entity '''createEntity'''( string CardName,Location loc );&lt;br /&gt;
 &lt;br /&gt;
 Location '''createLocation'''( int x, int y );&lt;br /&gt;
 &lt;br /&gt;
 Player '''getAIPlayer'''( int index );&lt;br /&gt;
 &lt;br /&gt;
 Player '''getHumanPlayer'''( int index );&lt;br /&gt;
 &lt;br /&gt;
 void '''setTerrain'''( Location loc, int topo, int veg );&lt;br /&gt;
 int '''getTopo'''( Location loc );&lt;br /&gt;
 int '''getVeg'''( Location loc );&lt;br /&gt;
 // topo: ocean=1, soggy=2, flat=3, hills=4, mountain=5&lt;br /&gt;
 // veg: desert=1 ,grass=2 ,forest=3&lt;br /&gt;
 &lt;br /&gt;
 Entity '''getFigure'''( Location loc );&lt;br /&gt;
 &lt;br /&gt;
 void '''forEachEntity'''();&lt;br /&gt;
 // call [[Hook Functions|entityCallback()]] once for each Entity in the game.&lt;br /&gt;
 &lt;br /&gt;
 void '''enchantEntity'''( Entity toEnchant, string enchantName, Player enchantController );&lt;br /&gt;
 &lt;br /&gt;
 void '''endGame'''( Player winner );&lt;br /&gt;
 &lt;br /&gt;
 void '''flipTheScript'''( int scriptID );&lt;br /&gt;
 // changes what script is being used for the game&lt;br /&gt;
 // doesn't preserve global variables yet&lt;br /&gt;
 &lt;br /&gt;
 int '''rand'''( int max );&lt;br /&gt;
 // return an integer from 0 to max-1&lt;br /&gt;
 &lt;br /&gt;
 bool '''randChance'''( float chance );&lt;br /&gt;
 // return true with probability equal to chance&lt;br /&gt;
 &lt;br /&gt;
 void '''infoBox'''( string title, string text );&lt;br /&gt;
 // display text in a pop up box to all the players&lt;br /&gt;
 &lt;br /&gt;
 void '''statusMsg'''( Player from, string msg );&lt;br /&gt;
 // Prints a message from a player in the battle log. &lt;br /&gt;
 // just pass an empty player to make the message from the server&lt;br /&gt;
 &lt;br /&gt;
 void '''wipeEffect'''();&lt;/div&gt;</summary>
		<author><name>Queeshai</name></author>	</entry>

	<entry>
		<id>http://redmine.mygui.info/wiki/index.php/Entity_Functions</id>
		<title>Entity Functions</title>
		<link rel="alternate" type="text/html" href="http://redmine.mygui.info/wiki/index.php/Entity_Functions"/>
				<updated>2010-04-03T21:30:25Z</updated>
		
		<summary type="html">&lt;p&gt;Queeshai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Scripts]]&lt;br /&gt;
Each '''entity object''' represents a creature, building, enchantment, corpse, or ruin.  Collectively, these objects define the current game state.&lt;br /&gt;
&lt;br /&gt;
== Constructors ==&lt;br /&gt;
 Entity createEntity( string cardName, int x_coord, int y_coord, Player controller );&lt;br /&gt;
 &lt;br /&gt;
 Entity createEntity( string cardName, Location loc, Player controller );&lt;br /&gt;
 &lt;br /&gt;
 Entity createEntity( string cardName, Location loc );&lt;br /&gt;
&lt;br /&gt;
See also getFigure( Location loc ).&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
 bool '''isValid'''();&lt;br /&gt;
 // check to see if entity was created successfully&lt;br /&gt;
 &lt;br /&gt;
 bool '''doesExist'''();&lt;br /&gt;
 // check to see if entity has been removed&lt;br /&gt;
&lt;br /&gt;
 string '''getName'''();&lt;br /&gt;
 &lt;br /&gt;
 Player '''getController'''();&lt;br /&gt;
 &lt;br /&gt;
 void '''setController'''( Player controller );&lt;br /&gt;
 &lt;br /&gt;
 bool '''isType'''( int type );&lt;br /&gt;
 // Types: Creature=1, Building=2, Enchantment=3, Item=4, (Corpse,Flux Well,Ruin)=5, World Enchantment=6&lt;br /&gt;
 &lt;br /&gt;
 Location '''getLoc'''();&lt;br /&gt;
 &lt;br /&gt;
 bool '''moveEntity'''( Location );&lt;br /&gt;
 // returns false if unsuccessful (e.g., trying to move figure into occupied location)&lt;br /&gt;
 &lt;br /&gt;
 void '''remove'''();&lt;br /&gt;
 &lt;br /&gt;
 void '''destroy'''();&lt;br /&gt;
 &lt;br /&gt;
 void '''sacrifice'''();&lt;br /&gt;
 &lt;br /&gt;
 void '''setDim'''( bool dimOrNot );&lt;br /&gt;
 &lt;br /&gt;
 bool '''isDim'''();&lt;/div&gt;</summary>
		<author><name>Queeshai</name></author>	</entry>

	<entry>
		<id>http://redmine.mygui.info/wiki/index.php/Entity_Functions</id>
		<title>Entity Functions</title>
		<link rel="alternate" type="text/html" href="http://redmine.mygui.info/wiki/index.php/Entity_Functions"/>
				<updated>2010-04-03T21:30:04Z</updated>
		
		<summary type="html">&lt;p&gt;Queeshai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Scripts]]&lt;br /&gt;
Each '''entity object''' represents a creature, building, enchantment, corpse, or ruin.  Collectively, these objects define the current game state.&lt;br /&gt;
&lt;br /&gt;
== Constructors ==&lt;br /&gt;
 Entity createEntity( string cardName, int x_coord, int y_coord, Player controller );&lt;br /&gt;
 &lt;br /&gt;
 Entity createEntity( string cardName, Location loc, Player controller );&lt;br /&gt;
 &lt;br /&gt;
 Entity createEntity( string cardName, Location loc );&lt;br /&gt;
&lt;br /&gt;
See also getFigure( Location loc ).&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
 bool '''isValid'''();&lt;br /&gt;
 // check to see if entity was created successfully&lt;br /&gt;
 &lt;br /&gt;
 bool '''doesExist'''();&lt;br /&gt;
 // check to see if entity has been removed&lt;br /&gt;
&lt;br /&gt;
 string '''getName'''();&lt;br /&gt;
 &lt;br /&gt;
 Player '''getController'''();&lt;br /&gt;
 void '''setController'''( Player controller );&lt;br /&gt;
 &lt;br /&gt;
 bool '''isType'''( int type );&lt;br /&gt;
 // Types: Creature=1, Building=2, Enchantment=3, Item=4, (Corpse,Flux Well,Ruin)=5, World Enchantment=6&lt;br /&gt;
 &lt;br /&gt;
 Location '''getLoc'''();&lt;br /&gt;
 &lt;br /&gt;
 bool '''moveEntity'''( Location );&lt;br /&gt;
 // returns false if unsuccessful (e.g., trying to move figure into occupied location)&lt;br /&gt;
 &lt;br /&gt;
 void '''remove'''();&lt;br /&gt;
 &lt;br /&gt;
 void '''destroy'''();&lt;br /&gt;
 &lt;br /&gt;
 void '''sacrifice'''();&lt;br /&gt;
 &lt;br /&gt;
 void '''setDim'''( bool dimOrNot );&lt;br /&gt;
 &lt;br /&gt;
 bool '''isDim'''();&lt;/div&gt;</summary>
		<author><name>Queeshai</name></author>	</entry>

	<entry>
		<id>http://redmine.mygui.info/wiki/index.php/Location_Functions</id>
		<title>Location Functions</title>
		<link rel="alternate" type="text/html" href="http://redmine.mygui.info/wiki/index.php/Location_Functions"/>
				<updated>2010-04-03T21:16:57Z</updated>
		
		<summary type="html">&lt;p&gt;Queeshai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Scripts]]&lt;br /&gt;
A location object represents a particular hex on the playing map.  Note that the TFW [[Coordinate System]] is transposed -- the x-axis is vertical and the y-axis is horizontal.  Labeling starts from zero.&lt;br /&gt;
&lt;br /&gt;
== Constructors ==&lt;br /&gt;
 Location '''createLocation'''( int x, int y );&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
 bool '''isAloft'''(); &lt;br /&gt;
 // false if an Aloft guy is grounded after melee&lt;br /&gt;
 &lt;br /&gt;
 bool '''isValid'''();&lt;/div&gt;</summary>
		<author><name>Queeshai</name></author>	</entry>

	<entry>
		<id>http://redmine.mygui.info/wiki/index.php/Config_Functions</id>
		<title>Config Functions</title>
		<link rel="alternate" type="text/html" href="http://redmine.mygui.info/wiki/index.php/Config_Functions"/>
				<updated>2010-04-03T21:11:50Z</updated>
		
		<summary type="html">&lt;p&gt;Queeshai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Scripts]]&lt;br /&gt;
These '''config functions''' may only be called from inside [[Hook Functions|configGame()]].&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
 void '''addAIPlayer'''( string name, string avatar, int team );&lt;br /&gt;
 // all parameters are ignored for now&lt;br /&gt;
 &lt;br /&gt;
 void '''setMapSize'''( int x, int y );&lt;br /&gt;
 // 3 &amp;lt;= x &amp;lt;= 17&lt;br /&gt;
 // 3 &amp;lt;= y &amp;lt;= 17&lt;br /&gt;
 &lt;br /&gt;
 void '''setNumPlayers'''( int numPlayers );&lt;br /&gt;
 // 1 &amp;lt;= n &amp;lt;= 4&lt;br /&gt;
 &lt;br /&gt;
 void '''setGloryGoal'''( int gloryGoal );&lt;br /&gt;
 &lt;br /&gt;
 void '''setMapSeed'''( int mapSeed );&lt;br /&gt;
 // you can set this if you always want the script to be on the same map&lt;br /&gt;
 &lt;br /&gt;
 void '''setNumFluxWells'''( int numFluxWells );&lt;br /&gt;
 &lt;br /&gt;
 void '''dontNeedDecks'''();&lt;br /&gt;
 // won't ask the player to set a deck when they join&lt;/div&gt;</summary>
		<author><name>Queeshai</name></author>	</entry>

	<entry>
		<id>http://redmine.mygui.info/wiki/index.php/Config_Functions</id>
		<title>Config Functions</title>
		<link rel="alternate" type="text/html" href="http://redmine.mygui.info/wiki/index.php/Config_Functions"/>
				<updated>2010-04-03T21:10:53Z</updated>
		
		<summary type="html">&lt;p&gt;Queeshai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Scripts]]&lt;br /&gt;
These '''config functions''' may only be called from inside [[Hook Functions|configGame()]].&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
 void '''addAIPlayer'''( string name, string avatar, int team );&lt;br /&gt;
 // all parameters are ignored for now&lt;br /&gt;
 &lt;br /&gt;
 void '''setMapSize'''( int x, int y );&lt;br /&gt;
 // 3 &amp;lt;= x &amp;lt;= 17&lt;br /&gt;
 // 3 &amp;lt;= y &amp;lt;= 17&lt;br /&gt;
 &lt;br /&gt;
 void '''setNumPlayers'''( int n );&lt;br /&gt;
 // 1 &amp;lt;= n &amp;lt;= 4&lt;br /&gt;
 &lt;br /&gt;
 void '''setGloryGoal'''( int n );&lt;br /&gt;
 &lt;br /&gt;
 void '''setMapSeed'''( int seed );&lt;br /&gt;
 // you can set this if you always want the script to be on the same map&lt;br /&gt;
 &lt;br /&gt;
 void '''setNumFluxWells'''( int numberOfWells );&lt;br /&gt;
 &lt;br /&gt;
 void '''dontNeedDecks'''();&lt;br /&gt;
 // won't ask the player to set a deck when they join&lt;/div&gt;</summary>
		<author><name>Queeshai</name></author>	</entry>

	<entry>
		<id>http://redmine.mygui.info/wiki/index.php/Location_Functions</id>
		<title>Location Functions</title>
		<link rel="alternate" type="text/html" href="http://redmine.mygui.info/wiki/index.php/Location_Functions"/>
				<updated>2010-04-03T21:02:13Z</updated>
		
		<summary type="html">&lt;p&gt;Queeshai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Scripts]]&lt;br /&gt;
A location object represents a particular hex on the playing map.  See the [[Coordinate System]] page for more info.&lt;br /&gt;
&lt;br /&gt;
== Constructors ==&lt;br /&gt;
 Location '''createLocation'''( int x, int y );&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
 bool '''isAloft'''(); &lt;br /&gt;
 // false if an Aloft guy is grounded after melee&lt;br /&gt;
 &lt;br /&gt;
 bool '''isValid'''();&lt;/div&gt;</summary>
		<author><name>Queeshai</name></author>	</entry>

	<entry>
		<id>http://redmine.mygui.info/wiki/index.php/Location_Functions</id>
		<title>Location Functions</title>
		<link rel="alternate" type="text/html" href="http://redmine.mygui.info/wiki/index.php/Location_Functions"/>
				<updated>2010-04-03T21:01:37Z</updated>
		
		<summary type="html">&lt;p&gt;Queeshai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Scripts]]&lt;br /&gt;
A location object represents a particular hex on the playing map.  See the [[Coordinate System]] page for more info.&lt;br /&gt;
&lt;br /&gt;
== Constructors ==&lt;br /&gt;
 Location createLocation( int x, int y );&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
 bool '''isAloft'''(); &lt;br /&gt;
 // false if an Aloft guy is grounded after melee&lt;br /&gt;
 &lt;br /&gt;
 bool '''isValid'''();&lt;/div&gt;</summary>
		<author><name>Queeshai</name></author>	</entry>

	<entry>
		<id>http://redmine.mygui.info/wiki/index.php/Card_Functions</id>
		<title>Card Functions</title>
		<link rel="alternate" type="text/html" href="http://redmine.mygui.info/wiki/index.php/Card_Functions"/>
				<updated>2010-04-03T21:01:19Z</updated>
		
		<summary type="html">&lt;p&gt;Queeshai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Scripts]]&lt;br /&gt;
A card object represents a TFW playing card (and all the associated properties).&lt;br /&gt;
&lt;br /&gt;
== Constructors ==&lt;br /&gt;
No global constructors; returned by Player.getHandCard() and Player.getDeckCard().&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
 string '''getName'''();&lt;br /&gt;
 // returns the label of the card, e.g., &amp;quot;Tangler&amp;quot; or &amp;quot;Crypt Doctor&amp;quot;&lt;/div&gt;</summary>
		<author><name>Queeshai</name></author>	</entry>

	<entry>
		<id>http://redmine.mygui.info/wiki/index.php/Location_Functions</id>
		<title>Location Functions</title>
		<link rel="alternate" type="text/html" href="http://redmine.mygui.info/wiki/index.php/Location_Functions"/>
				<updated>2010-04-03T21:00:42Z</updated>
		
		<summary type="html">&lt;p&gt;Queeshai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Scripts]]&lt;br /&gt;
A location object represents a particular hex on the playing map.  See the [[Coordinate System]] page for more info.&lt;br /&gt;
&lt;br /&gt;
== Constructors ==&lt;br /&gt;
 Location createLocation( int x, int y );&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
 bool isAloft(); &lt;br /&gt;
 // false if an Aloft guy is grounded after melee&lt;br /&gt;
 &lt;br /&gt;
 bool isValid();&lt;/div&gt;</summary>
		<author><name>Queeshai</name></author>	</entry>

	<entry>
		<id>http://redmine.mygui.info/wiki/index.php/Location_Functions</id>
		<title>Location Functions</title>
		<link rel="alternate" type="text/html" href="http://redmine.mygui.info/wiki/index.php/Location_Functions"/>
				<updated>2010-04-03T20:39:12Z</updated>
		
		<summary type="html">&lt;p&gt;Queeshai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Scripts]]&lt;br /&gt;
Location objects represent a particular hex on the playing map.  See the [[Coordinate System]] page for more info.&lt;br /&gt;
&lt;br /&gt;
== Constructors ==&lt;br /&gt;
 Location createLocation( int x, int y );&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
 bool isAloft(); &lt;br /&gt;
 // false if an Aloft guy is grounded after melee&lt;br /&gt;
 &lt;br /&gt;
 bool isValid();&lt;/div&gt;</summary>
		<author><name>Queeshai</name></author>	</entry>

	<entry>
		<id>http://redmine.mygui.info/wiki/index.php/Location_Functions</id>
		<title>Location Functions</title>
		<link rel="alternate" type="text/html" href="http://redmine.mygui.info/wiki/index.php/Location_Functions"/>
				<updated>2010-04-03T20:35:48Z</updated>
		
		<summary type="html">&lt;p&gt;Queeshai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Scripts]]&lt;br /&gt;
&lt;br /&gt;
== Constructors ==&lt;br /&gt;
 Location createLocation( int x, int y );&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
 bool isAloft(); &lt;br /&gt;
 // false if an Aloft guy is grounded after melee&lt;br /&gt;
 &lt;br /&gt;
 bool isValid();&lt;/div&gt;</summary>
		<author><name>Queeshai</name></author>	</entry>

	<entry>
		<id>http://redmine.mygui.info/wiki/index.php/Global_Functions</id>
		<title>Global Functions</title>
		<link rel="alternate" type="text/html" href="http://redmine.mygui.info/wiki/index.php/Global_Functions"/>
				<updated>2010-04-03T19:16:40Z</updated>
		
		<summary type="html">&lt;p&gt;Queeshai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Scripts]]&lt;br /&gt;
'''Global functions''' can be called from anywhere in your scripts.&lt;br /&gt;
&lt;br /&gt;
 Entity '''createEntity'''( string CardName, int x_coord, int y_coord, Player controller );&lt;br /&gt;
 Entity '''createEntity'''( string CardName,Location loc, Player controller );&lt;br /&gt;
 Entity '''createEntity'''( string CardName,Location loc );&lt;br /&gt;
 &lt;br /&gt;
 Location '''createLocation'''( int x, int y );&lt;br /&gt;
 &lt;br /&gt;
 Player '''getAIPlayer'''( int index );&lt;br /&gt;
 &lt;br /&gt;
 Player '''getHumanPlayer'''( int index );&lt;br /&gt;
 &lt;br /&gt;
 void '''setTerrain'''( Location loc, int topo, int veg );&lt;br /&gt;
 int '''getTopo'''( Location loc );&lt;br /&gt;
 int '''getVeg'''( Location loc );&lt;br /&gt;
 // topo: ocean=1, soggy=2, flat=3, hills=4, mountain=5&lt;br /&gt;
 // veg: desert=1 ,grass=2 ,forest=3&lt;br /&gt;
 &lt;br /&gt;
 Entity '''getFigure'''( Location loc );&lt;br /&gt;
 &lt;br /&gt;
 void '''forEachEntity'''();&lt;br /&gt;
 // call [[Hook Functions|entityCallback()]] once for each Entity in the game.&lt;br /&gt;
 &lt;br /&gt;
 void '''enchantEntity'''( Entity toEnchant, string enchantName, Player enchantController );&lt;br /&gt;
 &lt;br /&gt;
 void '''endGame'''( Player winner );&lt;br /&gt;
 &lt;br /&gt;
 void '''flipTheScript'''( int scriptID );&lt;br /&gt;
 // changes what script is being used for the game&lt;br /&gt;
 // doesn't preserve global variables yet&lt;br /&gt;
 &lt;br /&gt;
 int rand( int max );&lt;br /&gt;
 // return an integer from 0 to max-1&lt;br /&gt;
 &lt;br /&gt;
 bool randChance( float chance );&lt;br /&gt;
 // return true with probability equal to chance&lt;br /&gt;
 &lt;br /&gt;
 void '''infoBox'''( string title, string text );&lt;br /&gt;
 // display text in a pop up box to all the players&lt;br /&gt;
 &lt;br /&gt;
 void '''statusMsg'''( Player from, string msg );&lt;br /&gt;
 // Prints a message from a player in the battle log. &lt;br /&gt;
 // just pass an empty player to make the message from the server&lt;br /&gt;
 &lt;br /&gt;
 void '''wipeEffect'''();&lt;/div&gt;</summary>
		<author><name>Queeshai</name></author>	</entry>

	<entry>
		<id>http://redmine.mygui.info/wiki/index.php/Hook_Functions</id>
		<title>Hook Functions</title>
		<link rel="alternate" type="text/html" href="http://redmine.mygui.info/wiki/index.php/Hook_Functions"/>
				<updated>2010-04-03T18:51:16Z</updated>
		
		<summary type="html">&lt;p&gt;Queeshai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Scripts]]&lt;br /&gt;
The scripts you write interact with the game via a collection of hook functions. These functions are called by the game at the appropriate times and execute your code.&lt;br /&gt;
&lt;br /&gt;
== Implemented ==&lt;br /&gt;
 void '''configGame'''(); &lt;br /&gt;
 // Sets up the game state such as # of players, Map Size, if they need to set a deck or not, etc&lt;br /&gt;
 [[Config Functions]]&lt;br /&gt;
 &lt;br /&gt;
 void '''beforeStart'''(); &lt;br /&gt;
 // Do things here before any action. Place creatures and buildings, change their decks etc.&lt;br /&gt;
 &lt;br /&gt;
 void '''afterStart'''();&lt;br /&gt;
 // Send any welcome messages here&lt;br /&gt;
 &lt;br /&gt;
 void '''onNewRound'''();&lt;br /&gt;
 // called after all the new round events&lt;br /&gt;
 &lt;br /&gt;
 void '''onPlayersTurn'''(Player player);&lt;br /&gt;
  &lt;br /&gt;
 bool '''entityCallback'''(Entity entity)&lt;br /&gt;
 // called for each entity in the game if you call forEachEntity();&lt;br /&gt;
 &lt;br /&gt;
 void '''onDialogResponse'''(Player player,int resp);&lt;br /&gt;
&lt;br /&gt;
== Not implemented yet ==&lt;br /&gt;
 void '''afterAction'''();&lt;br /&gt;
 &lt;br /&gt;
 bool '''canPass'''(Player player);&lt;br /&gt;
 // called when the real players try to pass.&lt;br /&gt;
 // This is so you can ensure they do a particular action before passing.&lt;/div&gt;</summary>
		<author><name>Queeshai</name></author>	</entry>

	<entry>
		<id>http://redmine.mygui.info/wiki/index.php/Scripting</id>
		<title>Scripting</title>
		<link rel="alternate" type="text/html" href="http://redmine.mygui.info/wiki/index.php/Scripting"/>
				<updated>2010-04-03T18:42:38Z</updated>
		
		<summary type="html">&lt;p&gt;Queeshai: Fixed typo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Scripts]]&lt;br /&gt;
Scripts are written in [http://www.angelcode.com/angelscript/sdk/docs/manual/index.html AngelScript], it has syntax similar to C.  Create your scripts [http://thefarwilds.com/story/login.html here].  If you want something ask for it in the [http://thefarwilds.com/forum/viewforum.php?f=14 forum].&lt;br /&gt;
&lt;br /&gt;
The scripts you write interact with the game via a collection of [[Hook Functions]].  These hook functions are called by the game at the appropriate times and execute your code.  See the [[#Examples]] section for more details.&lt;br /&gt;
&lt;br /&gt;
== API ==&lt;br /&gt;
* [[Hook Functions]]&lt;br /&gt;
* [[Global Functions]]&lt;br /&gt;
* [[Config Functions]]&lt;br /&gt;
* [[Player Functions]]&lt;br /&gt;
* [[Entity Functions]]&lt;br /&gt;
* [[Location Functions]]&lt;br /&gt;
* [[Card Functions]]&lt;br /&gt;
* [[Action Functions]]&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
[[Scripting Examples]]&lt;br /&gt;
&lt;br /&gt;
== Helpful Hints ==&lt;br /&gt;
[[Coordinate System]] : Coordinates in TFW are a bit weird. This page explains.&lt;/div&gt;</summary>
		<author><name>Queeshai</name></author>	</entry>

	<entry>
		<id>http://redmine.mygui.info/wiki/index.php/Scripting</id>
		<title>Scripting</title>
		<link rel="alternate" type="text/html" href="http://redmine.mygui.info/wiki/index.php/Scripting"/>
				<updated>2010-04-03T18:42:20Z</updated>
		
		<summary type="html">&lt;p&gt;Queeshai: changed category name&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Scrips]]&lt;br /&gt;
Scripts are written in [http://www.angelcode.com/angelscript/sdk/docs/manual/index.html AngelScript], it has syntax similar to C.  Create your scripts [http://thefarwilds.com/story/login.html here].  If you want something ask for it in the [http://thefarwilds.com/forum/viewforum.php?f=14 forum].&lt;br /&gt;
&lt;br /&gt;
The scripts you write interact with the game via a collection of [[Hook Functions]].  These hook functions are called by the game at the appropriate times and execute your code.  See the [[#Examples]] section for more details.&lt;br /&gt;
&lt;br /&gt;
== API ==&lt;br /&gt;
* [[Hook Functions]]&lt;br /&gt;
* [[Global Functions]]&lt;br /&gt;
* [[Config Functions]]&lt;br /&gt;
* [[Player Functions]]&lt;br /&gt;
* [[Entity Functions]]&lt;br /&gt;
* [[Location Functions]]&lt;br /&gt;
* [[Card Functions]]&lt;br /&gt;
* [[Action Functions]]&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
[[Scripting Examples]]&lt;br /&gt;
&lt;br /&gt;
== Helpful Hints ==&lt;br /&gt;
[[Coordinate System]] : Coordinates in TFW are a bit weird. This page explains.&lt;/div&gt;</summary>
		<author><name>Queeshai</name></author>	</entry>

	<entry>
		<id>http://redmine.mygui.info/wiki/index.php/Scripting</id>
		<title>Scripting</title>
		<link rel="alternate" type="text/html" href="http://redmine.mygui.info/wiki/index.php/Scripting"/>
				<updated>2010-04-03T18:37:10Z</updated>
		
		<summary type="html">&lt;p&gt;Queeshai: apparently mediawiki is case sensitive&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Scripting]]&lt;br /&gt;
Scripts are written in [http://www.angelcode.com/angelscript/sdk/docs/manual/index.html AngelScript], it has syntax similar to C.  Create your scripts [http://thefarwilds.com/story/login.html here].  If you want something ask for it in the [http://thefarwilds.com/forum/viewforum.php?f=14 forum].&lt;br /&gt;
&lt;br /&gt;
The scripts you write interact with the game via a collection of [[Hook Functions]].  These hook functions are called by the game at the appropriate times and execute your code.  See the [[#Examples]] section for more details.&lt;br /&gt;
&lt;br /&gt;
== API ==&lt;br /&gt;
* [[Hook Functions]]&lt;br /&gt;
* [[Global Functions]]&lt;br /&gt;
* [[Config Functions]]&lt;br /&gt;
* [[Player Functions]]&lt;br /&gt;
* [[Entity Functions]]&lt;br /&gt;
* [[Location Functions]]&lt;br /&gt;
* [[Card Functions]]&lt;br /&gt;
* [[Action Functions]]&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
[[Scripting Examples]]&lt;br /&gt;
&lt;br /&gt;
== Helpful Hints ==&lt;br /&gt;
[[Coordinate System]] : Coordinates in TFW are a bit weird. This page explains.&lt;/div&gt;</summary>
		<author><name>Queeshai</name></author>	</entry>

	<entry>
		<id>http://redmine.mygui.info/wiki/index.php/Scripting</id>
		<title>Scripting</title>
		<link rel="alternate" type="text/html" href="http://redmine.mygui.info/wiki/index.php/Scripting"/>
				<updated>2010-04-03T18:36:14Z</updated>
		
		<summary type="html">&lt;p&gt;Queeshai: Added headings, cleaned up structure, referenced hook functions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Scripting]]&lt;br /&gt;
Scripts are written in [http://www.angelcode.com/angelscript/sdk/docs/manual/index.html AngelScript], it has syntax similar to C.  Create your scripts [http://thefarwilds.com/story/login.html here].  If you want something ask for it in the [http://thefarwilds.com/forum/viewforum.php?f=14 forum].&lt;br /&gt;
&lt;br /&gt;
The scripts you write interact with the game via a collection of [[hook functions]].  These hook functions are called by the game at the appropriate times and execute your code.  See the [[#Examples]] section for more details.&lt;br /&gt;
&lt;br /&gt;
== API ==&lt;br /&gt;
* [[Hook Functions]]&lt;br /&gt;
* [[Global Functions]]&lt;br /&gt;
* [[Config Functions]]&lt;br /&gt;
* [[Player Functions]]&lt;br /&gt;
* [[Entity Functions]]&lt;br /&gt;
* [[Location Functions]]&lt;br /&gt;
* [[Card Functions]]&lt;br /&gt;
* [[Action Functions]]&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
[[Scripting Examples]]&lt;br /&gt;
&lt;br /&gt;
== Helpful Hints ==&lt;br /&gt;
[[Coordinate System]] : Coordinates in TFW are a bit weird. This page explains.&lt;/div&gt;</summary>
		<author><name>Queeshai</name></author>	</entry>

	<entry>
		<id>http://redmine.mygui.info/wiki/index.php/Hook_Functions</id>
		<title>Hook Functions</title>
		<link rel="alternate" type="text/html" href="http://redmine.mygui.info/wiki/index.php/Hook_Functions"/>
				<updated>2010-04-03T18:34:45Z</updated>
		
		<summary type="html">&lt;p&gt;Queeshai: Script Functions moved to Hook Functions: &amp;quot;Script Functions&amp;quot; is kind of vague -- all functions are script functions, no?&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Scripting]]&lt;br /&gt;
These are functions you can implement in your scripts. They are call at the appropriate times by the game.&lt;br /&gt;
&lt;br /&gt;
 void '''configGame'''(); &lt;br /&gt;
 // Sets up the game state such as # of players, Map Size, if they need to set a deck or not, etc&lt;br /&gt;
 [[Config Functions]]&lt;br /&gt;
 &lt;br /&gt;
 void '''beforeStart'''(); &lt;br /&gt;
 // Do things here before any action. Place creatures and buildings, change their decks etc.&lt;br /&gt;
 &lt;br /&gt;
 void '''afterStart'''();&lt;br /&gt;
 // Send any welcome messages here&lt;br /&gt;
 &lt;br /&gt;
 void '''onNewRound'''();&lt;br /&gt;
 // called after all the new round events&lt;br /&gt;
 &lt;br /&gt;
 void '''onPlayersTurn'''(Player player); &lt;br /&gt;
 bool '''entityCallback'''(Entity entity)&lt;br /&gt;
 // called for each entity in the game if you call forEachEntity();&lt;br /&gt;
 &lt;br /&gt;
 void '''onDialogResponse'''(Player player,int resp);&lt;br /&gt;
&lt;br /&gt;
 void '''afterAction'''(); // not yet&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 bool '''canPass'''(Player player); // not yet&lt;br /&gt;
 // called when the real players try to pass. &lt;br /&gt;
 // This is so you can ensure they do a particular action before passing.&lt;/div&gt;</summary>
		<author><name>Queeshai</name></author>	</entry>

	<entry>
		<id>http://redmine.mygui.info/wiki/index.php/Script_Functions</id>
		<title>Script Functions</title>
		<link rel="alternate" type="text/html" href="http://redmine.mygui.info/wiki/index.php/Script_Functions"/>
				<updated>2010-04-03T18:34:45Z</updated>
		
		<summary type="html">&lt;p&gt;Queeshai: Script Functions moved to Hook Functions: &amp;quot;Script Functions&amp;quot; is kind of vague -- all functions are script functions, no?&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Hook Functions]]&lt;/div&gt;</summary>
		<author><name>Queeshai</name></author>	</entry>

	</feed>