Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon, and make sure you take some time to read the global rules.
Bulldoze > Signal Beam > Bulldoze IF Pain Split is issued, AND you do not have a Substitute up, THEN use Substitute (15 HP) that action. IF Mirror Coat is issued A2, THEN use Sand Tomb A2.