Rounding mode

From Warzone Wiki
(Difference between revisions)
Jump to: navigation, search
(Clarified *why* this only applies to luck settings below 100%)
Line 1: Line 1:
Game creators may pick between one of two '''rounding modes''' when the game is created: weighted random, or straight round.  This setting controls the way that remainders are dealt with in the [[basic combat|combat calculations]].
+
Game creators may pick between one of two '''rounding modes''' when the game is created: weighted random, or straight round.  When the result of the [[luck modifier]] calculation ends up with a remainder, this setting is used to determine if the result will be rounded up or down.
  
When the [[luck modifier]] is set to exactly 100%, all results will be integers, which do not need to be rounded. Therefore this setting only matters when the [[luck modifier]] is set to a value below 100%.  When the result of the [[luck modifier]] calculation ends up with a remainder, this setting is used to determine if the result will be rounded up or down.
+
When the [[luck modifier]] is set to exactly 100%, all results will be whole numbers, which do not need to be rounded. Therefore this setting only applies when the [[luck modifier]] is set to a value below 100%.  
  
Straight round may only be used by WarLight members.  All games created by non-members used the weighted random mode.
+
Straight round may only be used by WarLight members.  All games created by non-members use the weighted random mode.
  
 
== Weighted Random ==
 
== Weighted Random ==

Revision as of 11:55, 13 June 2012

Game creators may pick between one of two rounding modes when the game is created: weighted random, or straight round. When the result of the luck modifier calculation ends up with a remainder, this setting is used to determine if the result will be rounded up or down.

When the luck modifier is set to exactly 100%, all results will be whole numbers, which do not need to be rounded. Therefore this setting only applies when the luck modifier is set to a value below 100%.

Straight round may only be used by WarLight members. All games created by non-members use the weighted random mode.

Weighted Random

In the weighted random mode, WarLight will use a random roll to determine if the number should be rounded up or down.

For example, if the luck modifier formula determines that 12.8 armies should be killed, there is a 80% chance that the result will be rounded up to 13 and a 20% chance that the result will be rounded down to 12.

This is the default rounding mode.

Straight Round

In straight round mode, WarLight will simply round remainders to the nearest whole number. If the remainder is .5 exactly, the number will be rounded up.

This mode is useful those who don't like random factors in their games.

Be aware that using the straight round mode introduces a bit of micro-management into the game, which can sometimes reduce the overall fun. For example, with the default kill rate of 60% and a 0% luck modifier, it's a waste to attack with 4 armies since it would have the same effect as attacking with 3 except it puts an additional army of yours at risk and takes that army away from other benefit. Therefore, in this mode, it can often be beneficial to research how many armies you should be attacking with to get the desired result.

See Also

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox