Announcement

Collapse
No announcement yet.

Starting setups available, help on changes?

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

  • Starting setups available, help on changes?

    I am looking at the DiffDb.txt, I am starting Diety (God) mode I believe, and I see where i can change starting gold for both me and AI, and the point I am trying to clarify/change if possible is this, >>>>>>>>>

    I am trying to make it where i can start a game with "X" amount of settlers and make them UNBUILDABLE apart from the ruins..(Risks.txt..love this little jewelmine!! )..ok...I see where the ai has (2) units to start with and a chance for human to start with an extra settler, but is it possibel to make a line in the text to start with "X" units, (units being settlers)?

    I remember someone once responded I could make a trigger..but..er..um.. ifin you get the picture, i aint the brightest bulb in the room or the shiniest apple on the tree, but, I am looking for someway to make it so that maybe ai and me each start with maybe 25 cities/settlers then only ruins are available or even war .

    If anyone plays me online, thats my textbook trademark, EXCLUSIONS of bpoth Stealth and Settlers from game, except ruins.
    Anyone have any feedback, let the hair go with the hide, and kick it to the curb, let the fur fly and lets have at it, Im game for any ideas!


    Troll
    Hi, I'm RAH and I'm a Benaholic.-rah

  • #2
    Hmm, my CtP1 SLIC coding is very rusty but this should be easy so let's give it a try:

    Code:
    trigger 'LOQ_MoreSettlers' when (g.player > 0) {
    	if (g.year == 0) {
    		i = 0;
    		SetUnitByIndex(1, g.player, 0);
    		while (i < 23) {
    			CreateUnit(g.player, UnitType("UNIT_SETTLER"), unit.1.location, 1);
    			i = i + 1;
    		}
    	} else {
    		DisableTrigger('LOQ_MoreSettlers');
    	}
    }
    Put this in script.slc or scenario.slc and see if it works. Assuming DiffBD.txt is set in such a fashion that all players get 2 units, this code will make sure all players get 25 settlers (to make it a different number, just change 23 to the number you want minus 2 (to correct for the 2 settlers from DiffDB).
    Last edited by Locutus; May 23, 2002, 16:39.
    Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

    Comment


    • #3
      you don't need to define integers in SLIC1?
      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


      • #4
        Nope. And it doesn't know for loops, does built-in variables differently and has an even more incomprehensible triggering system than CtP2
        Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

        Comment


        • #5
          This particular feature is part of Keygen's PBEM Mod Lite - from his scenario.slc I copy (with some major modifications):

          Code:
          Trigger 'StartUp' when (unit.beginturn && (g.year == 0)) {
            ExtractLocation(unit.location, StartLocation);
            While (i < 3) {
              CreateUnit(g.player,UnitType("UNIT_SETTLER"),StartLocation,0);
              i = i + 1;
            }
            i = 0;
          }

          Comment


          • #6
            D'oh! I forgot the i = i + 1 part for my code (fixed now)

            Other than that, it is (should be) different code to accomplish exactly the same thing. One thing though: there can only be 9 units per tile, so if you want more than 9 settlers, they don't all fit in one tile, that's why I gave createunit a 1 as argument rather than a 0, that will create settlers 1 tile from the starting position, wherever it's legal.
            Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

            Comment


            • #7
              I think you might run in to trouble passing unit.1.location to the function, but perhaps not.

              Comment


              • #8
                I'm pretty sure that should work, but I'll test...
                Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

                Comment


                • #9
                  Tested it. My code at least works like a charm (didn't bother to test Keygen's code, I'm sure it works as well).
                  Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

                  Comment


                  • #10
                    Ok.. help me please, I can find almost any file within the CTP folder, but WHERE do you place these codes?

                    Help me..plullease!!

                    Troll
                    Hi, I'm RAH and I'm a Benaholic.-rah

                    Comment


                    • #11
                      As I stated in the first post in this thread, in either scenario.slc or script.slc (ctp_data\default\gamedata\ )
                      Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

                      Comment


                      • #12
                        Originally posted by Locutus
                        As I stated in the first post in this thread, in either scenario.slc or script.slc (ctp_data\default\gamedata\ )
                        Ok..I have another question, whenever i go to that file it requests I pick a program to open it with..do you..um..have any suggestions??????


                        Thanks

                        Troll
                        Hi, I'm RAH and I'm a Benaholic.-rah

                        Comment


                        • #13
                          Any text editor will do fine. NotePad, EditPlus, UltraEdit, whatever...
                          Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

                          Comment


                          • #14
                            Originally posted by Locutus
                            Any text editor will do fine. NotePad, EditPlus, UltraEdit, whatever...
                            Sa-Weet!

                            U hooked me up with EditPlus earlier this week!


                            Off to "challenge" myself....
                            Hi, I'm RAH and I'm a Benaholic.-rah

                            Comment


                            • #15
                              Ok..thanks for the insight, now there are in script.slc 3147 lines and in scenario.slc a brief description..

                              Questions please?

                              #1 Is there anywhere I need special to add one of those?

                              #2 If I placed in scenario.slc would I simply add that to my scenario file and it would read it?

                              Or do i need to add to both?

                              Thanks, I smell some possibilities and I am also seeing in BOLD print the signature for Immortal Wombat from Mike Breitkreutz, Firaxis

                              Troll
                              Hi, I'm RAH and I'm a Benaholic.-rah

                              Comment

                              Working...
                              X