KSS:Battle Windows: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 110: Line 110:


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). This is tracked in CARTRAM value 17A6.
*If no abilities appear for 3 consecutive turns, abilities will appear from both sides on the next turn (steps 1 and 4 are skipped). This is tracked in the [[#RAM Values|game's memory]].
*<span id="ability-circumstance">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 the left side ability does not appear.</span>
*<span id="ability-circumstance">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 the left side ability does not appear.</span>
=RAM Values=
All currently known RAM values associated with Battle Windows.
{| class="wikitable" style="text-align: left;"
!Domain
!Address
!Description
!Procedure
!Function
|-
|CARTRAM
|1790
|Idle Timer
|Starts at 104, then loops to 255 for a total of 360 frames. Counts down once every frame.
|Kirby's turn is up when this value reaches 0.
|-
|CARTRAM
|1791
|Attack state?
|Changes based on Battle Windows attack. Needs more research.
|-
|CARTRAM
|179C
|Even or Odd Turn
|Value switches between 0 and 1 after each turn.
|Alters which attacks are used in each RNG range.
|-
|CARTRAM
|1838
|Timer (after attack)
|Value stays at 255 until Kirby attacks Battle Windows at least once. After first Battle Windows hit, counts down from 90 once every frame.
|Kirby's turn is up when this value reaches 0.
|-
|CARTRAM
|1888
|Timer for text scroll
|Needs more research
|-
|More to come...