er, I've actually never seen that before, but I guess I could take a guess at how it works; make a custom battler but instead of having an attack move, have the character turn invisible instead. Create some battle animations that simulate the hero walking and attacking and then make a battle animation simulating that. Join the two.
This may be wrong and there might be an easier way to do this, just guessing~