Residence level resarray['f'.$id]; ?>

The residence is a small palace, where the king or queen lives when (s)he visits the village. The residence protects the village against enemies who want to conquer it.

capital == 1) { echo "

This is your capital

"; } include("25_menu.tpl"); if($village->resarray['f'.$id] >= 10){ include ("25_train.tpl"); } else{ echo '
In order to found a new village you need a level 10 or 20 residence and 3 settlers. In order to conquer a new village you need a level 10 or 20 residence and a senator, chief or chieftain.
'; } include("upgrade.tpl"); ?>