I have some gameplay ideas that I would like to test but am a script noob. I tried to edit some maps so the gold spawns would be more asymmetrical with the help of chatgpt, but it seems the game spawns resources as satellites of each player’s starting TC, whatever I set will always be mirrored? Attempts to change the structure resulted in failure to generate.
I wanted to test one player getting, say, 6000 gold spread across 3 nodes, versus the other getting 6000 spread across 2 nodes, and what would happen if a new gold/forest resource generated at 10 minutes, among other things. Is this possible? Thanks.
Sure, the first one with asymmetrical gold would be easy enough. You’d just need to define the gold mine objects you’d be using, then do something like:
for(int i = 1; i <= cNumberPlayers; i++)
{
if(xsRandBool(0.5) == true)
{
addObjectLocsForPlayer(<Insert desired data here>);
}
else
{
addObjectLocsForPlayer(<Insert desired data here>);
}
}
That sets it up to randomly select between those two options on a per player basis as you desire, allowing things to be more asymmetrical.
As for the second thing, as far as I know the map gen portion of the script only runs once, so you’d have to do it with triggers. That would heavily complicate things, though technically still be possible. Something like that would take a lot of coding, so I’m not even gonna try to fit it here lol.