Need help with UNO and motorsheild r3 ?

so i would use digitalWrite(somevalue) in order for it used as an output from the two orange blocks.

No. The analogWrite(somePin, someValue) function is used to alter the duty cycle of those pins. Whether that is sufficient, though, remains to be seen, as dxw00d pointed out.

Also, that shield is only designed to control two motors, not four. And, no, you can't stack them.