Announcement

Collapse
No announcement yet.

SLIC - Settler Replacement

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

  • SLIC - Settler Replacement

    To all,

    Where does this stand? I modified the code a little and even increased the timeslice. Doesn't seem to make a difference. It replaces half your units each round. (If you have 8 settlers, it replaces 4 the first round, 2 the second round and 1 each subsequent round after that.)

    I don't see anything wrong with doing it this way. It just seems strange.

    Don
    Don,
    CtPMaps (Hosted by Apolyton)

  • #2
    Are you referring to my trigger that upgrades settlers to engineers? Because thats been solved now thanks to BlivetMaker. He discovered the error, here's the trigger as it should be (he, it looks ugly but it works. I'll send a better looking version over email later this (or next) week to anyone interested together with any other triggers I'll get to work in time):

    Code:
    TypeLocation settlerlocation;
    TypeUnit settlerunit;
    
    trigger 'Locutus_ReplaceSettlers' when (HasAdvance(g.player, ID_ADVANCE_INDUSTRIAL_REVOLUTION) ) {
    	i = 0;
    	while (i < player.totalunits) {
    		SetUnitByIndex(1, g.player, i);
    		if (unit.type == UnitType("UNIT_SETTLER")) {
    			settlerunit = unit.1;
    			settlerlocation = unit.location;
    			KillUnit(settlerunit);
    			CreateUnit(g.player, UnitType("UNIT_MACHINE_GUNNER"), settlerlocation, 0);
    		} else { i = i + 1;}
    	}
    }
    BTW, it was in the "New Units"-thread

    Locutus
    [This message has been edited by Locutus (edited January 05, 2000).]
    Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

    Comment


    • #3
      Locutus,

      Hey this is great. With this trigger we can upgrade obsolete units, like the one we have in Civ2 after building the dunno what Workshop wonder it upgrades all your obslete units.

      Comment


      • #4
        It was Michelangelo's Workshop (my favourite wonder in Civ2) and that was exactly what I intended to do, I still miss that thing when playing CtP, and I can tell you this: I don't miss much about Civ2.
        Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

        Comment


        • #5
          It's Leonardo's Workshop that upgrades obsolete units in Civ2. Michelangelo had a chapel that counted as a cathedral in all your cities.

          Comment


          • #6
            Like I said in another thread: I need to get some sleep...
            Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

            Comment

            Working...
            X