![]() |
Routines |
| Prev: 40074 | Up: Map | Next: 40104 |
|
Used by the routines at Action_Direction, Action_Run, Action_TalkTo, Action_Shoot, Turn_ResetToThePlayer, Turn_PickAScriptEntry, ActionBurn, Event_CloseTheGoblinsDoor, Event_AShortReply, Event_TheBarrel and Event_ARandomHalf.
Returns a random number from the seed taken at the start of the game.
|
||||||||||||
| GetRandomNumber | 40095 | CALL CalculateRandom | Call CalculateRandom to scale the roll. | |||||||||
| 40098 | BIT 7,A | Return if bit 7 of the scaled roll is clear. | ||||||||||
| 40100 | RET Z | |||||||||||
| 40101 | NEG | Negate the accumulator. | ||||||||||
| 40103 | RET | Return. | ||||||||||
|
View the equivalent code in;
|
||||||||||||
| Prev: 40074 | Up: Map | Next: 40104 |