Skip to content

BUYARTILLERY,BUYMOUNTED,BUYINFANTRY

stanislawbartkowski edited this page Feb 16, 2019 · 2 revisions

Action

This action buy unit: ARTILLERY,INFANTRY,MOUNTED or AIRCRAFT

Format

executeCommand(token,"BUYARTILLERY",row,col,null)

Parameters:

  • row,col : a city where the unit specified by command name is to be bought *jsparam : not used

Usage example:

executeCommand("secret token","BUYARTILLERY",2,2,null)

Buy Artillery in a city (2,2)

Itemize

List of cities where a unit can be bought.

  • Format: [ {"p": {"row" : int,"col" : int}} ]

Sample:

[ {"p: : {"row" : 2,"col" : 2}},{ "p" : {"row" : 5,"col" : 3}} ]

A unit can be bought in two cities : (2,2) and (5,3)