The order of ability activation in Generation 3 and 4 works quite differently to modern generations. Ability activation order is determined by a pre-set order of priority and not entirely by Speed. This is the case for only certain abilities in Gens 5+ (such as Tera Shift and Neutralizing Gas) but that is beyond the scope of my tests.
As this mechanic is currently not properly implemented on Showdown for generation 3 or 4, my aim is to test and document the mechanics and report bugs when relevant. In all of these tests I have used the exact Speed stat of a Pokemon as its nickname for clarity.
Generation 4
Test 1: Establish that Weather activates before Intimidate, and that order of activation of abilities in the same ‘category’ is determined by Speed. Show that Intimidate targets the faster opponent first and then the second fastest. Show that White Herb activates after all abilities.
https://replay.pokemonshowdown.com/gen4vgc2010-2422113252-46ug7myix1wdjpyx1wjsfwemgbn3cd1pw?p2
- On Cartridge: All Pokemon are sent out, Kyogre (fastest Pokemon) activates Drizzle first, then Groudon (slower than Kyogre) activates Drought, then Gyarados (faster than Arcanine) activates Intimidate, Gyarados’ Intimidate drops the attack of Kyogre and then Groudon (in order of Speed), then Arcanine activates Intimidate and finally Groudon’s White Herb activates and resets Attack to +0.
- On Showdown: All Pokemon are sent out, Kyogre (fastest Pokemon) activates Drizzle first, then Gyarados, then Groudon, then Arcanine, the Intimidate drops are not in order of Speed and the White Herb activates before the second Intimidate activation, which results in Groudon’s attack ending at -1.
The above test establishes that in Generation 4, ability activation order is not determined solely by Speed or positioning, but rather a pre-set order of priority. I will use the property of transitivity (i.e. if A>B and B>C, then A>C) to establish the complete order of ability activation.
Test 2: Establish the complete order of ability activation.
Priority of ability activation (Generation 4):
- Trace
- Weather (Drought, Drizzle, Sand Stream, Snow Warning)
- Intimidate
- Download
- Anticipation
- Forewarn
- Frisk
- Slow Start
- Mold Breaker
- Pressure
- *Immunity (I was not able to test this.)
- Flower Gift
After all abilities activate, items such as White Herb or berries will activate.
Generation 3
Test 1: Establish that Weather activates, then Intimidate, then Trace, and that order of activation of abilities in the same ‘category’ is determined by Speed. Show that Intimidate targets based on the position and not the Speed.
https://replay.pokemonshowdown.com/gen3doublesou-2528815842-go603vmdsnp81it7an9jc1atlsgcau8pw
https://replay.pokemonshowdown.com/gen3doublesou-2528816453-vsfr8qr7el0aj0hd3kqhvedhg2dcs4xpw
- Game 1
- On Cartridge: All Pokemon are sent out, Groudon activates Drought first, then Kyogre (slower than Groudon) activates Drizzle, then Arcanine activates Intimidate which drops Gardevoir’s (Slot 1) Attack and then Kyogre’s (Slot 2) Attack and finally Gardevoir activates Trace which traces Intimidate, doing nothing.
- On Showdown: All Pokemon are sent out, Gardevoir (fastest Pokemon) activates Trace which traces Intimidate doing nothing, then Arcanine activates Intimidate which drops Gardevoir’s (Slot 1) Attack and then Kyogre’s (Slot 2) Attack, then Groudon activates Drought and finally Kyogre (slower than Groudon) activates Drizzle.
- Game 2
- On Cartridge: All Pokemon are sent out, Kyogre activates Drizzle first, then Groudon (slower than Kyogre) activates Drought, then Arcanine activates Intimidate which drops Gardevoir’s (Slot 1) Attack and then Kyogre’s (Slot 2) Attack and finally Gardevoir activates Trace which traces Drought, doing nothing.
- On Showdown: All Pokemon are sent out, Kyogre (fastest Pokemon) activates Drizzle, then Gardevoir activates Trace which traces Intimidate doing nothing, then Arcanine activates Intimidate which drops Gardevoir’s (Slot 1) Attack and then Kyogre’s (Slot 2) Attack and finally Groudon activates Drought.
Priority of ability activation (Generation 3):
- Weather (Drought, Drizzle, Sand Stream)
- Intimidate
- Trace
After all abilities activate, items such as White Herb or berries will activate.
To summarise the results of these tests, ability activation is in a pre-set order. Which in Generation 3 is Weather, Intimidate, then Trace. In Generation 4 it is Trace, Weather, Intimidate, Download, Anticipation, Forewarn, Frisk, Slow Start, Mold Breaker, Pressure , Immunity, then Flower Gift. If two Pokemon have the same ability (or both have any weather setting ability) then the activation in both Generation 3 and 4 is in speed order.
With the current implementation on Showdown, abilities activate only in order of speed which is not accurate to cartridge.
These tests additionally demonstrated a separate mechanics quirk in Generation 4. Being that Intimidate drops the attack of the faster opposing Pokemon, and then the slower Pokemon. This reveals their speed order which can be crucial information. It is also currently not implemented correctly on Showdown.