Announcement

Collapse
No announcement yet.

Sabotage!

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

  • Sabotage!

    One of the things I miss most (from Civ2) is the diplomat/spy's ability to perform acts of sabotage. Is there any way this can be implemented via SLIC? The option to destroy a city improvement, random or targeted, always costing gold and having a random chance of success depending upon the happiness of the targeted city? Gold amount also varies with city happiness, of course.
    In a similar vein, how about targeted bombings by aircraft? These days we can destroy chosen structures in a city with a reasonable degree of accuracy. Can this be modeled in CtP2 via SLIC, either in a new unit or an ability that becomes available to a regular bomber after discovering a particular tech? The city may have to be pre-investigated, but that's okay. Send in the spy, have him do recon, then have your fleet of bombers take out the enemy's cathedral/TV station/whatever.
    Just an idea.

  • #2
    Good idea! I miss that spy tactic also.

    Comment


    • #3
      I believe the only way you can remove a building from a city via SLIC is with the SellBuilding event. I can't think of any way to destroy a building from a script otherwise, unfortunately. The SellBuilding event has two problems:

      1) it'll give the player who owns the city gold for the building (which can then be removed with AddGold(-sellprice))

      2) You can only sell a building once per turn per city, so if you use this, you'd only be able to sabotage one building per turn per city.

      I realize the documentation on SLIC2 isn't available yet, so taking this out of context probably doesn't help much, but the syntax for adding a sell building event in a script is:

      Event:SellBuilding(city, buildingDBIndex);

      I'm also not sure how you'd go about asking them what building they want to destroy, SLIC isn't so hot for presenting a whole bunch of options. But maybe someone can think up something clever.
      Joe Rumsey - CTP Programmer

      Comment


      • #4
        I'm sorry to hear, MrOgre... sounds like a good candidate for an additional SLIC command in a patch. I might be wrong but it doesn't sound too complex to implement. I can think of a million uses for a create and destroy improvement/wonder statement, in scenario design.

        I think thats a pretty serious ommission.

        Comment


        • #5
          Creating them can be done, that's no problem.

          And, in fact, destroying all buildings in a city is possible. You'd have to modify the percentage on the nano-infect order to be 100% (so you'd probably want to remove nano-infect as an order) and generate a NanoInfection event for the city.

          Then, recreate all the buildings you didn't want to destroy.

          So, I guess I was wrong, maybe you can do it, it's just a bit convoluted.

          I don't have a trick for removing a wonder, but I do have an alternative - since wonders are unique in the world, and can have advances which obsolete them - just add an advance that can't be gotten any other way, then give that advance to the player that owns the wonder you want to "remove". It won't remove the wonder, but it will turn off its effects. Just as good .

          [This message has been edited by Mr Ogre (edited November 20, 2000).]
          Joe Rumsey - CTP Programmer

          Comment


          • #6
            oh god... let me think I'm sure I have something laying around about events I'd like that was more tailored to civ2 but might have a good bearing in Ctp2.

            Comment


            • #7
              So, how about a spy sabotaging a military unit?

              Actually, you could do that as a "bombard", I suppose, and give it a chance of making the spy veteran. It should be fairly weak, so as to damage and not destroy.

              Another good spy slic - is there any way a spy could examine an army in the field and report what units are in the stack, and/or their health? That would be very useful!
              Lev Koszegi

              Comment


              • #8
                MrOgre> Would it really be such a big deal to include something in the patch so this stuff isn't so kludgy?

                I know that there is other stuff to do, but this does seem such a small thing.

                BTW... if you do a kill unit command, please make sure it doesn't affect your score.

                Comment


                • #9
                  Mr Ogre,
                  How about the BuildingRemoved(City, Int) and WonderRemoved(City, Int) events? Can those only be listened to or can they also be called? If the latter is the case, that might work.

                  And as far as telling what building to destroy I see a few options (though not very pretty). Most feasible are buttons and messageboxes. How many buttons can be put in a messagebox/alertbox? IIRC this was only three or so in CtPI, has this increased in CtPII? Does the length of the text on the buttons have anything to do with this? If the number is something like 5 or more (the more the better of course), the right improvement could easily be selected by combining a few messageboxes/alertboxes in a clever way (FE select type of building first - happiness, science, production - and the specific building after that in a second messagebox/alterbox).

                  Another option would be ldl files. Any chance a modmaker could cook something of a selecting menu of some sort up with these?
                  Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

                  Comment


                  • #10
                    Sabatage, Precision bombing and Bribing

                    Along with bribing, this would be a great idea to add to the spy, i would love it. Especially if the AI used it agianst you too.

                    The thing about being able to use precision bombing would be amazing too. These would be cool for your HotW mod Locutus.
                    I thought of that idea myself but didnt mention it as i thought it was already in ctp2. But i think im getting mixed up with civ3 (which doesnt implement it as good as being able to pick specifics) I THINK

                    Anyway 2 very good ideas. Could they not now (2yrs later) be implemented with SLIC ?
                    Last edited by SMIFFGIG; September 30, 2002, 18:36.
                    Oxygen should be considered a drug
                    Tiberian Sun Retro
                    My Mod for Tiberian Sun Webmaster of
                    http://www.tiberiumsun.com

                    Comment


                    • #11
                      Steal map as spy ability

                      Another cool spy option would be "STEAL MAP" it would be very low chance of getting it with it increasing with the newer units eg cyberninja etc. Or even steal partial map either as the initial task or as a lesser outcome for when trying to steal whole map.
                      Im pretty sure this can be done cause in the const.txt it has the following:

                      GOSSIP_MAP_RADIUS 10 # When a map is revealed through gossip, a circle of # this radius appears
                      A leftover from gossip (which by the way can it be added back into the game??).
                      Could something like this be used to make the steal partial map work?
                      Last edited by SMIFFGIG; September 30, 2002, 18:32.
                      Oxygen should be considered a drug
                      Tiberian Sun Retro
                      My Mod for Tiberian Sun Webmaster of
                      http://www.tiberiumsun.com

                      Comment


                      • #12
                        A steal map order? Really easy to do. I may consider this to my mod

                        And I alreay have a totally functional and tested bribery code order for my mod.
                        "Kill a man and you are a murder.
                        Kill thousands and you are a conquer.
                        Kill all and you are a God!"
                        -Jean Rostand

                        Comment


                        • #13
                          cool!

                          what about Sabatage and Precision bombing these are very good ideas too (IMO)
                          Oxygen should be considered a drug
                          Tiberian Sun Retro
                          My Mod for Tiberian Sun Webmaster of
                          http://www.tiberiumsun.com

                          Comment


                          • #14
                            I think so
                            We coud use CityHasBuilding(city, building), DestroyBuilding(city, building) and my messagebox spinner idea from the PBEM fix attempt.
                            But i dont think i will have time for it (It isnt as easy as the steal map order )
                            "Kill a man and you are a murder.
                            Kill thousands and you are a conquer.
                            Kill all and you are a God!"
                            -Jean Rostand

                            Comment


                            • #15
                              DAMN IT happened again lost post (lucky I copied my post )

                              Looks like FIRAXIS nicked my steal map idea

                              Another thing they have is (Sabatage Production) now here are some ideas (which you dont have time to do i know but maybe could be done for HotW)

                              1) Steal map option
                              15% Chance you steal whole map
                              35% Chance you get a percentage of there map but not whole map
                              25% Chance you get nothing
                              25% Chance you get nothing and spy unit gets killed

                              2) Sabatage option
                              20% Chance you get to destroy a building of your choice presented in a list
                              30% Chance you get to destroy a building but its random
                              25% Chance you destroy nothing
                              25% Chance you destroy nothing and get captured and killed

                              And precision bombing


                              Look here



                              IMO what a crap way to implement it??? Oh well dont bother me
                              Oxygen should be considered a drug
                              Tiberian Sun Retro
                              My Mod for Tiberian Sun Webmaster of
                              http://www.tiberiumsun.com

                              Comment

                              Working...
                              X