Currently, there is no way to check if a building is already built in a town.
*
HasBuildingBuiltInTown(town, building)
town: the town where to check if a building is already built.
building: the ID of the building to check (see section "Buildings").
Returns "true" if the specified building is already built in the specified town, returns "false" otherwise.
*
HasBuildingBuiltInCurrentTown(building)
building: the ID of the building to check (see section "Buildings").
Returns "true" if the specified building is already built in the current town (i.e. the town open in the town screen), returns "false" otherwise.
*
GetGuildLevelBuiltInTown(town)
town: the town where to check which level of the Mage Guild is already built.
Returns the level of the Mage Guild already built in the specified town.
- returns "-1" if there is no Mage Guild already built in the town.
- returns "0" if the level 1 of the Mage Guild is already built in the town.
- returns "1" if the level 2 of the Mage Guild is already built in the town.
- returns "2" if the level 3 of the Mage Guild is already built in the town.
- returns "3" if the level 4 of the Mage Guild is already built in the town.
- returns "4" if the level 5 of the Mage Guild is already built in the town.
*
GetGuildLevelBuiltInCurrentTown()
Returns the level of the Mage Guild already built in the current town (i.e. the town open in the town screen).
- returns "-1" if there is no Mage Guild already built in the town.
- returns "0" if the level 1 of the Mage Guild is already built in the town.
- returns "1" if the level 2 of the Mage Guild is already built in the town.
- returns "2" if the level 3 of the Mage Guild is already built in the town.
- returns "3" if the level 4 of the Mage Guild is already built in the town.
- returns "4" if the level 5 of the Mage Guild is already built in the town.