Chapter 2 level 43 number two

I’m stuck in this level. I completed it by using illusion magic to rescue friends and get to the exit, however, it wont let me use a variable to track names or resign a variable.

Welcome to the discourse! Check out this topic to learn how to post your code correctly.