Register or Log In to remove the ads!

Thread: SLIC2-Functions

  1. #1
    Martin Gühmann's Avatar
    Join Date
    02 Mar 2001
    Location
    Tübingen, Germany
    Posts
    7,253
    Thanks
    2
    Thanked 4 Times in 4 Posts
    Local Date
    September 28, 2016
    Local Time
    04:26

    Post SLIC2 Function Reference

    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 at 20:36.
    Civ2 military advisor: "No complaints, Sir!"

Similar Threads

  1. SLIC2-Scripting-Language
    By Martin Gühmann in forum CtP2 Creation
    Replies: 0
    Last Post: November 26, 2010, 19:07
  2. SLIC2-Events
    By Martin Gühmann in forum CtP2 Creation
    Replies: 0
    Last Post: November 20, 2010, 20:14
  3. SLIC2-Builtins
    By Martin Gühmann in forum CtP2 Creation
    Replies: 0
    Last Post: November 19, 2010, 20:57
  4. SLIC2 Table of Contents
    By Martin Gühmann in forum CtP2 Creation
    Replies: 0
    Last Post: July 15, 2007, 14:56
  5. SLIC1 x SLIC2: The differences
    By Pedrunn in forum Call to Power 1
    Replies: 2
    Last Post: December 30, 2002, 17:17

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Log in

Log in