From NEAT Portal Wiki
Jump to: navigation, search
m (Protected "Troop Scripts" ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
Line 1: Line 1:
 
==Train==
 
==Train==
  
{| style="width: 25%; text-align:center" border="1"
+
{| class="wikitable"
! scope="row" | Usage:
+
! style="text-align:left;" | Usage:
 
| train troop hero
 
| train troop hero
 
|-
 
|-
! scope="row" | Example:
+
! style="text-align:left;" | Example:
 
| train w:25000 atk
 
| train w:25000 atk
 
|}
 
|}
Line 14: Line 14:
 
==Disband==
 
==Disband==
  
{| style="width: 25%; text-align:center" border="1"
+
{| class="wikitable"
! scope="row" | Usage:
+
! style="text-align:left;" | Usage:
 
| disband troop
 
| disband troop
 
|-
 
|-
! scope="row" | Example:
+
! style="text-align:left;" | Example:
 
| disband w:25
 
| disband w:25
 
|}
 
|}
Line 27: Line 27:
 
==HealTroops==
 
==HealTroops==
  
{| style="width: 25%; text-align:center" border="1"
+
{| class="wikitable"
! scope="row" | Usage:
+
! style="text-align:left;" | Usage:
 
| healtroops
 
| healtroops
 
|-
 
|-
! scope="row" | Example:
+
! style="text-align:left;" | Example:
 
| healtroops
 
| healtroops
 
|}
 
|}
Line 40: Line 40:
 
==DumpTroop==
 
==DumpTroop==
  
{| style="width: 45%; text-align:center" border="1"
+
{| class="wikitable"
! scope="row" | Usage:
+
! style="text-align:left;" | Usage:
 
| dumptroop xxx,yyy condition troops
 
| dumptroop xxx,yyy condition troops
 
|-
 
|-
! scope="row" | Example:
+
! style="text-align:left;" | Example:
 
| dumptroop 111,222 a:99000,s:50000 a:20000,s:15000
 
| dumptroop 111,222 a:99000,s:50000 a:20000,s:15000
 
|}
 
|}
Line 52: Line 52:
 
==ClearTroopQueues==
 
==ClearTroopQueues==
  
{| style="width: 25%; text-align:center" border="1"
+
{| class="wikitable"
! scope="row" | Usage:
+
! style="text-align:left;" | Usage:
 
| cleartroopqueues [remain_count]
 
| cleartroopqueues [remain_count]
 
|-
 
|-
! scope="row" | Example:
+
! style="text-align:left;" | Example:
| cleartroopqueues<br>
+
|  
 +
cleartroopqueues<br>
 
cleartroopqueues 2
 
cleartroopqueues 2
 
|}
 
|}
Line 68: Line 69:
 
==WallDefense==
 
==WallDefense==
  
{| style="width: 25%; text-align:center" border="1"
+
{| class="wikitable"
! scope="row" | Usage:
+
! style="text-align:left;" | Usage:
 
| walldefense DefType Qty [BuildType]
 
| walldefense DefType Qty [BuildType]
 
|-
 
|-
! scope="row" | Example:
+
! style="text-align:left;" | Example:
| walldefense at 1000<br>
+
|  
 +
walldefense at 1000<br>
 
walldefense ab 1000 demo
 
walldefense ab 1000 demo
 
|}
 
|}
Line 82: Line 84:
 
==ClearWallQueue==
 
==ClearWallQueue==
  
{| style="width: 25%; text-align:center" border="1"
+
{| class="wikitable"
! scope="row" | Usage:
+
! style="text-align:left;" | Usage:
 
| clearwallqueue [remain count]
 
| clearwallqueue [remain count]
 
|-
 
|-
! scope="row" | Example:
+
! style="text-align:left;" | Example:
| clearwallqueue<br>
+
|  
 +
clearwallqueue<br>
 
clearwallqueue
 
clearwallqueue
 
|}
 
|}
Line 97: Line 100:
 
==EndKeepTroop==
 
==EndKeepTroop==
  
{| style="width: 25%; text-align:center" border="1"
+
{| class="wikitable"
! scope="row" | Usage:
+
! style="text-align:left;" | Usage:
 
| EndKeepTroop
 
| EndKeepTroop
 
|-
 
|-
! scope="row" | Example:
+
! style="text-align:left;" | Example:
 
| EndKeepTroop
 
| EndKeepTroop
 
|}
 
|}
  
 
Cancel the KeepTroop command.
 
Cancel the KeepTroop command.

Revision as of 11:13, 1 June 2011

Train

Usage: train troop hero
Example: train w:25000 atk

Train 25,000 warriors with the hero called atk as mayor.


Disband

Usage: disband troop
Example: disband w:25

Disband 25 warriors.


HealTroops

Usage: healtroops
Example: healtroops

Heal any troops that are in the medic camp.


DumpTroop

Usage: dumptroop xxx,yyy condition troops
Example: dumptroop 111,222 a:99000,s:50000 a:20000,s:15000

Dump 20,000 archers and 15,000 scouts to 111,222 when there are at least 99,000 archers and 50,000 scouts in the city.

ClearTroopQueues

Usage: cleartroopqueues [remain_count]
Example:

cleartroopqueues
cleartroopqueues 2

Used to cancel troop queues, leaving remain_count batches in each barrack.

If no remain_count is provided, all batches except the first in each barrack are removed.


WallDefense

Usage: walldefense DefType Qty [BuildType]
Example:

walldefense at 1000
walldefense ab 1000 demo

Used to build or demolish wall defences.


ClearWallQueue

Usage: clearwallqueue [remain count]
Example:

clearwallqueue
clearwallqueue

Used to cancel fortifications queues, leaving remain_count batches. If no remain_count is provided, all batches except the first are removed.


EndKeepTroop

Usage: EndKeepTroop
Example: EndKeepTroop

Cancel the KeepTroop command.