Page 1 of 1

[XML] Decay to Neutral

PostPosted: Sun Sep 22, 2013 6:58 pm
by -=- Tanarri -=-
Concise description:
  • Add the XML code to allow a player controlled region with negative bonus to decay to neutral instead of remaining at 1 of the player's colour when they would get to 0.

Specifics/Details:
  • Logically speaking, it only makes sense that if you don't have enough troops to cover the decay cost, that all your troops would be dead and hence the territory should revert to neutral 1
  • It may be interesting to allow the map maker the ability to choose what neutral value the territory resets to if it hits 0 troops
  • Another way of handling it could be to take the number of troops away from the decay amount and have that as the neutral value... so 2 troops on a 5 decay spot would result in neutral 3

How this will benefit the site and/or other comments:
  • Just makes more sense and adds another map making tool.

(Mod edited for clarity)

Re: [XML] Decay to Neutral

PostPosted: Wed Sep 25, 2013 10:55 pm
by spiesr
An interesting extension of this idea would be for the now neutral territory to gain more troops each round according to its decay rate, presumably up to some cap. That would thematically fit with this idea, although coding wise it would be pretty different.

Re: [XML] Decay to Neutral

PostPosted: Thu Sep 26, 2013 12:12 am
by koontz1973
spiesr wrote:An interesting extension of this idea would be for the now neutral territory to gain more troops each round according to its decay rate, presumably up to some cap. That would thematically fit with this idea, although coding wise it would be pretty different.

Can be done now as a bonus but without the cap. So a decay of 2 could reasonable give a bonus of 1 or 2 somewhere else.

Re: [XML] Decay to Neutral

PostPosted: Tue Nov 26, 2013 12:29 am
by JamesKer1
SUBMITTED

Re: [XML] Decay to Neutral

PostPosted: Tue Nov 26, 2013 10:33 am
by thenobodies80
Apart a not clear description in the OP, I fully support this suggestion. Bravo Tanarri! =D>

Please a mod can change the OP from:

Add the XML code to allow neutrals to decay to neutral instead of remaining at 1 of the player's colour when they get to 0 or less


to:

Add the XML code to allow a player controlled region with negative bonus(decay) to decay to neutral instead of remaining at 1 of the player's colour when they get to 0.


I'm not sure if it's a good thing to think to add now an additional option that allow to set the number of neutral when the region reverts....

However, as it is now it looks essentially add an option like revert="yes" to the territory bonus tag. doing so the game knows that if the troop value (k) is k<1 it needs to revert to neutral 3 (fixed value if we don't add additional info)

Example:

Code: Select all
<territory>
...
<bonus revert="yes">-1</bonus>
...
</territory>


With the above, the region has a -1 per turn decay. If you control it at the start of your turn and you have there just 1 troops you will lose that regions in favour of 3 neutral troops. With 2+ troops, you just find yourself with 1 troops less than the previous turn when you click start.

Ah, obviously the revert (or what ever it will be) option is NOT mandatory for backward compatibility.

Re: [XML] Decay to Neutral

PostPosted: Tue Nov 26, 2013 10:41 am
by Metsfanmax
OK, I edited to make it a little more clear. I'll let bW decide how he wants to handle the technical aspect.