Does anyone know how to randomize start locations in a WBS file?

Exavier

Destroyer of Worlds
Joined
Nov 14, 2005
Messages
906
Location
Phoenix, Arizona, USA
Name says it all lol.
Does anyone know how to randomize start locations in a WBS file?

I have a 9 player map i have made but i can't figure out how to randomize that start locations. I am sure that it takes a script but i am not sure if its something that goes in the WBS file or more of a mod type thing.

Basicly i have a very balanced map i made for multiplayer with friends but atm all 9 players just start out at the same spot every game. Yes its a balanced map so it shouldn't be a problem but personally i'd like to start in a different part of the world sometimes.

And after spending a cpl days going through older threads (does this board not have a search function?) I haven't been able to find a thing to help me with it. Anyone know how to randomize that start locations?
 
Do you mean random in the sense that you want the starting locations to be in different parts of the map each time, or for them to be in the same place but with a different player starting at each one each time you play?
 
same place, different players.

Basicly i have 9 locations marked as start locations. when the game is started it randomly puts each player at 1 of those 9 locations untill they are filled up. you know the way every other stratagy game on the market works :P
 
Do you have the starting locations specified with the civiliation at the top of your map file? By this I mean something along the lines of
this inside a player section:

Code:
BeginPlayer
StartingX=20, StartingY=25
*Rest of Player stuff*
EndPlayer

For random starts you need to place them in the plot where you want them to be. So if you wanted them in the plot x=20, y=25 you would have something like this:

Code:
BeginPlot
	x=20,y=25
	TerrainType=TERRAIN_PLAINS
	PlotType=2
StartingPLot
EndPlot

If you've used Rhye's BMPtoWBS converter then you can enter the starting plots in your map's .py file. Alternatively you could use the modified version I made (in mysig) which lets you take in starting locations from a BMP.

Hope this is of some help, if this doesn't work let me know :)
 
That worked perfectly thank you...

Thats all i needed to finish that map. so what forum is a good place to post it in (when i get time) so i can get some ppls opinions on it? I know there is the player created maps forum but thats for finished maps... i am not sure i consider this one finished yet :P
 
Back
Top Bottom