Announcement

Collapse
No announcement yet.

SLIC - Automatic Enslavement

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

  • SLIC - Automatic Enslavement

    I was thinking that individual slic trigger should be discussed in separate thread then mixing it up all in one thread to reduce confusion...I getting confuse now. Anyway, Locutus this is for you.

    I am actually having the idea to automatically enslave an enemy settler upon sighted by own slaver (Hope you can understand my sentence).

    The following trigger have not been tested yet.
    Code:
    // Auto Settler Enslavement
    
    TypeUnit enemyunit;
    
    Trigger 'AutoEnslave' when (player.sightedunit && (unit == UnitType("UNIT_SETTLER))
    && IsSlaver(unit.2) && IsHumanplayer(player)) {  // This line is continous of the above.
      SetOrder(31, ENSLAVE_SETTLER);
      AddOrder(unit.2, unit.location);
    }
    [This message has been edited by Dreamer (edited January 05, 2000).]

  • #2
    Hi Dreamer,
    I understand what you are trying to say. I also see that the trigger hasn't been tested, here's a better one:

    Code:
    Trigger 'AutoEnslave' when (player.sightedunit && IsHumanplayer(g.player) && unit.type == UnitType("UNIT_SETTLER") ) {
         SetOrder(1, 31); //Enslave Settler
         AddOrder(unit.2, unit.location);
    }
    I didn't have much time to test it, it's giving a really wierd error message I've never seen before, something like "can't find id 268435540" I can't remember exactly what the message was, but I wrote the number down, so that's correct. Do you (or anyone else) know what this means? Anyway, if you havve more time than I do, experiment a little with it and let me know what you find out.

    Locutus
    Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

    Comment


    • #3
      Locutus,

      I'm just wondering why your SetOrder(1, 31); is different from my SetOrder(31, ENSLAVE_SETTLER);?

      Comment


      • #4
        Well, the first number in setorder must be 1, I don't know if you can replace the second number by a name. It works with launch but not with entrench/fortify. You will just have to try that to find out.
        Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

        Comment


        • #5
          I don't really understand why you want slaver's able to capture settlers alone,
          I always have a military unit along. Anyway, the easy
          solution is to make the slaver a military unit.
          Mark

          Comment


          • #6
            Locutus,

            I got that exact error when I was messing around with the For..Loop. Never did know what it was telling me. As I changed syntax and codes around, it changed back and forth from that error to just saying 'syntax error'. If I run into it again, I will pay more attention to what specifically sets it off.


            All,
            I don't think you want the slaver a military unit. It has unpredictable results. I was playing around one time and made the Cow and Settler military units. The AI then started using the Cow in place of the real military units. I think this was because it was cheaper and the AI could crank more out. Don't know for sure. I stopped playing around with it.

            Mark,
            You could test this out and let us know how it works. I would be interested in the results.

            Don

            [This message has been edited by skorpion59 (edited January 05, 2000).]
            Don,
            CtPMaps (Hosted by Apolyton)

            Comment

            Working...
            X