********** PROBABILITY ********** This, admittedly brief, section covers random events, or, more specifically, the random number values used by sprites when doing something randomly. The program takes the random number it generates and looks to see if it is bigger than the numbers shown here. If it is, it does something, if not, it does (OR doesn't do) something else. Most often this value is $80 (128) which is '50/50' (Your maximum and minium values are thus $00 and $FF) Using this section allows you to control how often things happen. Your best bet it to stick to multiples of 10 and to remember that $80 does not mean 'half the time' but more like 'on average' Sadly not all random behavior is governed this way, some take a random number and compare it to another random value in memory. (The most popular is DS:A54C) ### #Lil Ampton ### #Chance of initially moving right: %patch $1129B $80 #? (Close to pole sliding) %patch $113CE $80 $00 ### #Robo Red ### #Chance of initially moving right: %patch $125D2 $80 #Probability Red will shoot when Keen is near: %patch $12624 $10 $00 ### #Shikadi ### #Chance of facing left when spawned %patch $12F02 $80 #Chance of zapping a pole %patch $130D3 $80 #Chance of going to standing (IF Keen is not level with it!) %patch $12FB6 $10 ### #Shocksund ### #Bark frequency %patch $1330E $80