I need some help

I have a 4x space exploration game, and I have a deck of planets that are in ascending numerical order. Can someone please help me program vassal to number each planet, as they are drawn, fetch a correspondingly numbered unit, and make a menu command to send the the unit back to its homeworld.

I’ve been working on this forever and I’m having so much trouble.