Thanks for the information, but I seem to have trouble getting it to work. I can still choose any class I want.
(try_begin),
(is_between, ":troop_no", "trp_french_infantry", "trp_french_ship"),
(is_between, ":troop_no", "trp_french_ship_cannon", "trp_napoleon"),
(try_begin),
(eq,":store_messages",1),
(str_store_troop_name_plural, s21, ":troop_no"),
(assign, ":fail_message", "str_already_to_many_players_class_s21"),
(str_store_string, s4, "str_prisoner"),
(multiplayer_send_string_to_player, ":player_no", multiplayer_event_show_server_message, s4),
(try_end),
(assign, ":class_ok", 0),
(try_end),
(try_begin),
(gt,":fail_message",-1),
(str_store_string, s22, ":fail_message"),
(try_end),
(assign,reg3,":class_ok"),
(assign,reg4,":fail_message"),
(try_end),
]),
Again, I really appreciate the help.
EDIT: I'm trying to only allow the Sailor troop.