Announcement

Collapse
No announcement yet.

Wanna share your SLIC functions?

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

  • #16
    Great idea to share slic codes.
    Here one to add, gold, PW, and the first 20 advances

    trigger 'InitializeBonus' when (unit.beginturn && (g.year == 0)) {
    message(player, 'InitializeBonusMessage');
    }

    // add gold, pw, advances
    messagebox 'InitializeBonusMessage' {
    Abort();
    numAdvance = 20 ;
    bonusGold = 19900 ; // Gold bonus = 20000 (100 by default)
    bonusPW = 20000 ; // PW bonus
    AddGold(player,bonusGold);
    SetPW(player,bonusPW);
    i = 0;
    while(i < numAdvance) {
    GrantAdvance(player,i);
    i = i + 1;
    }
    // 0 -> AGRICULTURE, 1 -> TOOLMAKING, 2 -> MINING, 3 -> DOMESTICATION, 4 -> BRONZE_WORKING
    // 5 -> STONE_WORKING, 6 -> JURISPRUDENCE, 7 -> SHIP_BUILDING, 8-> WRITING, 9 -> GEOMETRY
    // 1 -> MONARCHY, 11 -> IRON_WORKING, 12 -> RELIGION, 13 -> CITY_STATE, 14 -> PHILOSOPHY
    // 15 -> TRADE, 16 -> BUREAUCRACY, 17 -> ASTRONOMY, 18 -> THEOCRACY, 19 -> BANKING
    }

    [This message has been edited by slamp (edited January 14, 2000).]
    Apolyton QuickStart for CTP PBEM

    Comment


    • #17
      This message, add one pop to each n-first cities (here n=10 ):

      messagebox 'increaseCityMessage' {
        Abort();
        // user variables
        numSettlers = 10 ; // numbers of cities must be >= 2
        CityIndex = 0;
        while((CityIndex < player.cities) && (Cityindex < numSettlers)) {
          SetCityByIndex(1, player, CityIndex);
          AddPops(city, 1);
          CityIndex = CityIndex + 1;
        }
      }

      [This message has been edited by slamp (edited January 14, 2000).]
      Apolyton QuickStart for CTP PBEM

      Comment

      Working...
      X