It's hard to decide where to put these simple single questions when you're first gauging your ability to artistically contribute to map-making. So here's a thread that screams "noob questions."
I've looked over the XML tutorial and don't see anything about the possibility of doing the following, but I figured I'd ask to see if anyone has any ideas as to how to make this work, or suggestions of something that might:
Is there a way to auto-deploy an amount relative to the number of armies already on a territory?
As an example, I might want my code to double the armies on a territory. I have 4 armies on territory X, and at the beginning of a turn, 4 armies are auto-deployed. Or if I have 5, five armies will be auto-deployed. If we can't make this work, are there any other ideas that could be similar?
Napoleon Ier wrote:You people need to grow up to be honest.
InkL0sed wrote:Can't do it. Math and XML don't mix.
Math is like "Hi," and XML is like "Bitch get outta my face!"
Shit. I was afraid of that. Wtf kind of code doesn't do math? I guess I'll try to work something else out then. Any ideas will, of course, be appreciated.
Napoleon Ier wrote:You people need to grow up to be honest.
Neoteny wrote:
As an example, I might want my code to double the armies on a territory. I have 4 armies on territory X, and at the beginning of a turn, 4 armies are auto-deployed. Or if I have 5, five armies will be auto-deployed. If we can't make this work, are there any other ideas that could be similar?
Exponential growth + lots of turns = millions of armies
That'd be fun.
If you started with three armies, which would double every turn, you would have over 1.5 MILLION armies by the end of round 19....
Neoteny wrote:
As an example, I might want my code to double the armies on a territory. I have 4 armies on territory X, and at the beginning of a turn, 4 armies are auto-deployed. Or if I have 5, five armies will be auto-deployed. If we can't make this work, are there any other ideas that could be similar?
Exponential growth + lots of turns = millions of armies
That'd be fun.
If you started with three armies, which would double every turn, you would have over 1.5 MILLION armies by the end of round 19....
That's what I'm talking about! Of course, so would everyone else... If it were possible, a cap would probably be necessary. Alas...
Napoleon Ier wrote:You people need to grow up to be honest.