The modifiers I could find are
When moving at a speed greater than one-half but less than your normal speed, you take a -5 penalty. It’s practically impossible (-20 penalty) to hide while attacking, running or charging.
If you are invisible, you gain a +40 bonus on Hide checks if you are immobile, or a +20 bonus on Hide checks if you’re moving.
(Assume checks are at 10' or less for simplicity)
Does this mean?
- Immobile: Hide check +40
- Moving less than 1/2 speed: Hide check +20
- Moving >= 1/2 speed: Hide check +15 (+20 from 2, -5 for >1/2 speed)
- Running or Charging: Hide check -5 (+15 from 3, -20 for running)
- Attacking: Hide check +20 (not otherwise moving)
- Attack at the end of a charge: Hide check -25 (-5from 4, -20 for attacking)
Or
- Immobile: Hide check +40
- Moving less than 1/2 speed: Hide check +20
- Moving >= 1/2 speed: Hide check +20
- Running or Charging: Hide check +20
- Attacking: Hide check +20
- Attack at the end of a charge: Hide check +0 (charging + attacking)
In other words, do you take the -20 penalty for attacking, running or charging twice, once for charging and once for attacking or just once?
And, does the penalty for moving stack with the penalty for moving at > 1/2 speed or the penalty for running or charging?
The Hide bonus from Invisibility just says "moving" and doesn't specify a speed, but it's a hefty difference from the bonus from immobile.
Charging is one case where the move and attack action are linked, so it would be feasible to penalize the original Hide check, but in practice, the attack modifier seems to usually be ruled for a Hide check after the attack (see here).
The rules compendium only muddies this further, but adding that only an inanimate object qualifies for the -40 modifier, and an animate object, even if immobile only gains a +30 Hide modifier.