05AB1E, 162 159 157 bytes
Code
Dammit, way too long, but it's at least something:
">:U"VI3Qið16×7166b1ð:0Y:DUJ,Yð13×JD?X,3838b1ð:0Y:D?X,16255b1ð:0Y:D?X,16367b1ð:0Y:4F?X,}ð21×Y3×J,}¹2Qið4×" U U"©J,"> :"®JD," > "?®,,ð6×'U3×J,}¹iY,}"quack
Try it online!
Explanation
The first part of the code exists of ">:U"V
, which sets Y
to that string. After that, we just check if the input is equal to 3. That is done at the I3Qi
part. If equal, we print the giant magpie:
N = 3
It first starts with ð16×
which just pushes 16 space characters. After that, there is a number 7166b
. This covers the ">:U "
part, with a little help from Retina :). I used this script to convert the string to a binary number. After that, we get to the 1ð:0Y:
part, which replaces every 1
with a space character and every 0
with Y
, which has been set to >:U
. After that, we D
uplicate this string, store it in X
using U
and J
oin the stack. We pop this using ,
, which prints the full string with a newline. All the others after that are all based on the same principe. The if statement ends at the second }
.
The full conversion can be found here.
N = 2
We now check if the input is equal to 2. This is done at the ¹2Qi
part. After that, if equal, we push the space character 4 times using ð4×
. After that, we push the " U U"
string and store it using ©
(idea blatantly stolen from Jelly :p). We again J
oin the stack and print this with a newline. After that, we push the "> :"
string, retrieve the " U U"
using ®
, J
oin the stack and D
uplicate this string and print these both on the same line.
Short quiz, what will this do: " > "?®,
?
After printing the above string, we get the duplicate of the second line of the face, and print this (since it's the same as the 2nd line).
The last part covered by this case is:
ð6×'U3×J,
ð6× # Push the space character × 6
'U3× # Push the "U" character three times
J, # Join and print pop with a newline
N = 1
This one is easier to explain:
¹1QiY
¹1Qi # Check if the input is equal to 1
Y # Push the magpie face
# This is then implicitly printed
N = 0
¹0Qi"quack
¹0Qi # Check if the input is equal to 0
"quack # Weird sound what magpies make
# Implicitly printed