Announcement

Collapse
No announcement yet.

Specific human start location, random AI locations?

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

  • Specific human start location, random AI locations?

    As far as I can you can't do this.

    You can set starting locations in two ways:

    1) put the coordinates for the settler's tile in a specific civ's section of the WBS file

    2) put a series of coordinates under WriteStartingPlots for civs to randomly get assigned to


    The problem is this: I want to set the starting locations on a custom map, but I want the human player to always show up at a specific spot, no matter what civ the player choses.

    From what I see, you must force the player to play a specific civ to get a certain start location.

  • #2
    I think instead of a WBS file, you need to create a map script that will generate the same map everytime. You can randomize and fix starting locations from there. I want to do something like this, but not having the game, haven't looked into it much. I'm pretty certain its doable, from my inquiries though.

    Comment


    • #3
      I have a set map -- I'm not generating one via script.

      My new question is, "How do I write a conditional statement that checks each civ to see if it is the human player, and then inject the desired start location if it is?"

      I think I have to do something like this:

      --- --- --- ---

      for each Civ 1 through 12

      if IsPlayer(Civ) = true, then "\n\tStartingX=20, StartingY=40 \"

      --- --- --- ---

      That way, there's no starting location for the AIs, and they'll use the default list of starting location coordinates. If the civ is played by the human, he'll start where I want him.

      The problem is I have no idea how to write a conditional appropriately in python. I don't even know what the function is to determine if a civ is AI or human. I'm amazed I managed to get the random starting locations set up correctly in the first place.
      Attached Files

      Comment


      • #4
        whoever is in the center of the map is probably afraid of faliture

        Comment


        • #5
          Hell if I'm going to put hours and hours into a game of Civ 4 I don't want to be stuck in a corner and marginalized either, that island is where I'd want to start

          Comment

          Working...
          X