As said, the sought after concept is also known as Weil restriction. In a word, it is the algebraic analogue of the process of viewing an n-dimensional $n$-dimensional complex variety as a (2n)-dimensional $(2n)$-dimensional real variety.
The setup is as follows: let L/K $L/K$ be a finite degree field extension and let X $X$ be a scheme over L. $L$. Then the Weil restriction W_{L/K} X $W_{L/K} X$ is the K-scheme $K$-scheme representing the following functor on the category of K-algebras:
A |->
$A\mapsto X(A \otimes_K L)L)$.
In particular, one has W_{L/K} $W_{L/K} X(K) = X(L)X(L)$.
By abstract nonsense (Yoneda...), if such a scheme exists it is uniquely determined by the above functor. For existence, some hypotheses are necessary, but I believe that it exists whenever X $X$ is reduced of finite type.
Now for a more concrete description. Suppose $X = Spec L[y_1,...,y_n]/J \mathrm{Spec} L[y_1,...,y_n]/J$ is an affine scheme. Let $d = [L:K] L:K]$ and a_1,...,a_d $a_1,...,a_d$ be a K-basis $K$-basis of L. $L$. Then we make the following "substitution":
y_i
$$y_i = a_1 x_{i1} + ... + a_d x_{id},x_{id},$$
thus replacing each y_i $y_i$ by a linear expression in d new variables x_{ij}. $x_{ij}$. Moreover, suppose $J = < \langle g_1,...,g_m >; \rangle$; then we substitute each of the above equations into g_k(y_1,...,y_n) $g_k(y_1,...,y_n)$ getting a polynomial in the x-variables, $x$-variables, however still with L-coefficients. $L$-coefficients. But now using our fixed basis of L/K, $L/K$, we can regard a single polynomial with L-coefficients $L$-coefficients as a vector of d $d$ polynomials with K $K$ coefficients. Thus we end up with md $md$ generating polynomials in the x-variables, $x$-variables, say generating an ideal I $I$ in K[x_{ij}], $K[x_{ij}]$, and we put $\mathrm Res_{L/K} X = Spec K[x_{ij}]/I\mathrm{Spec} K[x_{ij}]/I$.
A great example to look at is the case $X = G_m G_m$ (multiplicative group) over $L = C \mathbb{C}$ (complex numbers) and $K = R. \mathbb{R}$. Then X $X$ is the spectrum of
C[y_1,.y_2]/(y_1
$$\mathbb{C}[y_1,y_2]/(y_1 y_2 - 1);1);$$
put $y_i = x_{i1} + \sqrt{-1} x_{i2} x_{i2}$ and do the algebra. You can really see that the corresponding real affine variety is R[x,y]((x^2+y^2)^{-1}), $\mathbb{R}[x,y]((x^2+y^2)^{-1})$, as it should be: see e.g.
Note the important general property that for a variety X/L, $X/L$, the dimension of the Weil restriction from L $L$ down to K $K$ is [L:K] $[L:K]$ times the dimension of X/L. $X/L$. This is good to keep in mind so as not to confuse it with another possible interpretation of "restriction of scalars", namely composition of the map $X -> Spec L \to \mathrm{Spec} L$ with the map Spec $\mathrm{Spec} L - > \to Spec K K$ to give a map $X -> Spec K\to \mathrm{Spec} K$. This is a much weirder functor, which preserves the dimension but screws up things like geometric integrality. (When I first heard about "restriction of

