Following is an alphabetical list of every function available for use in SLIC scripts in Call to Power II. This has been reposted from our old Call to Power II section.
VOID Abort()
VOID AddBuildingToBuildList(city, buildingType)
Click here to get the full list of Slic functions.
VOID Abort()
Causes the current message to not be displayed. The code following an Abort() is still executed, however. Example:
messagebox 'Msgbox'
{
//No message will appear when 'Msgbox' is called, and the player will receive 100 gold.
messagebox 'Msgbox'
{
Abort();
AddGold(g.player, 100);
}AddGold(g.player, 100);
//No message will appear when 'Msgbox' is called, and the player will receive 100 gold.
VOID AddBuildingToBuildList(city, buildingType)
Adds the building type to the end of the city’s queue. Example:
if(!city[0].buildqueuelength)
{
//if the city is not building anything, it will put the improvement City Walls into its build queue.
if(!city[0].buildqueuelength)
{
AddBuildingToBuildList(city[0], BuildingDB(IMPROVE_CITY_WALLS));
}//if the city is not building anything, it will put the improvement City Walls into its build queue.
Click here to get the full list of Slic functions.