Announcement

Collapse
No announcement yet.

Units Home City

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

  • Units Home City

    Is there a way to find out which city a certain unit was built in useing SLIC?
    Shores Of Valinor.com - The Premier Tolkien Community -

  • #2
    I think that you could, but only by monitoring all units as they are built and adding them to an array.

    Comment


    • #3
      I thought about that but how would you keep track of which is which?
      Shores Of Valinor.com - The Premier Tolkien Community -

      Comment


      • #4
        If you could rename an army by slic than it shouldn't be no problem (I did not looked it up in the slic documentation), so far you can rename armies by hand. But actual I see no use in tracking units as the units are paid from the global empire production and don't get their support by one single city like in Civ2.

        -Martin
        Civ2 military advisor: "No complaints, Sir!"

        Comment


        • #5
          each unit has a unique index in SLIC, so keeping track is possible.
          Concrete, Abstract, or Squoingy?
          "I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis

          Comment


          • #6
            OK you have the index but what do you do if you reload slic.

            -Martin
            Civ2 military advisor: "No complaints, Sir!"

            Comment


            • #7
              I've only recently started learning SLIC so how exactly would I be able to do this?

              This does all have a point by the way I'm working on a new type of unit/mod which hopefully I'll finish soon.
              Shores Of Valinor.com - The Premier Tolkien Community -

              Comment


              • #8
                Originally posted by Martin Gühmann
                OK you have the index but what do you do if you reload slic.
                You dont . But seriously - you'll have to consider this because reloading SLIC happens a lot for various reasons, so your code will have to cope with being initialised when there are already units around - the best you could do would probably be to set their home to be the closest city.

                Comment

                Working...
                X