I am just beginning to learn scheme theory. This question is aimed at getting a feel for something so apologies in advance for the lack of precision.
I am struck by the following difference from the theory both of varieties and smooth manifolds:
In the categories both of varieties and of smooth manifolds, a morphism is completely specified by what it is doing on the topological spaces, since the elements of the structure sheaf (regular functions for varieties, smooth functions for manifolds) are determined by their pointwise values. But in the category of schemes, to specify a morphism $f:X\rightarrow Y$ we need to separately specify the underlying topological map $f:X\rightarrow Y$ and the sheaf map $f^\#: \mathcal{O}_Y\rightarrow f_*\mathcal{O}_X$.
In spite of this, it seems to me that the topological map puts strong constraints on the sheaf map. For example, if $X=\operatorname{Spec}B,Y=\operatorname{Spec}A$ are affine schemes, the morphism is determined by a ring homomorphism $A\rightarrow B$; the topological map is how the primes contract under that ring homomorphism. If I know how all the primes are contracting, this does not leave the homomorphism a lot of room to wiggle. I request help in thinking about exactly how much room there is:
"How many" different morphisms are possible between schemes $X,Y$ with the same topological map $f:X\rightarrow Y$? "How different" can they get? What kinds of conditions on $X,Y$ limit this flexibility?
(For example, if $X,Y$ are integral, in which case elements of the structure sheaves are "determined by their pointwise values" in the residue fields $\kappa(p)$, does the topological map force a particular sheaf map as it does for varieties and manifolds?)