http://www.oxeyegames.com/wiki/index.php?title=Special:Contributions&feed=atom&limit=250&target=166+MMXOxeyeWiki - User contributions [en]2024-03-28T10:02:41ZFrom OxeyeWikiMediaWiki 1.16.0http://www.oxeyegames.com/wiki/index.php/Template:TnavbarTemplate:Tnavbar2009-12-03T16:11:57Z<p>166 MMX: Created page with '<noinclude>== Preview ==</noinclude> <span class="noprint plainlinksneverexpand" style="white-space:nowrap; font-weight:normal; font-size:xx-small; {{{fontstyle|}}}; {{#if:{{{fon...'</p>
<hr />
<div><noinclude>== Preview ==</noinclude><br />
<span class="noprint plainlinksneverexpand" style="white-space:nowrap; font-weight:normal; font-size:xx-small; {{{fontstyle|}}}; {{#if:{{{fontcolor|}}}|color:{{{fontcolor}}};}} {{{style|}}}"><!--<br />
<br />
-->{{#ifeq:{{{mini|}}}{{{miniv|}}}{{{plain|}}}{{{viewplain|}}}|<!--equals:-->1|<!--then:<br />
-->|<!--else:<br />
-->This box:&nbsp;<!--<br />
-->}}<!--<br />
<br />
-->{{#ifeq:{{{miniv|}}}{{{viewplain|}}}|<!--equals:-->1|<!--then:<br />
-->[[Template:{{{1}}}|<span title="View this template" style="{{{fontstyle|}}};{{#if:{{{fontcolor|}}}|color:{{{fontcolor}}};}}">{{#if:{{{viewplain|}}}|view|v}}</span>]]|<!--else:<br />
-->[[Template:{{{1}}}|<span title="View this template" style="{{{fontstyle|}}};{{#if:{{{fontcolor|}}}|color:{{{fontcolor}}};}}">{{#if:{{{mini|}}}|v|view}}</span>]]&nbsp;<span style="font-size:80%;">•</span>&nbsp;[[Template talk:{{{1}}}|<span style="color:#002bb8;{{{fontstyle|}}};{{#if:{{{fontcolor|}}}|color:{{{fontcolor}}};}}" title="Discussion about this template">{{#if:{{{mini|}}}|d|talk}}</span>]]&nbsp;<span style="font-size:80%;">•</span>&nbsp;[{{fullurl:{{ns:10}}:{{{1}}}|action=edit}} <span style="color:#002bb8;{{{fontstyle|}}};{{#if:{{{fontcolor|}}}|color:{{{fontcolor}}};}}" title="You can edit this template. Please use the preview button before saving.">{{#if:{{{mini|}}}|e|edit}}</span>]<!--<br />
-->}} </span>&nbsp;<br />
<noinclude>== Resources ==<br />
*http://en.wikipedia.org/wiki/Wikipedia:WikiProject_Transwiki/Template:Tnavbar</noinclude></div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/Template:NavboxTemplate:Navbox2009-12-03T16:10:25Z<p>166 MMX: </p>
<hr />
<div><noinclude>== Preview ==</noinclude><br />
{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=|none=|#default=<nowiki/><br />
{{{!}} class="navbox" cellspacing="0" style="{{{bodystyle|}}};{{{style|}}}"<br />
{{!}}-<br />
{{!}} style="padding:2px;" {{!}} }}<br />
{{{!}} cellspacing="0" class="nowraplinks {{#if:{{{title|}}}|{{#switch:{{{state|}}}|plain|off=|#default=collapsible {{#if:{{{state|}}}|{{{state|}}}|autocollapse}}}}}} {{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=navbox-subgroup" style="width:100%;{{{bodystyle|}}};{{{style|}}}|#default=" style="width:100%;background:transparent;color:inherit}};{{{innerstyle|}}};" <!--<br />
<br />
<br />
---Title and Navbar---<br />
-->{{#if:{{{title|}}}|<nowiki/><br />
{{!}}- {{#if:{{{titlegroup|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{titlegroupstyle|}}}" {{!}} {{{titlegroup|}}}<br />
! style="border-left:2px solid #fdfdfd;width:100%;|<nowiki/><br />
! style="}}{{{basestyle|}}};{{{titlestyle|}}}" colspan={{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}{{#if:{{{titlegroup|}}}|-1}}}} class="navbox-title" {{!}} {{#if:{{#switch:{{{navbar|}}}|plain|off=1}} {{#if:{{{name|}}}||{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=1}}}}| {{#ifeq:{{{navbar|}}}|off|{{#ifeq:{{{state|}}}|plain|<div style="float:right;width:6em;">&nbsp;</div>}}| {{#ifeq:{{{state|}}}|plain||<div style="float:left; width:6em;text-align:left;">&nbsp;</div>}}}}| <div style="float:left; width:6em;text-align:left;"> {{Tnavbar|{{{name}}}|fontstyle={{{basestyle|}}};{{{titlestyle|}}};border:none;|mini=1}} </div>{{#ifeq:{{{state|}}}|plain|<div style="float:right;width:6em;">&nbsp;</div>}}}} <span style="font-size:{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=100|#default=110}}%;"> {{{title}}}</span> }}<!--<br />
<br />
<br />
---Above---<br />
-->{{#if:{{{above|}}}| {{#if:{{{title|}}}|<nowiki/><br />
{{!}}- style="height:2px;"<br />
{{!}} }}<br />
{{!}}-<br />
{{!}} class="navbox-abovebelow" style="{{{basestyle|}}};{{{abovestyle|}}}" colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}" {{!}} {{{above}}} }}<!--<br />
<br />
<br />
<br />
---Body---<br />
<br />
---First group/list and images---<br />
-->{{#if:{{{list1|}}}|{{#if:{{{title|}}}{{{above|}}}|<nowiki/><br />
{{!}}- style="height:2px;"<br />
{{!}} }}<br />
{{!}}-<!--<br />
<br />
-->{{#if:{{{imageleft|}}}|<nowiki/><br />
{{!}} style="width:0%;padding:0px 2px 0px 0px;{{{imageleftstyle|}}}" rowspan={{#expr:1{{#if:{{{list2|}}}|+2}}{{#if:{{{list3|}}}|+2}}{{#if:{{{list4|}}}|+2}}{{#if:{{{list5|}}}|+2}}{{#if:{{{list6|}}}|+2}}{{#if:{{{list7|}}}|+2}}{{#if:{{{list8|}}}|+2}}{{#if:{{{list9|}}}|+2}}{{#if:{{{list10|}}}|+2}}{{#if:{{{list11|}}}|+2}}{{#if:{{{list12|}}}|+2}}{{#if:{{{list13|}}}|+2}}{{#if:{{{list14|}}}|+2}}{{#if:{{{list15|}}}|+2}}{{#if:{{{list16|}}}|+2}}{{#if:{{{list17|}}}|+2}}{{#if:{{{list18|}}}|+2}}{{#if:{{{list19|}}}|+2}}{{#if:{{{list20|}}}|+2}}}} {{!}} {{{imageleft|}}} }}<!--<br />
<br />
-->{{#if:{{{group1|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group1style|}}}" {{!}} {{{group1}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list1style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}" {{!}} <div style="padding:{{{list1padding|{{{listpadding|0em 0.25em}}}}}}">{{{list1|}}}</div><!--<br />
<br />
-->{{#if:{{{image|}}}|<nowiki/><br />
{{!}} style="width:0%;padding:0px 0px 0px 2px;{{{imagestyle|}}}" rowspan={{#expr:1{{#if:{{{list2|}}}|+2}}{{#if:{{{list3|}}}|+2}}{{#if:{{{list4|}}}|+2}}{{#if:{{{list5|}}}|+2}}{{#if:{{{list6|}}}|+2}}{{#if:{{{list7|}}}|+2}}{{#if:{{{list8|}}}|+2}}{{#if:{{{list9|}}}|+2}}{{#if:{{{list10|}}}|+2}}{{#if:{{{list11|}}}|+2}}{{#if:{{{list12|}}}|+2}}{{#if:{{{list13|}}}|+2}}{{#if:{{{list14|}}}|+2}}{{#if:{{{list15|}}}|+2}}{{#if:{{{list16|}}}|+2}}{{#if:{{{list17|}}}|+2}}{{#if:{{{list18|}}}|+2}}{{#if:{{{list19|}}}|+2}}{{#if:{{{list20|}}}|+2}}}} {{!}} {{{image|}}} }} }}<!--<br />
<br />
<br />
---Remaining groups/lists---<br />
<br />
-->{{#if:{{{list2|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list1|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group2|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group2style|}}}" {{!}} {{{group2}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list2style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list2|}}}</div>}}<!--<br />
<br />
-->{{#if:{{{list3|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list2|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group3|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group3style|}}}" {{!}} {{{group3}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list3style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list3|}}}</div> }}<!--<br />
<br />
-->{{#if:{{{list4|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list3|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group4|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group4style|}}}" {{!}} {{{group4}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list4style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list4|}}}</div> }}<!--<br />
<br />
-->{{#if:{{{list5|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list4|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group5|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group5style|}}}" {{!}} {{{group5}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list5style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list5|}}}</div> }}<!--<br />
<br />
-->{{#if:{{{list6|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list5|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group6|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group6style|}}}" {{!}} {{{group6}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list6style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list6|}}}</div> }}<!--<br />
<br />
-->{{#if:{{{list7|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list6|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group7|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group7style|}}}" {{!}} {{{group7}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list7style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list7|}}}</div> }}<!--<br />
<br />
-->{{#if:{{{list8|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list7|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group8|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group8style|}}}" {{!}} {{{group8}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list8style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list8|}}}</div> }}<!--<br />
<br />
-->{{#if:{{{list9|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list8|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group9|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group9style|}}}" {{!}} {{{group9}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list9style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list9|}}}</div> }}<!--<br />
<br />
-->{{#if:{{{list10|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list9|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group10|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group10style|}}}" {{!}} {{{group10}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list10style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list10|}}}</div> }}<!--<br />
<br />
-->{{#if:{{{list11|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list10|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group11|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group11style|}}}" {{!}} {{{group11}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list11style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list11|}}}</div> }}<!--<br />
<br />
-->{{#if:{{{list12|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list11|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group12|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group12style|}}}" {{!}} {{{group12}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list12style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list12|}}}</div> }}<!--<br />
<br />
-->{{#if:{{{list13|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list12|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group13|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group13style|}}}" {{!}} {{{group13}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list13style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list13|}}}</div> }}<!--<br />
<br />
-->{{#if:{{{list14|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list13|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group14|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group14style|}}}" {{!}} {{{group14}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list14style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list14|}}}</div> }}<!--<br />
<br />
-->{{#if:{{{list15|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list14|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group15|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group15style|}}}" {{!}} {{{group15}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list15style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list15|}}}</div> }}<!--<br />
<br />
-->{{#if:{{{list16|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list15|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group16|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group16style|}}}" {{!}} {{{group16}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list16style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list16|}}}</div> }}<!--<br />
<br />
-->{{#if:{{{list17|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list16|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group17|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group17style|}}}" {{!}} {{{group17}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list17style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list17|}}}</div> }}<!--<br />
<br />
-->{{#if:{{{list18|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list17|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group18|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group18style|}}}" {{!}} {{{group18}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list18style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list18|}}}</div> }}<!--<br />
<br />
-->{{#if:{{{list19|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list18|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group19|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group19style|}}}" {{!}} {{{group19}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list19style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list19|}}}</div> }}<!--<br />
<br />
-->{{#if:{{{list20|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list19|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group20|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group20style|}}}" {{!}} {{{group20}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list20style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list20|}}}</div> }}<!--<br />
<br />
---Below---<br />
-->{{#if:{{{below|}}}|<!--<br />
-->{{#if:{{{title|}}}{{{above|}}}{{{list1|}}}{{{list2|}}}{{{list3|}}}|<nowiki/><br />
{{!}}- style="height:2px;"<br />
{{!}} }}<br />
{{!}}-<br />
{{!}} class="navbox-abovebelow" style="{{{basestyle|}}};{{{belowstyle|}}}" colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}" {{!}} {{{below}}} }}<br />
{{!}}}{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=|none=|#default=<nowiki/><br />
{{!}}} }}<br />
<noinclude>== Resources ==<br />
*http://en.wikipedia.org/wiki/Wikipedia:WikiProject_Transwiki/Template:Navbox</noinclude></div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/Template:%C2%B7Template:·2009-12-03T16:08:55Z<p>166 MMX: </p>
<hr />
<div><noinclude>== Preview ==</noinclude><br />
<span style="font-weight:bold;">&nbsp;·</span><br />
<noinclude>== Resources ==<br />
*http://en.wikipedia.org/wiki/Template:·</noinclude></div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/Template:%C2%B7Template:·2009-12-03T16:07:45Z<p>166 MMX: Created page with '<span style="font-weight:bold;">&nbsp;·</span><noinclude> === Resources === *http://en.wikipedia.org/wiki/Template:· </noinclude>'</p>
<hr />
<div><span style="font-weight:bold;">&nbsp;·</span><noinclude><br />
=== Resources ===<br />
*http://en.wikipedia.org/wiki/Template:·<br />
</noinclude></div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/Template:NavboxTemplate:Navbox2009-12-03T15:57:25Z<p>166 MMX: Created page with '{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=|none=|#default=<nowiki/> {{{!}} class="navbox" cellspacing="0" style="{{{bodystyle|}}};{{{style|}}}" {{!}}- {{!}} style="padding:2...'</p>
<hr />
<div>{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=|none=|#default=<nowiki/><br />
{{{!}} class="navbox" cellspacing="0" style="{{{bodystyle|}}};{{{style|}}}"<br />
{{!}}-<br />
{{!}} style="padding:2px;" {{!}} }}<br />
{{{!}} cellspacing="0" class="nowraplinks {{#if:{{{title|}}}|{{#switch:{{{state|}}}|plain|off=|#default=collapsible {{#if:{{{state|}}}|{{{state|}}}|autocollapse}}}}}} {{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=navbox-subgroup" style="width:100%;{{{bodystyle|}}};{{{style|}}}|#default=" style="width:100%;background:transparent;color:inherit}};{{{innerstyle|}}};" <!--<br />
<br />
<br />
---Title and Navbar---<br />
-->{{#if:{{{title|}}}|<nowiki/><br />
{{!}}- {{#if:{{{titlegroup|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{titlegroupstyle|}}}" {{!}} {{{titlegroup|}}}<br />
! style="border-left:2px solid #fdfdfd;width:100%;|<nowiki/><br />
! style="}}{{{basestyle|}}};{{{titlestyle|}}}" colspan={{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}{{#if:{{{titlegroup|}}}|-1}}}} class="navbox-title" {{!}} {{#if:{{#switch:{{{navbar|}}}|plain|off=1}} {{#if:{{{name|}}}||{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=1}}}}| {{#ifeq:{{{navbar|}}}|off|{{#ifeq:{{{state|}}}|plain|<div style="float:right;width:6em;">&nbsp;</div>}}| {{#ifeq:{{{state|}}}|plain||<div style="float:left; width:6em;text-align:left;">&nbsp;</div>}}}}| <div style="float:left; width:6em;text-align:left;"> {{Tnavbar|{{{name}}}|fontstyle={{{basestyle|}}};{{{titlestyle|}}};border:none;|mini=1}} </div>{{#ifeq:{{{state|}}}|plain|<div style="float:right;width:6em;">&nbsp;</div>}}}} <span style="font-size:{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=100|#default=110}}%;"> {{{title}}}</span> }}<!--<br />
<br />
<br />
---Above---<br />
-->{{#if:{{{above|}}}| {{#if:{{{title|}}}|<nowiki/><br />
{{!}}- style="height:2px;"<br />
{{!}} }}<br />
{{!}}-<br />
{{!}} class="navbox-abovebelow" style="{{{basestyle|}}};{{{abovestyle|}}}" colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}" {{!}} {{{above}}} }}<!--<br />
<br />
<br />
<br />
---Body---<br />
<br />
---First group/list and images---<br />
-->{{#if:{{{list1|}}}|{{#if:{{{title|}}}{{{above|}}}|<nowiki/><br />
{{!}}- style="height:2px;"<br />
{{!}} }}<br />
{{!}}-<!--<br />
<br />
-->{{#if:{{{imageleft|}}}|<nowiki/><br />
{{!}} style="width:0%;padding:0px 2px 0px 0px;{{{imageleftstyle|}}}" rowspan={{#expr:1{{#if:{{{list2|}}}|+2}}{{#if:{{{list3|}}}|+2}}{{#if:{{{list4|}}}|+2}}{{#if:{{{list5|}}}|+2}}{{#if:{{{list6|}}}|+2}}{{#if:{{{list7|}}}|+2}}{{#if:{{{list8|}}}|+2}}{{#if:{{{list9|}}}|+2}}{{#if:{{{list10|}}}|+2}}{{#if:{{{list11|}}}|+2}}{{#if:{{{list12|}}}|+2}}{{#if:{{{list13|}}}|+2}}{{#if:{{{list14|}}}|+2}}{{#if:{{{list15|}}}|+2}}{{#if:{{{list16|}}}|+2}}{{#if:{{{list17|}}}|+2}}{{#if:{{{list18|}}}|+2}}{{#if:{{{list19|}}}|+2}}{{#if:{{{list20|}}}|+2}}}} {{!}} {{{imageleft|}}} }}<!--<br />
<br />
-->{{#if:{{{group1|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group1style|}}}" {{!}} {{{group1}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list1style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}" {{!}} <div style="padding:{{{list1padding|{{{listpadding|0em 0.25em}}}}}}">{{{list1|}}}</div><!--<br />
<br />
-->{{#if:{{{image|}}}|<nowiki/><br />
{{!}} style="width:0%;padding:0px 0px 0px 2px;{{{imagestyle|}}}" rowspan={{#expr:1{{#if:{{{list2|}}}|+2}}{{#if:{{{list3|}}}|+2}}{{#if:{{{list4|}}}|+2}}{{#if:{{{list5|}}}|+2}}{{#if:{{{list6|}}}|+2}}{{#if:{{{list7|}}}|+2}}{{#if:{{{list8|}}}|+2}}{{#if:{{{list9|}}}|+2}}{{#if:{{{list10|}}}|+2}}{{#if:{{{list11|}}}|+2}}{{#if:{{{list12|}}}|+2}}{{#if:{{{list13|}}}|+2}}{{#if:{{{list14|}}}|+2}}{{#if:{{{list15|}}}|+2}}{{#if:{{{list16|}}}|+2}}{{#if:{{{list17|}}}|+2}}{{#if:{{{list18|}}}|+2}}{{#if:{{{list19|}}}|+2}}{{#if:{{{list20|}}}|+2}}}} {{!}} {{{image|}}} }} }}<!--<br />
<br />
<br />
---Remaining groups/lists---<br />
<br />
-->{{#if:{{{list2|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list1|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group2|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group2style|}}}" {{!}} {{{group2}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list2style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list2|}}}</div>}}<!--<br />
<br />
-->{{#if:{{{list3|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list2|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group3|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group3style|}}}" {{!}} {{{group3}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list3style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list3|}}}</div> }}<!--<br />
<br />
-->{{#if:{{{list4|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list3|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group4|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group4style|}}}" {{!}} {{{group4}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list4style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list4|}}}</div> }}<!--<br />
<br />
-->{{#if:{{{list5|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list4|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group5|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group5style|}}}" {{!}} {{{group5}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list5style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list5|}}}</div> }}<!--<br />
<br />
-->{{#if:{{{list6|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list5|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group6|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group6style|}}}" {{!}} {{{group6}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list6style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list6|}}}</div> }}<!--<br />
<br />
-->{{#if:{{{list7|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list6|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group7|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group7style|}}}" {{!}} {{{group7}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list7style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list7|}}}</div> }}<!--<br />
<br />
-->{{#if:{{{list8|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list7|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group8|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group8style|}}}" {{!}} {{{group8}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list8style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list8|}}}</div> }}<!--<br />
<br />
-->{{#if:{{{list9|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list8|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group9|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group9style|}}}" {{!}} {{{group9}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list9style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list9|}}}</div> }}<!--<br />
<br />
-->{{#if:{{{list10|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list9|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group10|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group10style|}}}" {{!}} {{{group10}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list10style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list10|}}}</div> }}<!--<br />
<br />
-->{{#if:{{{list11|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list10|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group11|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group11style|}}}" {{!}} {{{group11}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list11style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list11|}}}</div> }}<!--<br />
<br />
-->{{#if:{{{list12|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list11|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group12|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group12style|}}}" {{!}} {{{group12}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list12style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list12|}}}</div> }}<!--<br />
<br />
-->{{#if:{{{list13|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list12|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group13|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group13style|}}}" {{!}} {{{group13}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list13style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list13|}}}</div> }}<!--<br />
<br />
-->{{#if:{{{list14|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list13|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group14|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group14style|}}}" {{!}} {{{group14}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list14style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list14|}}}</div> }}<!--<br />
<br />
-->{{#if:{{{list15|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list14|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group15|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group15style|}}}" {{!}} {{{group15}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list15style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list15|}}}</div> }}<!--<br />
<br />
-->{{#if:{{{list16|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list15|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group16|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group16style|}}}" {{!}} {{{group16}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list16style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list16|}}}</div> }}<!--<br />
<br />
-->{{#if:{{{list17|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list16|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group17|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group17style|}}}" {{!}} {{{group17}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list17style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list17|}}}</div> }}<!--<br />
<br />
-->{{#if:{{{list18|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list17|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group18|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group18style|}}}" {{!}} {{{group18}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list18style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list18|}}}</div> }}<!--<br />
<br />
-->{{#if:{{{list19|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list18|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group19|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group19style|}}}" {{!}} {{{group19}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list19style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list19|}}}</div> }}<!--<br />
<br />
-->{{#if:{{{list20|}}}| {{#if:{{{title|}}}{{{above|}}}{{{list19|}}}|<nowiki/><br />
{{!}}- style="height:2px"<br />
{{!}} }}<br />
{{!}}- {{#if:{{{group20|}}}|<nowiki/><br />
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group20style|}}}" {{!}} {{{group20}}}<br />
{{!}} style="text-align:left;border-left:2px solid #fdfdfd;|<nowiki/><br />
{{!}} colspan=2 style="}} width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list20style|}}}" class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}" {{!}} <div style="padding:{{{listpadding|0em 0.25em}}}">{{{list20|}}}</div> }}<!--<br />
<br />
---Below---<br />
-->{{#if:{{{below|}}}|<!--<br />
-->{{#if:{{{title|}}}{{{above|}}}{{{list1|}}}{{{list2|}}}{{{list3|}}}|<nowiki/><br />
{{!}}- style="height:2px;"<br />
{{!}} }}<br />
{{!}}-<br />
{{!}} class="navbox-abovebelow" style="{{{basestyle|}}};{{{belowstyle|}}}" colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}" {{!}} {{{below}}} }}<br />
{{!}}}{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=|none=|#default=<nowiki/><br />
{{!}}} }}</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/Template:%3DTemplate:=2009-12-03T15:44:25Z<p>166 MMX: Created page with '='</p>
<hr />
<div>=</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/SpawnParticle_(Harvest)SpawnParticle (Harvest)2009-12-02T22:57:55Z<p>166 MMX: Created page with '{{HarvestMethod | spawnParticle(type, x, y[, z]) | Creates a particle at the given world coordinates. The particle names can be found in this list. | {{MethodParam|type|String|Th...'</p>
<hr />
<div>{{HarvestMethod<br />
|<br />
spawnParticle(type, x, y[, z])<br />
|<br />
Creates a particle at the given world coordinates. The particle names can be found in this list.<br />
|<br />
{{MethodParam|type|String|The particle identifier name.}}<br />
{{MethodParam|x|Number|The x world coordinate.}}<br />
{{MethodParam|y|Number|The y world coordinate.}}<br />
{{MethodParam|z|Number|The z world coordinate.}}<br />
|<br />
Returns nothing.<br />
}}<br />
=== Example ===<br />
<pre><br />
harvest.spawnMissile("SellEvent", 0, 12, 0)<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/RemoveMinerals_(Harvest)RemoveMinerals (Harvest)2009-12-02T22:55:49Z<p>166 MMX: </p>
<hr />
<div>{{HarvestMethod<br />
|<br />
removeMinerals()<br />
<br />
removeMinerals(id)<br />
<br />
removeMinerals(id, amount)<br />
<br />
removeMinerals(x, y, radius)<br />
<br />
removeMinerals(x, y, radius, amount)<br />
<br />
removeMinerals(left, top, right, bottom, amount)<br />
|<br />
This method removes minerals from the map. The method comes in 5 different forms, depending on the number of parameters you use.<br />
<br />
When the 'amount' value is used, the game will look for minerals and modify the number of minerals remaining in those patches. If the number reaches 0, the minerals patch will be removed.<br />
|<br />
{{MethodParam|id|Number|When this value is used, it specifies a specific mineral patch to modify.}}<br />
{{MethodParam|amount|Number|When this value is used, it specifies the amount of minerals to remove from the patch. This value can be negative (which means minerals will be added to the patch).}}<br />
{{MethodParam|x|Number|When this value is used, it specifies the center x coordinate of the search circle.}}<br />
{{MethodParam|y|Number|When this value is used, it specifies the center y coordinate of the search circle.}}<br />
{{MethodParam|radius|Number|When this value is used, it specifies the radius of the search circle.}}<br />
{{MethodParam|left|Number|When this value is used, it specifies the left edge of the search rectangle.}}<br />
{{MethodParam|top|Number|When this value is used, it specifies the top edge of the search rectangle.}}<br />
{{MethodParam|right|Number|When this value is used, it specifies the right edge of the search rectangle.}}<br />
{{MethodParam|bottom|Number|When this value is used, it specifies the bottom edge of the search rectangle.}}<br />
|<br />
Returns nothing.<br />
}}<br />
<br />
=== Example ===<br />
<pre><br />
<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/RemoveMinerals_(Harvest)RemoveMinerals (Harvest)2009-12-02T22:55:40Z<p>166 MMX: </p>
<hr />
<div>{{HarvestMethod<br />
|<br />
removeMinerals()<br />
removeMinerals(id)<br />
removeMinerals(id, amount)<br />
removeMinerals(x, y, radius)<br />
removeMinerals(x, y, radius, amount)<br />
removeMinerals(left, top, right, bottom, amount)<br />
|<br />
This method removes minerals from the map. The method comes in 5 different forms, depending on the number of parameters you use.<br />
<br />
When the 'amount' value is used, the game will look for minerals and modify the number of minerals remaining in those patches. If the number reaches 0, the minerals patch will be removed.<br />
|<br />
{{MethodParam|id|Number|When this value is used, it specifies a specific mineral patch to modify.}}<br />
{{MethodParam|amount|Number|When this value is used, it specifies the amount of minerals to remove from the patch. This value can be negative (which means minerals will be added to the patch).}}<br />
{{MethodParam|x|Number|When this value is used, it specifies the center x coordinate of the search circle.}}<br />
{{MethodParam|y|Number|When this value is used, it specifies the center y coordinate of the search circle.}}<br />
{{MethodParam|radius|Number|When this value is used, it specifies the radius of the search circle.}}<br />
{{MethodParam|left|Number|When this value is used, it specifies the left edge of the search rectangle.}}<br />
{{MethodParam|top|Number|When this value is used, it specifies the top edge of the search rectangle.}}<br />
{{MethodParam|right|Number|When this value is used, it specifies the right edge of the search rectangle.}}<br />
{{MethodParam|bottom|Number|When this value is used, it specifies the bottom edge of the search rectangle.}}<br />
|<br />
Returns nothing.<br />
}}<br />
<br />
=== Example ===<br />
<pre><br />
<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/SpawnBullet_(Harvest)SpawnBullet (Harvest)2009-12-02T22:53:36Z<p>166 MMX: Created page with '{{HarvestMethod | spawnBullet(damage, startX, startY, startZ, goalX, goalY, goalZ) | Creates a dropship bullet at (startX, startY, startZ) heading for (goalX, goalY, goalZ) and e...'</p>
<hr />
<div>{{HarvestMethod<br />
|<br />
spawnBullet(damage, startX, startY, startZ, goalX, goalY, goalZ)<br />
|<br />
Creates a dropship bullet at (startX, startY, startZ) heading for (goalX, goalY, goalZ) and explodes there. Damage will be dealt to all aliens that are found within a circle radius of the target position.<br />
|<br />
{{MethodParam|damage|Number|The damage to be dealt to the aliens.}}<br />
{{MethodParam|sourceX|Number|The source x world coordinate.}}<br />
{{MethodParam|sourceY|Number|The source y world coordinate.}}<br />
{{MethodParam|sourceZ|Number|The source z world coordinate.}}<br />
{{MethodParam|targetX|Number|The target x world coordinate.}}<br />
{{MethodParam|targetY|Number|The target y world coordinate.}}<br />
{{MethodParam|targetZ|Number|The target z world coordinate.}}<br />
|<br />
Returns nothing.<br />
}}<br />
=== Example ===<br />
<pre><br />
harvest.spawnBullet(10, sx, sy, 100, ex, ey, 0)<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/SpawnMinerals_(Harvest)SpawnMinerals (Harvest)2009-12-02T22:50:42Z<p>166 MMX: </p>
<hr />
<div>{{HarvestMethod<br />
|<br />
spawnMinerals(x, y, amount)<br />
|<br />
Adds a new mineral patch containing 'amount' minerals. The function will attempt to stack minerals if possible, which means it will look for minerals nearby (x, y) and add 'amount' to them instead of creating a new one. The mineral's graphics will be chosen depending on the amount.<br />
|<br />
{{MethodParam|x|Number|The x coordinate for the mineral patch.}}<br />
{{MethodParam|y|Number|The y coordinate for the mineral patch.}}<br />
{{MethodParam|amount|Number|The amount of minerals in the mineral patch.}}<br />
|<br />
Returns nothing.<br />
}}<br />
=== Example ===<br />
<pre><br />
harvest.spawnMinerals(0, 0, 100)<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/SpawnMinerals_(Harvest)SpawnMinerals (Harvest)2009-12-02T22:50:24Z<p>166 MMX: </p>
<hr />
<div>{{HarvestMethod<br />
|<br />
spawnMinerals(x, y, amount)<br />
|<br />
Adds a new mineral patch containing 'amount' minerals. The function will attempt to stack minerals if possible, which means it will look for minerals nearby (x, y) and add 'amount' to them instead of creating a new one. The mineral's graphics will be chosen depending on the amount.<br />
|<br />
{{MethodParam|x|Number|The x coordinate for the mineral patch.}}<br />
{{MethodParam|y|Number|The y coordinate for the mineral patch.}}<br />
{{MethodParam|amount|Number|The amount of minerals in the mineral patch.}}<br />
|<br />
Returns nothing.<br />
}}<br />
=== Example ===<br />
<pre><br />
harvest.spawnMinerals(0, 0, 100)<br />
</pre></div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/SpawnEnergySpark_(Harvest)SpawnEnergySpark (Harvest)2009-12-02T22:48:42Z<p>166 MMX: Created page with '{{HarvestMethod | spawnEnergySpark(building) | Creates an energy spark on top of the given building. The spark will select a random target within spark range and travel to that. ...'</p>
<hr />
<div>{{HarvestMethod<br />
|<br />
spawnEnergySpark(building)<br />
|<br />
Creates an energy spark on top of the given building. The spark will select a random target within spark range and travel to that.<br />
|<br />
{{MethodParam|building|Number|The building identifier number to spawn a energy spark at.}}<br />
|<br />
Returns nothing.<br />
}}<br />
=== Example ===<br />
<pre><br />
local id = harvest.getSelectedBuilding():getId()<br />
harvest.spawnEnergySpark(id)<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/SpawnTempestMissile_(Harvest)SpawnTempestMissile (Harvest)2009-12-02T22:26:59Z<p>166 MMX: Created page with '{{HarvestMethod | spawnTempestMissile(x, y, tx, ty) | Creates a tempest missile at (x, y) which will aim for (tx, ty). It doesn't check for range. | {{MethodParam|x|Number|The so...'</p>
<hr />
<div>{{HarvestMethod<br />
|<br />
spawnTempestMissile(x, y, tx, ty)<br />
|<br />
Creates a tempest missile at (x, y) which will aim for (tx, ty). It doesn't check for range.<br />
|<br />
{{MethodParam|x|Number|The source x world coordinate.}}<br />
{{MethodParam|y|Number|The source y world coordinate.}}<br />
{{MethodParam|tx|Number|The target x world coordinate.}}<br />
{{MethodParam|ty|Number|The target y world coordinate.}}<br />
|<br />
Returns nothing.<br />
}}<br />
=== Example ===<br />
<pre><br />
harvest.spawnTempestMissile(0, 0, 512, 512)<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/SpawnEagleMissile_(Harvest)SpawnEagleMissile (Harvest)2009-12-02T22:26:20Z<p>166 MMX: Created page with '{{HarvestMethod | spawnEagleMissile(x, y[, alienId]) | Creates an eagle missile at (x, y) which will attempt to kill the alien with the given alien ID. If "alienId" is omitted or...'</p>
<hr />
<div>{{HarvestMethod<br />
|<br />
spawnEagleMissile(x, y[, alienId])<br />
|<br />
Creates an eagle missile at (x, y) which will attempt to kill the alien with the given alien ID. If "alienId" is omitted or negative, the eagle will attempt to find an alien using the current eagle priorities.<br />
|<br />
{{MethodParam|x|Number|The source x world coordinate.}}<br />
{{MethodParam|y|Number|The source y world coordinate.}}<br />
{{MethodParam|alien|Number|The target alien id.}}<br />
|<br />
Returns nothing.<br />
}}<br />
=== Example ===<br />
<pre><br />
harvest.spawnEagleMissile(0, 0, -1)<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/SpawnChargeBomb_(Harvest)SpawnChargeBomb (Harvest)2009-12-02T21:32:19Z<p>166 MMX: </p>
<hr />
<div>{{HarvestMethod<br />
|<br />
spawnChargeBomb(x, y[, progress])<br />
|<br />
Places a charge bomb in the world, with the given progress (default is 0). If the progress is 1.0, it will detonate immediately.<br />
|<br />
{{MethodParam|x|Number|The x world coordinate.}}<br />
{{MethodParam|y|Number|The y world coordinate.}}<br />
{{MethodParam|progress|Number|The progress in percent from 0 to 1.}}<br />
|<br />
Returns nothing.<br />
}}<br />
=== Example ===<br />
<pre><br />
harvest.spawnChargeBomb(100, 100, 1.0)<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/SpawnMissile_(Harvest)SpawnMissile (Harvest)2009-12-02T21:32:07Z<p>166 MMX: Created page with '{{HarvestMethod | spawnMissile(x, y, tx, ty) | Creates a normal missile at (x, y) which will aim for (tx, ty). It doesn't check for range. | {{MethodParam|x|Number|The source x w...'</p>
<hr />
<div>{{HarvestMethod<br />
|<br />
spawnMissile(x, y, tx, ty)<br />
|<br />
Creates a normal missile at (x, y) which will aim for (tx, ty). It doesn't check for range.<br />
|<br />
{{MethodParam|x|Number|The source x world coordinate.}}<br />
{{MethodParam|y|Number|The source y world coordinate.}}<br />
{{MethodParam|tx|Number|The target x world coordinate.}}<br />
{{MethodParam|ty|Number|The target y world coordinate.}}<br />
|<br />
Returns nothing.<br />
}}<br />
=== Example ===<br />
<pre><br />
harvest.spawnMissile(0, 0, 512, 512)<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/SpawnChargeBomb_(Harvest)SpawnChargeBomb (Harvest)2009-12-02T21:30:39Z<p>166 MMX: Created page with '{{HarvestMethod | spawnBuilding(x, y[, progress]) | Places a charge bomb in the world, with the given progress (default is 0). If the progress is 1.0, it will detonate immediatel...'</p>
<hr />
<div>{{HarvestMethod<br />
|<br />
spawnBuilding(x, y[, progress])<br />
|<br />
Places a charge bomb in the world, with the given progress (default is 0). If the progress is 1.0, it will detonate immediately.<br />
|<br />
{{MethodParam|x|Number|The x world coordinate.}}<br />
{{MethodParam|y|Number|The y world coordinate.}}<br />
{{MethodParam|progress|Number|The progress in percent from 0 to 1.}}<br />
|<br />
Returns nothing.<br />
}}<br />
=== Example ===<br />
<pre><br />
harvest.spawnChargeBomb(100, 100, 1.0)<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/SpawnBuilding_(Harvest)SpawnBuilding (Harvest)2009-12-02T21:29:39Z<p>166 MMX: Created page with '{{HarvestMethod | spawnBuilding(type, x, y[, progress]) | Places a new building in the game. The "type" parameter is the string ID of the building, which is "SPARKPRODUCER", "SPA...'</p>
<hr />
<div>{{HarvestMethod<br />
|<br />
spawnBuilding(type, x, y[, progress])<br />
|<br />
Places a new building in the game. The "type" parameter is the string ID of the building, which is "SPARKPRODUCER", "SPARKMOVER", "HARVESTER", "DEFENSETOWER", "MISSILETURRET", "EAGLEUPGRADE" and "TEMPESTUPGRADE" for the seven default buildings. Check the creativeBuildings.txt file in the sandbox folder to find the creative buildings' ID strings.<br />
<br />
The "progress" parameter is used to define whether the building should be in a construction box or completed. The default is 1.0, which means it will be placed completed. Values less than 1.0 will place a construction box instead, with a certain amount of energy already.<br />
|<br />
{{MethodParam|type|Number|The building identifier name to spawn.}}<br />
{{MethodParam|x|Number|The x world coordinate.}}<br />
{{MethodParam|y|Number|The y world coordinate.}}<br />
{{MethodParam|progress|Number|The progress in percent from 0 to 1.}}<br />
|<br />
Returns nothing.<br />
}}<br />
=== Example ===<br />
<pre><br />
-- Place a half-completed eagle turret in the game<br />
harvest.spawnBuilding("EAGLEUPGRADE", 0, 0, 0.5)<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/SpawnAlien_(Harvest)SpawnAlien (Harvest)2009-12-02T21:26:48Z<p>166 MMX: Created page with '{{HarvestMethod | spawnAlien(type, x, y) | Spawns an alien of the specified type at the specified world coordinates. If the alien doesn't occur on the current planet the call wil...'</p>
<hr />
<div>{{HarvestMethod<br />
|<br />
spawnAlien(type, x, y)<br />
|<br />
Spawns an alien of the specified type at the specified world coordinates. If the alien doesn't occur on the current planet the call will do nothing.<br />
|<br />
{{MethodParam|type|Number|The alien type to spawn.}}<br />
{{MethodParam|x|Number|The x world coordinate.}}<br />
{{MethodParam|y|Number|The y world coordinate.}}<br />
|<br />
Returns nothing.<br />
}}<br />
=== Example ===<br />
<pre><br />
harvest.spawnAlien(1, 512, 512)<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/GetBuilding_(Harvest)GetBuilding (Harvest)2009-12-02T20:08:37Z<p>166 MMX: </p>
<hr />
<div>{{HarvestMethod |<br />
getBuilding(id)<br />
|<br />
Fetches a building, or nil if the building doesn't exist.<br />
|<br />
{{MethodParam|id|Number|The id of the building to retrieve the building for.}}<br />
|<br />
Returns the building of a given id.<br />
}}<br />
=== Example ===<br />
<pre><br />
local building = harvest.getBuilding(id)<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/GetAlien_(Harvest)GetAlien (Harvest)2009-12-02T20:08:19Z<p>166 MMX: Created page with '{{HarvestMethod | getAlien(id) | Fetches an alien, or nil if the alien doesn't exist. | {{MethodParam|id|Number|The id of the alien to retrieve the alien for.}} | Returns the ali...'</p>
<hr />
<div>{{HarvestMethod |<br />
getAlien(id)<br />
|<br />
Fetches an alien, or nil if the alien doesn't exist.<br />
|<br />
{{MethodParam|id|Number|The id of the alien to retrieve the alien for.}}<br />
|<br />
Returns the alien of a given id.<br />
}}<br />
=== Example ===<br />
<pre><br />
local alien = harvest.getAlien(id)<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/GetSelectedBuilding_(Harvest)GetSelectedBuilding (Harvest)2009-12-02T20:07:28Z<p>166 MMX: Created page with '{{HarvestMethod | getSelectedBuilding() | Returns the currently selected building, or nil if the player hasn't selected a building at the moment. | | Returns the selected buildin...'</p>
<hr />
<div>{{HarvestMethod |<br />
getSelectedBuilding()<br />
|<br />
Returns the currently selected building, or nil if the player hasn't selected a building at the moment.<br />
|<br />
|<br />
Returns the selected building.<br />
}}<br />
=== Example ===<br />
<pre><br />
building = harvest.getSelectedBuilding(id)<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/GetCredits_(Harvest)GetCredits (Harvest)2009-12-02T20:06:44Z<p>166 MMX: </p>
<hr />
<div>{{HarvestNoParams |<br />
getCredits()<br />
|<br />
Returns the amount of credits that the player currently owns.<br />
|<br />
Returns the number of credits. Data type is Number.<br />
}}<br />
=== Example ===<br />
<pre><br />
local credits = harvest.getCredits()<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/GetBuilding_(Harvest)GetBuilding (Harvest)2009-12-02T20:06:34Z<p>166 MMX: Created page with '{{HarvestMethod | getBuilding(id) | Fetches a building, or nil if the building doesn't exist. | {{MethodParam|id|Number|The id of the building to retrieve the building for.}} | R...'</p>
<hr />
<div>{{HarvestMethod |<br />
getBuilding(id)<br />
|<br />
Fetches a building, or nil if the building doesn't exist.<br />
|<br />
{{MethodParam|id|Number|The id of the building to retrieve the building for.}}<br />
|<br />
Returns the building of a given id.<br />
}}<br />
=== Example ===<br />
<pre><br />
building = harvest.getBuilding(id)<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/FindAliens_(Harvest)FindAliens (Harvest)2009-12-02T20:04:26Z<p>166 MMX: </p>
<hr />
<div>{{HarvestMethod<br />
|<br />
findAliens()<br />
|<br />
Finds all aliens.<br />
|<br />
|<br />
Returns an array of all aliens.<br />
}}<br />
<br />
{{HarvestMethod<br />
|<br />
findAliens(type)<br />
|<br />
Finds all aliens of a certain type, such as ALIEN_DEFAULT.<br />
|<br />
{{MethodParam|type|String|The building identifier name used for selection.}}<br />
|<br />
Returns an array of all aliens of a cretin identifier name.<br />
}}<br />
<br />
{{HarvestMethod<br />
|<br />
findAliens(x, y, radius)<br />
|<br />
Finds all aliens in a circle.<br />
|<br />
{{MethodParam|x|Number|The x coordinate of a point on the world map.}}<br />
{{MethodParam|y|Number|The y coordinate of a point on the world map.}}<br />
{{MethodParam|radius|Number|The radius to be used.}}<br />
|<br />
Returns an array of all aliens in an certain radius.<br />
}}<br />
<br />
{{HarvestMethod<br />
|<br />
findAliens(x, y, radius, type)<br />
|<br />
Finds all aliens of a certain type in a circle.<br />
|<br />
{{MethodParam|x|Number|The x coordinate of a point on the world map.}}<br />
{{MethodParam|y|Number|The y coordinate of a point on the world map.}}<br />
{{MethodParam|radius|Number|The radius to be used.}}<br />
{{MethodParam|type|String|The building identifier name used for selection.}}<br />
|<br />
Returns an array of all aliens in an certain radius with a certain type.<br />
}}<br />
<br />
{{HarvestMethod<br />
|<br />
findAliens(left, top, right, bottom, type)<br />
|<br />
Finds all aliens of a certain type in a rectangle.<br />
|<br />
{{MethodParam|left|Number|The left coordinate of the rectangle.}}<br />
{{MethodParam|top|Number|The top coordinate of the rectangle.}}<br />
{{MethodParam|right|Number|The right coordinate of the rectangle.}}<br />
{{MethodParam|bottom|Number|The bottom coordinate of the rectangle.}}<br />
{{MethodParam|type|String|The building identifier name used for selection.}}<br />
|<br />
Returns an array of all aliens in an certain rectangle with a certain type.<br />
}}<br />
<br />
=== Description ===<br />
Like with buildings, all of the functions above will return an array (which can be empty). The aliens will be of userdata lua type, and refer to a CAlienLuaInfo in Harvest's C++ code. On these objects you can perform getPosition(), getId() and various other functions (see separate thread soon). However, you may not keep a reference to these objects since it's not possible to predict when an alien has been removed. Instead, if you need to keep track of a specific alien, you will have to save it's ID number and then locate it each frame with harvest.getAlien(id).<br />
<br />
=== Example ===<br />
<pre><br />
-- randomly displace all aliens<br />
aliens = harvest.findAliens()<br />
local left,top,right,bottom = harvest.getWorldBorders()<br />
local width, height = right - left, bottom - top<br />
for i=1,#aliens do<br />
aliens[i]:setPosition(left + math.random() * width, top + math.random() * height)<br />
end<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/FindBuildings_(Harvest)FindBuildings (Harvest)2009-12-02T20:02:29Z<p>166 MMX: Created page with '{{HarvestMethod | getNumBuildings() | Finds all buildings. | | Returns an array of all buildings. }} {{HarvestMethod | getNumBuildings(type) | Finds all buildings of a certain t...'</p>
<hr />
<div>{{HarvestMethod<br />
|<br />
getNumBuildings()<br />
|<br />
Finds all buildings.<br />
|<br />
|<br />
Returns an array of all buildings.<br />
}}<br />
<br />
{{HarvestMethod<br />
|<br />
getNumBuildings(type)<br />
|<br />
Finds all buildings of a certain type, such as "SPARKPRODUCER" (Solar Plants).<br />
|<br />
{{MethodParam|type|String|The building identifier name used for selection.}}<br />
|<br />
Returns an array of all buildings of a cretin identifier name.<br />
}}<br />
<br />
{{HarvestMethod<br />
|<br />
getNumBuildings(x, y, radius)<br />
|<br />
Finds all buildings in a circle.<br />
|<br />
{{MethodParam|x|Number|The x coordinate of a point on the world map.}}<br />
{{MethodParam|y|Number|The y coordinate of a point on the world map.}}<br />
{{MethodParam|radius|Number|The radius to be used.}}<br />
|<br />
Returns an array of all buildings in an certain radius.<br />
}}<br />
<br />
{{HarvestMethod<br />
|<br />
getNumBuildings(x, y, radius, type)<br />
|<br />
Finds all buildings of a certain type in a circle.<br />
|<br />
{{MethodParam|x|Number|The x coordinate of a point on the world map.}}<br />
{{MethodParam|y|Number|The y coordinate of a point on the world map.}}<br />
{{MethodParam|radius|Number|The radius to be used.}}<br />
{{MethodParam|type|String|The building identifier name used for selection.}}<br />
|<br />
Returns an array of all buildings in an certain radius with a certain type.<br />
}}<br />
<br />
{{HarvestMethod<br />
|<br />
getNumBuildings(left, top, right, bottom, type)<br />
|<br />
Finds all buildings of a certain type in a rectangle.<br />
|<br />
{{MethodParam|left|Number|The left coordinate of the rectangle.}}<br />
{{MethodParam|top|Number|The top coordinate of the rectangle.}}<br />
{{MethodParam|right|Number|The right coordinate of the rectangle.}}<br />
{{MethodParam|bottom|Number|The bottom coordinate of the rectangle.}}<br />
{{MethodParam|type|String|The building identifier name used for selection.}}<br />
|<br />
Returns an array of all buildings in an certain rectangle with a certain type.<br />
}}<br />
<br />
=== Description ===<br />
All of the functions above will return an array (which can be empty) of buildings. The buildings will be of user data lua type, and refer to a CBuildingLuaInfo in Harvest's C++ code. On these objects you can perform getPosition(), getId() and various other functions (see separate thread soon). However, you may not keep a reference to these objects since it's not possible to predict when a building is destroyed. Instead, if you need to keep track of a specific building, you will have to save it's ID number and then locate it each frame with harvest.getBuilding(id).<br />
<br />
=== Example ===<br />
<pre><br />
-- destroy all buildings in the circle!<br />
buildings = harvest.findBuildings(x, y, 200)<br />
for i=1,#buildings do<br />
local x,y = buildings[i]:getPosition()<br />
harvest.spawnParticle(buildings[i]:getDeathParticle(), x, y)<br />
buildings[i]:remove()<br />
end<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/FindAliens_(Harvest)FindAliens (Harvest)2009-12-02T20:01:21Z<p>166 MMX: Created page with '{{HarvestMethod | getNumBuildings() | Finds all buildings. | | Returns an array of all buildings. }} {{HarvestMethod | getNumBuildings(type) | Finds all buildings of a certain t...'</p>
<hr />
<div>{{HarvestMethod<br />
|<br />
getNumBuildings()<br />
|<br />
Finds all buildings.<br />
|<br />
|<br />
Returns an array of all buildings.<br />
}}<br />
<br />
{{HarvestMethod<br />
|<br />
getNumBuildings(type)<br />
|<br />
Finds all buildings of a certain type, such as "SPARKPRODUCER" (Solar Plants).<br />
|<br />
{{MethodParam|type|String|The building identifier name used for selection.}}<br />
|<br />
Returns an array of all buildings of a cretin identifier name.<br />
}}<br />
<br />
{{HarvestMethod<br />
|<br />
getNumBuildings(x, y, radius)<br />
|<br />
Finds all buildings in a circle.<br />
|<br />
{{MethodParam|x|Number|The x coordinate of a point on the world map.}}<br />
{{MethodParam|y|Number|The y coordinate of a point on the world map.}}<br />
{{MethodParam|radius|Number|The radius to be used.}}<br />
|<br />
Returns an array of all buildings in an certain radius.<br />
}}<br />
<br />
{{HarvestMethod<br />
|<br />
getNumBuildings(x, y, radius, type)<br />
|<br />
Finds all buildings of a certain type in a circle.<br />
|<br />
{{MethodParam|x|Number|The x coordinate of a point on the world map.}}<br />
{{MethodParam|y|Number|The y coordinate of a point on the world map.}}<br />
{{MethodParam|radius|Number|The radius to be used.}}<br />
{{MethodParam|type|String|The building identifier name used for selection.}}<br />
|<br />
Returns an array of all buildings in an certain radius with a certain type.<br />
}}<br />
<br />
{{HarvestMethod<br />
|<br />
getNumBuildings(left, top, right, bottom, type)<br />
|<br />
Finds all buildings of a certain type in a rectangle.<br />
|<br />
{{MethodParam|left|Number|The left coordinate of the rectangle.}}<br />
{{MethodParam|top|Number|The top coordinate of the rectangle.}}<br />
{{MethodParam|right|Number|The right coordinate of the rectangle.}}<br />
{{MethodParam|bottom|Number|The bottom coordinate of the rectangle.}}<br />
{{MethodParam|type|String|The building identifier name used for selection.}}<br />
|<br />
Returns an array of all buildings in an certain rectangle with a certain type.<br />
}}<br />
<br />
=== Description ===<br />
All of the functions above will return an array (which can be empty) of buildings. The buildings will be of user data lua type, and refer to a CBuildingLuaInfo in Harvest's C++ code. On these objects you can perform getPosition(), getId() and various other functions (see separate thread soon). However, you may not keep a reference to these objects since it's not possible to predict when a building is destroyed. Instead, if you need to keep track of a specific building, you will have to save it's ID number and then locate it each frame with harvest.getBuilding(id).<br />
<br />
=== Example ===<br />
<pre><br />
-- destroy all buildings in the circle!<br />
buildings = harvest.findBuildings(x, y, 200)<br />
for i=1,#buildings do<br />
local x,y = buildings[i]:getPosition()<br />
harvest.spawnParticle(buildings[i]:getDeathParticle(), x, y)<br />
buildings[i]:remove()<br />
end<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/GetNumBuildings_(Harvest)GetNumBuildings (Harvest)2009-12-02T19:48:45Z<p>166 MMX: Created page with '{{HarvestMethod | getNumBuildings() | Returns the number of buildings currently ingame. This method does not count construction boxes. | | Returns a number representing the amoun...'</p>
<hr />
<div>{{HarvestMethod<br />
|<br />
getNumBuildings()<br />
|<br />
Returns the number of buildings currently ingame. This method does not count construction boxes.<br />
|<br />
|<br />
Returns a number representing the amount of buildings in game.<br />
}}<br />
=== Example ===<br />
<pre><br />
print("Alive buildings: " .. harvest.getNumBuildings())<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/GetNumAliens_(Harvest)GetNumAliens (Harvest)2009-12-02T19:47:47Z<p>166 MMX: Created page with '{{HarvestMethod | getNumAliens() | Returns the number of aliens currently ingame. | | Returns a number representing the amount of aliens in game. }} === Example === <pre> print("...'</p>
<hr />
<div>{{HarvestMethod<br />
|<br />
getNumAliens()<br />
|<br />
Returns the number of aliens currently ingame.<br />
|<br />
|<br />
Returns a number representing the amount of aliens in game.<br />
}}<br />
=== Example ===<br />
<pre><br />
print("Alive: " .. harvest.getNumAliens())<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/DefineUpgradeButton_(Harvest)DefineUpgradeButton (Harvest)2009-12-02T19:27:45Z<p>166 MMX: </p>
<hr />
<div>{{HarvestMethod<br />
|<br />
defineUpgradeButton(oldBuilding, newBuilding)<br />
|<br />
Defines an upgrade button for 'upgradeBuildingId'.<br />
|<br />
{{MethodParam|oldBuilding|String|The building identifier name of the building that is upgradable.}}<br />
{{MethodParam|newBuilding|String|The building identifier name of the building that it will be upgraded to.}}<br />
|<br />
Returns nothing.<br />
}}<br />
=== Example ===<br />
<pre><br />
harvest.defineUpgrade("SUPERSOLARPLANT", "Super-duper Solar Plant", "This is a really good solar plant.", 300, 100, 30.0, "SparkProducer")<br />
harvest.defineUpgradeButton("SPARKPRODUCER", "SUPERSOLARPLANT")<br />
<br />
local function runSuperSolarPlant(entity, params, deltaTime)<br />
params.timer = params.timer or 0<br />
params.timer = params.timer + deltaTime<br />
if params.timer > 0.5 then<br />
params.timer = params.timer - 0.5<br />
local id = entity:getId()<br />
harvest.spawnEnergySpark(id)<br />
end<br />
end<br />
hook.add("SUPERSOLARPLANT_Update", runSuperSolarPlant)<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/DefineUpgradeButton_(Harvest)DefineUpgradeButton (Harvest)2009-12-02T19:25:51Z<p>166 MMX: Created page with '{{HarvestMethod | defineUpgradeButton(oldBuilding, newBuilding) | Defines an upgrade button for 'upgradeBuildingId'. | {{MethodParam|oldBuilding|String|The building identifier na...'</p>
<hr />
<div>{{HarvestMethod<br />
|<br />
defineUpgradeButton(oldBuilding, newBuilding)<br />
|<br />
Defines an upgrade button for 'upgradeBuildingId'.<br />
|<br />
{{MethodParam|oldBuilding|String|The building identifier name of the building that is upgradable.}}<br />
{{MethodParam|newBuildingu|String|The building identifier name of the building that it will be upgraded to.}}<br />
|<br />
Returns nothing.<br />
}}<br />
=== Example ===<br />
<pre><br />
harvest.defineUpgrade("SUPERSOLARPLANT", "Super-duper Solar Plant", "This is a really good solar plant.", 300, 100, 30.0, "SparkProducer")<br />
harvest.defineUpgradeButton("SPARKPRODUCER", "SUPERSOLARPLANT")<br />
<br />
local function runSuperSolarPlant(entity, params, deltaTime)<br />
params.timer = params.timer or 0<br />
params.timer = params.timer + deltaTime<br />
if params.timer > 0.5 then<br />
params.timer = params.timer - 0.5<br />
local id = entity:getId()<br />
harvest.spawnEnergySpark(id)<br />
end<br />
end<br />
hook.add("SUPERSOLARPLANT_Update", runSuperSolarPlant)<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/GetTotalAlienDamage_(Harvest)GetTotalAlienDamage (Harvest)2009-12-02T19:23:19Z<p>166 MMX: Created page with '{{HarvestMethod | getTotalAlienDamage() | Returns the total amount of damage inflicted upon aliens. | | Returns the total amount of damage inflicted upon aliens as a Number. }} =...'</p>
<hr />
<div>{{HarvestMethod<br />
|<br />
getTotalAlienDamage()<br />
|<br />
Returns the total amount of damage inflicted upon aliens.<br />
|<br />
|<br />
Returns the total amount of damage inflicted upon aliens as a Number.<br />
}}<br />
=== Example ===<br />
<pre><br />
harvest.setRushProgress(harvest.getTotalAlienDamage() / 50000.0)<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/IsAlienAvailable_(Harvest)IsAlienAvailable (Harvest)2009-12-02T19:22:37Z<p>166 MMX: </p>
<hr />
<div>{{HarvestMethod<br />
|<br />
isAlienAvailable(alien)<br />
|<br />
Checks whether a certian alien type is available on the current planet. The alien variable is a number between 1 and 9.<br />
|<br />
{{MethodParam|alien|Number|The alien id.}}<br />
|<br />
Returns a Boolean value whether the alien is available or not.<br />
}}<br />
=== Example ===<br />
<pre><br />
if harvest.isAlienAvailable(4) then<br />
print("Summoners occur on this planet.")<br />
end<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/IsAlienAvailable_(Harvest)IsAlienAvailable (Harvest)2009-12-02T19:22:28Z<p>166 MMX: </p>
<hr />
<div>{{HarvestMethod<br />
|<br />
isAlienAvailable(alien)<br />
|<br />
Checks whether a certian alien type is available on the current planet. The alien variable is a number between 1 and 9.<br />
|<br />
{{MethodParam|alien|Number|The alien id.}}<br />
|<br />
Returns a boolean value whether the alien is available or not.<br />
}}<br />
=== Example ===<br />
<pre><br />
if harvest.isAlienAvailable(4) then<br />
print("Summoners occur on this planet.")<br />
end<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/IsPositionBlocked_(Harvest)IsPositionBlocked (Harvest)2009-12-02T19:22:05Z<p>166 MMX: </p>
<hr />
<div>{{HarvestMethod<br />
|<br />
isPositionBlocked(x, y)<br />
|<br />
Checks if a world position blocks aliens and buildings. Currently only used for the holes on Ares.<br />
|<br />
{{MethodParam|x|Number|The x coordinate on the world map.}}<br />
{{MethodParam|y|Number|The y coordinate on the world map.}}<br />
|<br />
Returns a Boolean value whether you can place building at a specific point or not.<br />
}}<br />
=== Example ===<br />
<pre><br />
if ~harvest.isPositionBlocked(x, y) then<br />
harvest.spawnAlien(1, x, y)<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/DefineUpgrade_(Harvest)DefineUpgrade (Harvest)2009-12-02T19:20:57Z<p>166 MMX: Created page with '{{HarvestMethod | defineUpgrade(building, name, description, mineralsCost, energyCost, radiusSize, initialSpriteName) | Defines a new creative building to be used as building upg...'</p>
<hr />
<div>{{HarvestMethod<br />
|<br />
defineUpgrade(building, name, description, mineralsCost, energyCost, radiusSize, initialSpriteName)<br />
|<br />
Defines a new creative building to be used as building upgrades. The initial sprite is currently always picked from the default gfx package.<br />
|<br />
{{MethodParam|building|String|The new building identifier name.}}<br />
{{MethodParam|name|String|The display name of the building.}}<br />
{{MethodParam|description|String|The description of the building.}}<br />
{{MethodParam|mineralsCost|Number|The mineral costs to build the building.}}<br />
{{MethodParam|energyCost|Number|The energy costs to build the building.}}<br />
{{MethodParam|radiusSize|Number|}}<br />
{{MethodParam|initialSpriteName|String|The initial sprite identifier name.}}<br />
|<br />
Returns nothing.<br />
}}<br />
=== Example ===<br />
<pre><br />
harvest.defineUpgrade("SUPERSOLARPLANT", "Super-duper Solar Plant", "This is a really good solar plant.", 300, 100, 30.0, "SparkProducer")<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/IsPositionBlocked_(Harvest)IsPositionBlocked (Harvest)2009-12-02T19:15:50Z<p>166 MMX: Created page with '{{HarvestMethod | isPositionBlocked(x, y) | Checks if a world position blocks aliens and buildings. Currently only used for the holes on Ares. | {{MethodParam|x|Number|The x coor...'</p>
<hr />
<div>{{HarvestMethod<br />
|<br />
isPositionBlocked(x, y)<br />
|<br />
Checks if a world position blocks aliens and buildings. Currently only used for the holes on Ares.<br />
|<br />
{{MethodParam|x|Number|The x coordinate on the world map.}}<br />
{{MethodParam|y|Number|The y coordinate on the world map.}}<br />
|<br />
Returns a Boolean value weather the alien is available or not.<br />
}}<br />
=== Example ===<br />
<pre><br />
if ~harvest.isPositionBlocked(x, y) then<br />
harvest.spawnAlien(1, x, y)<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/IsAlienAvailable_(Harvest)IsAlienAvailable (Harvest)2009-12-02T19:14:08Z<p>166 MMX: Created page with '{{HarvestMethod | isAlienAvailable(alien) | Checks whether a certian alien type is available on the current planet. The alien variable is a number between 1 and 9. | {{MethodPara...'</p>
<hr />
<div>{{HarvestMethod<br />
|<br />
isAlienAvailable(alien)<br />
|<br />
Checks whether a certian alien type is available on the current planet. The alien variable is a number between 1 and 9.<br />
|<br />
{{MethodParam|alien|Number|The alien id.}}<br />
|<br />
Returns a Boolean value weather the alien is available or not.<br />
}}<br />
=== Example ===<br />
<pre><br />
if harvest.isAlienAvailable(4) then<br />
print("Summoners occur on this planet.")<br />
end<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/SetMinimumWorldBorders_(Harvest)SetMinimumWorldBorders (Harvest)2009-12-02T19:12:36Z<p>166 MMX: Created page with '{{HarvestMethod | setMinimumWorldBorders(left, top, right, bottom) | Expands the world so that it will cover the given area. The map's maximum range spans from -4096 to 5120. | {...'</p>
<hr />
<div>{{HarvestMethod<br />
|<br />
setMinimumWorldBorders(left, top, right, bottom)<br />
|<br />
Expands the world so that it will cover the given area. The map's maximum range spans from -4096 to 5120.<br />
|<br />
{{MethodParam|left|Number|This is the left coordinate.}}<br />
{{MethodParam|top|Number|This is the top coordinate.}}<br />
{{MethodParam|right|Number|This is a the right coordinate.}}<br />
{{MethodParam|bottom|Number|This is a the bottom coordinate.}}<br />
|<br />
Returns nothing.<br />
}}<br />
=== Example ===<br />
<pre><br />
harvest.setMinimumWorldBorders(0, 0, 3000, 3000)<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/GetWorldBorders_(Harvest)GetWorldBorders (Harvest)2009-12-02T19:08:49Z<p>166 MMX: Created page with '{{HarvestMethod | getWorldBorders() | Returns the edge positions of the current world. | | Returns a four Numbers for each coordinate. }} === Example === <pre> local left, top, r...'</p>
<hr />
<div>{{HarvestMethod<br />
|<br />
getWorldBorders()<br />
|<br />
Returns the edge positions of the current world.<br />
|<br />
|<br />
Returns a four Numbers for each coordinate.<br />
}}<br />
=== Example ===<br />
<pre><br />
local left, top, right, bottom = harvest.getWorldBorders()<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/GetPlanet_(Harvest)GetPlanet (Harvest)2009-12-02T19:07:04Z<p>166 MMX: Created page with '{{HarvestMethod | getPlanet() | Fetches the current planet as a four-letter string. In other words, "heph", "pose" or "ares". | | Returns a four character String containing the n...'</p>
<hr />
<div>{{HarvestMethod<br />
|<br />
getPlanet()<br />
|<br />
Fetches the current planet as a four-letter string. In other words, "heph", "pose" or "ares".<br />
|<br />
|<br />
Returns a four character String containing the name of the planet.<br />
}}<br />
=== Example ===<br />
<pre><br />
if harvest.getPlanet() == "pose" then<br />
print("It's chilly outside.")<br />
end<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/AddCredits_(Harvest)AddCredits (Harvest)2009-12-02T19:05:20Z<p>166 MMX: </p>
<hr />
<div>{{HarvestMethod<br />
|<br />
addCredits(amount)<br />
|<br />
Modifies the player's credit count by 'amount'. The value can be negative, which means that money will be removed from the player's count.<br />
|<br />
{{MethodParam|amount|Number|The amount of credits to add (or subtract).}}<br />
|<br />
Returns nothing.<br />
}}<br />
=== Example ===<br />
<pre><br />
harvest.addCredits(1)<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/GetCredits_(Harvest)GetCredits (Harvest)2009-12-02T19:04:35Z<p>166 MMX: </p>
<hr />
<div>{{HarvestNoParams |<br />
harvest.getCredits()<br />
|<br />
Returns the amount of credits that the player currently owns.<br />
|<br />
Returns the number of credits. Data type is Number.<br />
}}<br />
=== Example ===<br />
<pre><br />
local credits = harvest.getCredits()<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/LoseGame_(Harvest)LoseGame (Harvest)2009-12-02T19:03:16Z<p>166 MMX: Created page with '{{HarvestMethod | loseGame() | Displays "Game Over!" and ends the game. | | Returns nothing. }} === Example === <pre> harvest.loseGame() </pre> === Resources === *[http://www.ox...'</p>
<hr />
<div>{{HarvestMethod<br />
|<br />
loseGame()<br />
|<br />
Displays "Game Over!" and ends the game.<br />
|<br />
|<br />
Returns nothing.<br />
}}<br />
=== Example ===<br />
<pre><br />
harvest.loseGame()<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/WinGame_(Harvest)WinGame (Harvest)2009-12-02T19:02:40Z<p>166 MMX: Created page with '{{HarvestMethod | winGame() | Displays "Victory!" and ends the game. | | Returns nothing. }} === Example === <pre> harvest.winGame() </pre> === Resources === *[http://www.oxeyeg...'</p>
<hr />
<div>{{HarvestMethod<br />
|<br />
winGame()<br />
|<br />
Displays "Victory!" and ends the game.<br />
|<br />
|<br />
Returns nothing.<br />
}}<br />
=== Example ===<br />
<pre><br />
harvest.winGame()<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/Template:HarvestMethodTemplate:HarvestMethod2009-12-02T16:20:34Z<p>166 MMX: Undo revision 234 by 166 MMX (Talk)</p>
<hr />
<div>{| border=2 cellpadding=3 cellspacing=0 style="margin: 0 0 1em 1em; border-collapse: collapse;"<br />
|-<br />
|style="background:#c7c7c7; font-size:150%;" colspan="3"|'''{{{1}}}'''<br />
|-<br />
|colspan="3"| {{{2}}}<br />
|-<br />
|style="background:#c7c7c7"| '''Parameter'''<br />
|style="background:#c7c7c7"| '''Expected Type'''<br />
|style="background:#c7c7c7"| '''Description'''<br />
|-<br />
{{{3}}}<br />
|style="background:#c7c7c7" colspan="3"| '''Returns'''<br />
|-<br />
|colspan="3"| {{{4}}}<br />
|} {{Harvest}}<br />
<noinclude><br />
{{HarvestMethod |<br />
harvest.exampleMethod(x, y)<br />
|<br />
This is an example usage of the HarvestMethod template. Harvest methods should contain this template, with the<br />
paramters for method name, description, parameter list and return values, and then an example of how the<br />
method is used.<br />
|<br />
{{MethodParam|x|A number|This is a parameter using the MethodParam template.}}<br />
{{MethodParam|y|A number|Here's a second parameter. If a method has 0 parameters, you can use the NoParams template instead.}}<br />
|<br />
The fourth parameter is a description of the method's return value or values, if any.}}<br />
</noinclude></div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/Template:HarvestMethodTemplate:HarvestMethod2009-12-02T16:19:29Z<p>166 MMX: </p>
<hr />
<div>{| border=2 cellpadding=3 cellspacing=0 style="margin: 0 0 1em 1em; border-collapse: collapse;"<br />
|-<br />
|style="background:#c7c7c7; font-size:150%;" colspan="3"|'''{{{1}}}'''<br />
|-<br />
|colspan="3"| {{{2}}}<br />
|-<br />
|style="background:#c7c7c7"| '''Parameter'''<br />
|style="background:#c7c7c7"| '''Expected Type'''<br />
|style="background:#c7c7c7"| '''Description'''<br />
|-<br />
|colspan="3"| {{{3}}}<br />
|-<br />
|style="background:#c7c7c7" colspan="3"| '''Returns'''<br />
|-<br />
|colspan="3"| {{{4}}}<br />
|} {{Harvest}}<br />
<noinclude><br />
{{HarvestMethod |<br />
harvest.exampleMethod(x, y)<br />
|<br />
This is an example usage of the HarvestMethod template. Harvest methods should contain this template, with the<br />
paramters for method name, description, parameter list and return values, and then an example of how the<br />
method is used.<br />
|<br />
{{MethodParam|x|A number|This is a parameter using the MethodParam template.}}<br />
{{MethodParam|y|A number|Here's a second parameter. If a method has 0 parameters, you can use the NoParams template instead.}}<br />
|<br />
The fourth parameter is a description of the method's return value or values, if any.}}<br />
</noinclude></div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/SetBuildingEnabled_(Harvest)SetBuildingEnabled (Harvest)2009-12-02T16:16:52Z<p>166 MMX: </p>
<hr />
<div>{{HarvestMethod<br />
|<br />
setBuildingEnabled(building, setting)<br />
|<br />
Changes whether a building should be buildable by the player or not.<br />
|<br />
{{MethodParam|building|String|The building name to enable or disable.}}<br />
{{MethodParam|setting|Boolean|Set a building being available or not.}}<br />
|<br />
Returns nothing.<br />
}}<br />
=== Example ===<br />
<pre><br />
harvest.setBuildingEnabled("SPARKPRODUCER", false)<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/GetMousePosition_(Harvest)GetMousePosition (Harvest)2009-12-02T16:16:33Z<p>166 MMX: </p>
<hr />
<div>{{HarvestMethod<br />
|<br />
screenX, screenY &#x3d; getMousePosition()<br />
|<br />
Returns the current mouse position, in screen coordinates.<br />
|<br />
|<br />
Returns two coordinates of a point on the screen, screenX and screenY. Both are of the type Number.<br />
}}<br />
=== Example ===<br />
<pre><br />
local mouseX, mouseY = harvest.getMousePosition()<br />
local x,y = harvest.screenToWorldCoordinates(mouseX, mouseY)<br />
harvest.spawnChargeBomb(x, y)<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMXhttp://www.oxeyegames.com/wiki/index.php/IsKeyPressed_(Harvest)IsKeyPressed (Harvest)2009-12-02T16:16:08Z<p>166 MMX: </p>
<hr />
<div>{{HarvestMethod<br />
|<br />
isKeyPressed(virtualScanCode)<br />
|<br />
Returns whether a key is pressed or not, using virtual scan codes.<br />
|<br />
{{MethodParam|virtualScanCode|unknown|}}<br />
|<br />
Returns whether a key is pressed or not. The value is of the type Boolean.<br />
}}<br />
=== Example ===<br />
<pre><br />
local isShiftPressed = harvest.isKeyPressed(virtualScanCode)<br />
</pre><br />
<br />
=== Resources ===<br />
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</div>166 MMX