62
edits
Force Fire (talk | contribs) Tag: Rollback |
(re-clarified rby code explanation that was lost with deletion of unapproved split page) |
||
Line 182: | Line 182: | ||
{{split|{{red link|Ace Trainer (Trainer class)/Trainer list}}|section}} | {{split|{{red link|Ace Trainer (Trainer class)/Trainer list}}|section}} | ||
===Pokémon Red, Blue, and Yellow=== | ===Pokémon Red, Blue, and Yellow=== | ||
In these games a random number is generated every turn, and if it falls within a specific range a checklist is followed to determine whether the Trainer will perform a special action like switching or using an item. The AI check is meant to be performed 25% of the time for both Cooltrainer types. However, the Cooltrainer♀ AI code is bugged and fails to properly handle the random check, meaning that Cooltrainer♀s will ''always'' perform the relevant actions when their individual requirements are fulfilled. The Cooltrainer♂ code does not have this bug, and thus occurs at the proper rate. | |||
Cooltrainer♂s have access to two X Attacks, which they will use 25% of the time. Cooltrainer♀s, on the other hand, are coded to check their Pokemon's current HP and perform one of two actions when it's under a certain threshold. If their current Pokemon is under 10% HP, they will use a Hyper Potion. If their Pokemon is '''not''' under 10% HP, but '''is''' under 20% HP, they will instead switch out to the next Pokemon in their party. Because of the aforementioned bug, Cooltrainer♀s will do this continuously so long as the HP condition remains true, which can lead to a Cooltrainer♀ switching two pokemon for each other ad infinitum. <ref>https://www.youtube.com/watch?v=-r8Ikqo_bus</ref> | |||
{{Trainerlist/h|3|red|blue|yellow}} | {{Trainerlist/h|3|red|blue|yellow}} | ||
{{Trainerlist/e|1|[[Celadon Gym|Cooltrainer♀]]}} | {{Trainerlist/e|1|[[Celadon Gym|Cooltrainer♀]]}} |
edits