Thread: RNG Research
View Single Post
Old Jul 26th, 2011, 8:24:59 PM   #762
Kaphotics
Remodeling Kitchens
is a Pokémon Researcheris a Contributor to Smogon
 
Kaphotics's Avatar
 
Join Date: Apr 2009
Posts: 758
Berkeley, CA
Default

BW Battle RNG p2
  • Speed determines who gets what random number calculation priority. (Ingame Battles).
  • If it does not require a random number for a particular aspect of a move, it will not consume a frame for that calculation.
  • If your move is a delayed attack move (Fly/Future Sight/Doom Desire), the game will not consume any frames until the turn it activates.
  • If the Pokemon is knocked out, no consumption of frames is used for reducing effects (like stat drops).

So far tested structure (speculation at bottom of post):
Code:
0 - Initial
1 - Hit (Accuracy)
2 - Critical
3 - Damage
4 - Secondary Effects (reducing, status, effect spore)

So far I have only tested psychic (ie one secondary effect). 
More complex moves like Tri-Attack have yet to be tested.

Also untested is Moody
Code:
Hit: 
((SEED>>32)*100) >>32, == 0-99, cmp if < accuracy, hit.

Critical:
((SEED>>32)*s) >>32, if 0 crit).
Stage 	- *#
1 	- *16
2	- *8
3	- *4
4	- *3
5	- *2

Damage:
???????????? 

Stat Drop:
((SEED>>32)*100)>>32 = 0-99, cmp if < drop%, reduce.
Examples of Some Move Choices and Results
speculation on untested moves/scenarios

Last edited by Kaphotics; Jul 27th, 2011 at 11:52:04 PM.
Kaphotics is offline   Reply With Quote