yay! welcome back!
targeting_mode = skill_type[skill_get_id(selected_skill[?player])];
targeting_mode = skill_type[skill_get_id(player.skills[|selected_skill[?player]])];
skill_get_id is a script that just returns the element of the ds_list containing the skill id