From NEAT Portal Wiki
Jump to: navigation, search
m (Protected "Hero Scripts" ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
Line 1: Line 1:
 
==FindHero==
 
==FindHero==
  
{| style="width: 25%; text-align:center" border="1"
+
{| class="wikitable"
! scope="row" | Usage:
+
! style="text-align:left;" | Usage:
 
| findhero stat
 
| findhero stat
 
|-
 
|-
! scope="row" | Example:
+
! style="text-align:left;" | Example:
| findHero atk<br>
+
|  
 +
findHero atk<br>
 
findHero pol<br>
 
findHero pol<br>
 
findHero int
 
findHero int
Line 18: Line 19:
 
==SetMayor==
 
==SetMayor==
  
{| style="width: 25%; text-align:center" border="1"
+
{| class="wikitable"
! scope="row" | Usage:
+
! style="text-align:left;" | Usage:
 
| setMayor stat
 
| setMayor stat
 
|-
 
|-
! scope="row" | Example:
+
! style="text-align:left;" | Example:
| setMayor pol<br>
+
|  
 +
setMayor pol<br>
 
setMayor atk<br>
 
setMayor atk<br>
 
setMayor int<br>
 
setMayor int<br>
Line 37: Line 39:
 
==SetMayorByName==
 
==SetMayorByName==
  
{| style="width: 25%; text-align:center" border="1"
+
{| class="wikitable"
! scope="row" | Usage:
+
! style="text-align:left;" | Usage:
 
| setMayorbyname HeroName
 
| setMayorbyname HeroName
 
|-
 
|-
! scope="row" | Example:
+
! style="text-align:left;" | Example:
| setMayorbyname ATKATK<br>
+
|  
 +
setMayorbyname ATKATK<br>
 
setMayorbyname ken<br>
 
setMayorbyname ken<br>
 
setMayorbyname henry
 
setMayorbyname henry
Line 52: Line 55:
 
==PersuadeHero==
 
==PersuadeHero==
  
{| style="width: 25%; text-align:center" border="1"
+
{| class="wikitable"
! scope="row" | Usage:
+
! style="text-align:left;" | Usage:
 
| persuadehero hero
 
| persuadehero hero
 
|-
 
|-
! scope="row" | Example:
+
! style="text-align:left;" | Example:
 
| persuadehero ken
 
| persuadehero ken
 
|}
 
|}
Line 65: Line 68:
 
==FireHero==
 
==FireHero==
  
{| style="width: 25%; text-align:center" border="1"
+
{| class="wikitable"
! scope="row" | Usage:
+
! style="text-align:left;" | Usage:
 
| firehero hero
 
| firehero hero
 
|-
 
|-
! scope="row" | Example:
+
! style="text-align:left;" | Example:
 
| firehero ken
 
| firehero ken
 
|}
 
|}
Line 80: Line 83:
 
==ReleaseHero==
 
==ReleaseHero==
  
{| style="width: 25%; text-align:center" border="1"
+
{| class="wikitable"
! scope="row" | Usage:
+
! style="text-align:left;" | Usage:
 
| releasehero heroName
 
| releasehero heroName
 
|-
 
|-
! scope="row" | Example:
+
! style="text-align:left;" | Example:
 
| releasehero Prisoner
 
| releasehero Prisoner
 
|}
 
|}
Line 93: Line 96:
 
==GetSpamHero==
 
==GetSpamHero==
  
{| style="width: 25%; text-align:center" border="1"
+
{| class="wikitable"
! scope="row" | Usage:
+
! style="text-align:left;" | Usage:
 
| getspamhero [management|strategem]
 
| getspamhero [management|strategem]
 
|-
 
|-
! scope="row" | Example:
+
! style="text-align:left;" | Example:
|  getspamhero<br>
+
|   
 +
getspamhero<br>
 
getspamhero management<br>
 
getspamhero management<br>
 
getspamhero strategem
 
getspamhero strategem
Line 110: Line 114:
 
==ChangeHeroName==
 
==ChangeHeroName==
  
{| style="width: 25%; text-align:center" border="1"
+
{| class="wikitable"
! scope="row" | Usage:
+
! style="text-align:left;" | Usage:
 
| changeheroname oldName newName
 
| changeheroname oldName newName
 
|-
 
|-
! scope="row" | Example:
+
! style="text-align:left;" | Example:
 
| changeheroname ken henry
 
| changeheroname ken henry
 
|}
 
|}
Line 123: Line 127:
 
==UpLevelHero==
 
==UpLevelHero==
  
{| style="width: 25%; text-align:center" border="1"
+
{| class="wikitable"
! scope="row" | Usage:
+
! style="text-align:left;" | Usage:
 
| uplevelhero hero
 
| uplevelhero hero
 
|-
 
|-
! scope="row" | Example:
+
! style="text-align:left;" | Example:
 
| uplevelhero ken
 
| uplevelhero ken
 
|}
 
|}
Line 136: Line 140:
 
==UseHeroItem==
 
==UseHeroItem==
  
{| style="width: 25%; text-align:center" border="1"
+
{| class="wikitable"
! scope="row" | Usage:
+
! style="text-align:left;" | Usage:
 
| useheroitem hero_name item_name
 
| useheroitem hero_name item_name
 
|-
 
|-
! scope="row" | Example:
+
! style="text-align:left;" | Example:
| useheroitem BigGuy on_war<br>
+
|  
 +
useheroitem BigGuy on_war<br>
 
useheroitem BigGuy anabasis
 
useheroitem BigGuy anabasis
 
|}
 
|}
Line 150: Line 155:
 
==AwardGold==
 
==AwardGold==
  
{| style="width: 25%; text-align:center" border="1"
+
{| class="wikitable"
! scope="row" | Usage:
+
! style="text-align:left;" | Usage:
 
| awardgold hero
 
| awardgold hero
 
|-
 
|-
! scope="row" | Example:
+
! style="text-align:left;" | Example:
 
| awardgold ken
 
| awardgold ken
 
|}
 
|}
Line 163: Line 168:
 
==RewardHeroes==
 
==RewardHeroes==
  
{| style="width: 25%; text-align:center" border="1"
+
{| class="wikitable"
! scope="row" | Usage:
+
! style="text-align:left;" | Usage:
 
|  
 
|  
 
|-
 
|-
! scope="row" | Example:
+
! style="text-align:left;" | Example:
 
|  
 
|  
 
|}
 
|}
Line 176: Line 181:
 
==WaitHero==
 
==WaitHero==
  
{| style="width: 25%; text-align:center" border="1"
+
{| class="wikitable"
! scope="row" | Usage:
+
! style="text-align:left;" | Usage:
 
| waithero hero
 
| waithero hero
 
|-
 
|-
! scope="row" | Example:
+
! style="text-align:left;" | Example:
 
| waithero ken
 
| waithero ken
 
|}
 
|}
Line 189: Line 194:
 
==WaitHeroLost==
 
==WaitHeroLost==
  
{| style="width: 25%; text-align:center" border="1"
+
{| class="wikitable"
! scope="row" | Usage:
+
! style="text-align:left;" | Usage:
 
| waitherolost hero1,hero2,...
 
| waitherolost hero1,hero2,...
 
|-
 
|-
! scope="row" | Example:
+
! style="text-align:left;" | Example:
 
| waitherolost ken,henry
 
| waitherolost ken,henry
 
|}
 
|}
  
 
Pause script until one of the heroes specified is captured.
 
Pause script until one of the heroes specified is captured.

Revision as of 11:09, 1 June 2011

FindHero

Usage: findhero stat
Example:

findHero atk
findHero pol
findHero int

Valid command line arguments for findhero are pol for politics, atk for attack and int for intelligence.

This command will recruit the best hero of the type specified that is available in the inn at the time.


SetMayor

Usage: setMayor stat
Example:

setMayor pol
setMayor atk
setMayor int
setMayor remove

Valid arguments for setMayor are pol for politics, atk for attack and int for intelligence.

This command will change your current mayor for one of the specified attribute. It automatically selects the highest level of the attribute that you specify (stat is the label for the attribute argument). This is very useful when creating, upgrading and demolishing buildings, as you can specify the highest level politic hero you have to go into office. Capturing a level ten and only have a level 9 Feasting hall in one city? You can remove the mayor with this command to make sure he marches with the rest of the troops.


SetMayorByName

Usage: setMayorbyname HeroName
Example:

setMayorbyname ATKATK
setMayorbyname ken
setMayorbyname henry

This command will allow you to specify the Mayor you wish to assign by hero name.


PersuadeHero

Usage: persuadehero hero
Example: persuadehero ken

Persuade a captured hero ken, the medals required for the persuasion if any are shown in hero tab.


FireHero

Usage: firehero hero
Example: firehero ken

Used to fire a hero from the feasting hall.

The Hero status must be either idle, mayor, or captured, i.e. is not on a mission away from town.


ReleaseHero

Usage: releasehero heroName
Example: releasehero Prisoner

Used to dismiss a captive hero from the feasting hall.


GetSpamHero

Usage: strategem]
Example:

getspamhero
getspamhero management
getspamhero strategem

First example used to get the best attack hero currently available in the inn. Second example used to get the best politics hero currently available in the inn. Third example used to get the Highest intelligence hero currently available in the inn.


ChangeHeroName

Usage: changeheroname oldName newName
Example: changeheroname ken henry

Used to rename a hero.


UpLevelHero

Usage: uplevelhero hero
Example: uplevelhero ken

Used to increase hero's level by 1


UseHeroItem

Usage: useheroitem hero_name item_name
Example:

useheroitem BigGuy on_war
useheroitem BigGuy anabasis

Used to apply hero buffing items to the specified hero.


AwardGold

Usage: awardgold hero
Example: awardgold ken

Used to increase hero loyalty by 5 using a gold reward.


RewardHeroes

Usage:
Example:

Finds and rewards all heroes with loyalty below 100, using gold.


WaitHero

Usage: waithero hero
Example: waithero ken

Pause script until hero ken is available.


WaitHeroLost

Usage: waitherolost hero1,hero2,...
Example: waitherolost ken,henry

Pause script until one of the heroes specified is captured.