Editing
Battle RNG
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Seeding == Battle RNG is seeded by the return value of a single call to [[System RNG]] which is used to populate the Index Array as follows:<syntaxhighlight lang="c" line="1"> void BattleSRand(int seed) { int i; for (i = 0; i < 8; i = i + 1) { BattleRandArr[i] = (byte)seed; seed = seed >> 1; } BattleRandIdx = 0; return; } </syntaxhighlight> === Seeding Differences between PSX and PC === Both PC/HD and PSX use a 15-bit value to seed Battle RNG, but this value comes from different sources between the versions. On PC/HD, a call to System RNG is made for the value that will be used. This leads to the possibility of [[System Clock Manipulation]]. On PSX, the lowest 15 bits of the global frame counter are instead used.
Summary:
Please note that all contributions to Final Fantasy VII Speedrun Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Final Fantasy VII Speedrun Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information