Announcement

Collapse
No announcement yet.

Mod Idea

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

  • #16
    Originally posted by Locutus
    Of course, in theory a human player could exploit that: you could give the AI lots of advances as gifts and it would probably thinks it's getting loads of presents, while in reality it's not getting anything at all.
    Yeah, that's where I was heading with it. You could probably give them the same advance over and over again. Depends whether they'd want it I suppose.

    When you have different tech trees, you'll have to have different strategies and advancelists anyway, otherwise the AIs wouldn't know what to research...
    You could stick all the trees into one list, and they'd only get the ones that the SLIC let them get anyway.
    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


    • #17
      Originally posted by Immortal Wombat
      You could stick all the trees into one list, and they'd only get the ones that the SLIC let them get anyway.
      Well, I suppose that's possible, but it's not exactly very elegant, is it?
      Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

      Comment


      • #18
        Elegant in that it saves a whole lot of bother
        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


        • #19
          Well, if you think writing one line of SLIC code and

          STRATEGY_WHATEVER {
          Research ADVANCE_LIST_BLAH
          StopResearch ADVANCE_LIST_STOP_RESEARCH
          }

          once per tech tree per personality is a whole lot of bother...
          Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

          Comment


          • #20
            Wouldn't you also need to SLIC each civilisation to a particular set of strategies?
            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


            • #21
              Well, I said you'd need one line SLIC code per tree per personality. It's actually slightly more, but still:

              Code:
              handleevent(beginturn) {
              
              if player personality is WHATEVER {
              	if player has tree 1
              		load strategy (WHATEVER_STRAT+1)
              	if player has tree 2
              		load strategy (WHATEVER_STRAT+2)
              	...
              } elseif ...
              
              etc -- repeat for every personality and tree
              (Of course, you'd have to place the strategies at the right place in strategies.txt so they have the correct index)

              Edit: heck, if you coded this right you could probably make it a double for loop, needing only 4 lines of code...
              Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

              Comment


              • #22
                Thats all sorted then. A bunch of strategies, advancelists and 50 lines of SLIC to sort the AI out, then just the tech tree to design. Sounds like fun.
                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


                • #23
                  "Can I ask a couple of questions re the above.

                  I gather that this type of function is called automatically each turn-
                  int_f mod_CanPlayerHaveAdvance".

                  I gather the answer to this question is yes?

                  Lots of food for thought now, thanks.

                  Comment


                  • #24
                    Yes.
                    Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

                    Comment


                    • #25
                      One more quick question, please,

                      Can you block access to the game editor with slic? If so, whats the command?

                      Thanks.

                      Comment


                      • #26
                        No idea at all about this 'ere slic malarky, but why would you want to block the editor?

                        Comment


                        • #27
                          Just an idea. I have developed an ingame scoring system like CIV3 which will end the game with a win if a certain level of points is reached.

                          The ready access to the editor has always been a bit of a weak point in CTP2, makes the hall of fame a bit meaningless. Despite what it says, it does keep the score and put you in the hall of fame even if you access the editor after the start.

                          Comment


                          • #28
                            It must like you! When I last cheated it didn't even tell me my score lol

                            Comment


                            • #29
                              Pretty sure about it.

                              After cheat mode, you still have a score and a ranking in the game.

                              I was fidling with the game with a happiness event (-10 for 15 turns) and took no precautions and my entire empire revolted in one turn and the game ended with the loss AVI and I now have a low score in hscore.txt ({Augustus} 7390).

                              If you go into the editor, you get the message that your score wont be kept. If you go back into editor in that same sitting, you dont get the message again. However, if you start another sitting or load the game again and use editor, you get the message again.

                              Conclusion, when you load the game again, the flag that records the use of the editor must reset.

                              Thats why I was looking to restrict the access to the editor or at least record that it was used and adjust the score.

                              Comment


                              • #30
                                No, AFAIK there's no possible way to disable the scenario editor aside from altering the source code.

                                And yes, stankarp is right: whether or not you opened the scenario editor is only remembered for your current session, it's not stored in the savegame.
                                Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

                                Comment

                                Working...
                                X