All this does is track the last costume. In my project " Guess who's back - back again." I made this, so I thought "why not make this into a useful engine." This uses Lists
Click See Inside. If you add 18 costumes the last costume number variable will be set to 18. If you duplicate the last costume, that would make it so that you have 19 costumes, making it so that the last costume number variable will be set to 19.