External Services and Tools/API Documentation

From BattleMaster Wiki
< External Services and Tools
Revision as of 14:24, 25 March 2009 by Tom (talk | contribs) (New page: All scripts are located at ''<nowiki>http://battlemaster.org/data/</nowiki>''. So, for example, to get the region data of Akesh Temple, you would access the URL http://battlemaster.org...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

All scripts are located at http://battlemaster.org/data/. So, for example, to get the region data of Akesh Temple, you would access the URL http://battlemaster.org/data/region.php?World=1&ID=1.

region.php

Parameters:

World 
Game world ID you access, see #World IDs
ID 
ID number of the region in question. You can find this for example by examining the URL of the "Details" link on the Region List page, or (if the page is already set up correctly) on the region's page here in the wiki.

Output:

<regiondata>
   <continent>East Continent</continent>
   <name>Akesh Temple</name>
   <type>Stronghold</type>
   <area>South Highlands</area>
   <population>3900</population>
   <economy>Stoneworks, Administration</economy>
   <realm>Caligus</realm>
   <duchy>Akesh Temple</duchy>
   <lord>Arak</lord>
</regiondata>


Additional Information

World IDs

The various game worlds of BattleMaster are internally accessed through ID numbers. Here is the mapping:

1
East Island
2
Atamara
4
Beluaterra
6
Colonies
7
Far East
8
Dwilight

Yes, 3 and 5 are missing. They used to be the IDs of South-West and South-East Island.