new iLastChoice[33] // handler function // switch case 1: { iLastWeapon[id] = 1 } case 2: { iLastWeapon[id] = 2 } //etc // then use iLastChoice[id] to know what the player's last choice was