KSS:Battle Windows: Difference between revisions

From Kirby Speedrunning Wiki
Jump to navigationJump to search
Line 10: Line 10:
===Procedure===
===Procedure===
[[File:BattleWindowsRNGFlowchart.png|thumb|Flowchart depicting how Battle Windows uses RNG.]]
[[File:BattleWindowsRNGFlowchart.png|thumb|Flowchart depicting how Battle Windows uses RNG.]]
1.) Determine if a power will appear on the right side:
*1.) Determine if a power will appear on the right side:
*64 < RNG < 127: Power appears
**64 < RNG < 127: Power appears
*Else: Does not appear (Skip steps 2 and 3)
**Else: Does not appear (Skip steps 2 and 3)


2.) Determine which pool to choose from:
*2.) Determine which pool to choose from:
*0 < RNG < 63: Pool 1 (Sprite number 90)
**0 < RNG < 63: Pool 1 (Sprite number 90)
*64 < RNG < 127: Pool 2 (Sprite number 91)
**64 < RNG < 127: Pool 2 (Sprite number 91)
*128 < RNG < 191: Pool 1 (Sprite number 90)
**128 < RNG < 191: Pool 1 (Sprite number 90)
*192 < RNG < 255: Pool 2 (Sprite number 91)
**192 < RNG < 255: Pool 2 (Sprite number 91)


3.) Choose a power from the pool previously determined:
*3.) Choose a power from the pool previously determined:


4.) Determine if a power will appear on the left side:
*4.) Determine if a power will appear on the left side:
*128 < RNG < 191: Power appears
**128 < RNG < 191: Power appears
*Else: Does not appear (Skip steps 5 and 6)
**Else: Does not appear (Skip steps 5 and 6)


5.) Same as step 2
*5.) Same as step 2
6.) Same as step 3
*6.) Same as step 3


Notes:
Notes:
*If no abilities appear for 3 consecutive turns, abilities will appear from both sides on the next turn (steps 1 and 4 are skipped).  
*If no abilities appear for 3 consecutive turns, abilities will appear from both sides on the next turn (steps 1 and 4 are skipped).  
*In the rare circumstance that abilities appear on both sides, and both sides contain the same ability, step 4 will be repeated again after step 6. This will continue to repeat until either both abilities are different, or only a right side ability appears.
*In the rare circumstance that abilities appear on both sides, and both sides contain the same ability, step 4 will be repeated again after step 6. This will continue to repeat until either both abilities are different, or only a right side ability appears.

Revision as of 00:41, 17 June 2023


Random Number Generation

Turn Order

Attacks

Ability Appearance

When it is Kirby's turn to attack, abilities have a chance of appearing on each side of the screen. Several random numbers are used during this process. This calculation is different from power calculation in The Arena.

Procedure

Flowchart depicting how Battle Windows uses RNG.
  • 1.) Determine if a power will appear on the right side:
    • 64 < RNG < 127: Power appears
    • Else: Does not appear (Skip steps 2 and 3)
  • 2.) Determine which pool to choose from:
    • 0 < RNG < 63: Pool 1 (Sprite number 90)
    • 64 < RNG < 127: Pool 2 (Sprite number 91)
    • 128 < RNG < 191: Pool 1 (Sprite number 90)
    • 192 < RNG < 255: Pool 2 (Sprite number 91)
  • 3.) Choose a power from the pool previously determined:
  • 4.) Determine if a power will appear on the left side:
    • 128 < RNG < 191: Power appears
    • Else: Does not appear (Skip steps 5 and 6)
  • 5.) Same as step 2
  • 6.) Same as step 3

Notes:

  • If no abilities appear for 3 consecutive turns, abilities will appear from both sides on the next turn (steps 1 and 4 are skipped).
  • In the rare circumstance that abilities appear on both sides, and both sides contain the same ability, step 4 will be repeated again after step 6. This will continue to repeat until either both abilities are different, or only a right side ability appears.