I was day dreaming in the office and came out this trigger and quickly started scripting once I reached home. It is suppose to show the number of combat units in a city.
The following should be in scen_str.txt
It was tested and working fine but .... damn!!! I CAN'T CLICK ON THE ENEMY CITY.
[This message has been edited by Dreamer (edited January 05, 2000).]
Code:
Trigger 'CheckCityUnits' when (city.selected) { cityunits = city.combatunits; Message(player, 'CheckCityUnitsMessage'); } Alertbox 'CheckCityUnitsMessage' { Text(ID_CHECK_CITY_UNITS_MESSAGE); Button(ID_BUTTON_CLOSE) { Kill(); } }
Code:
CHECK_CITY_UNITS_MESSAGE "There are [cityunits.value] in the city of [city.name]."
[This message has been edited by Dreamer (edited January 05, 2000).]
Comment