take a look at the code.
I provide two different methods. one that uses the name of costumes as unique identifiers, and one that uses cloning to target the given sprite. In general, this kind of method could be used to signal a sprite to do many other things. this is just an example. I'm surprised you're allowed to put a variable in the clone block. that seems like it could allow some cool stuff.