Announcement

Collapse
No announcement yet.

SLIC2-Functions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • SLIC2-Functions

    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()
    Causes the current message to not be displayed. The code following an Abort() is still executed, however. Example:

    messagebox 'Msgbox'
    {
    Abort();
    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)
    {
    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.
    Last edited by Martin Gühmann; November 19, 2010, 21:36.
    Civ2 military advisor: "No complaints, Sir!"
Working...
X