I've made a mistake concerning the melee-button on skirmish class units that do not have the "prec" tag in EDU, as they do have the button ..

Though I love my solution .. precursor cavalry, top of the line general, that charges in trowing pila to do melee with its sword;
Code:
type             roman generals guard cavalry
dictionary       roman_generals_guard_cavalry      ; Roman General (Recruit in Huge_City)
category         cavalry
class            skirmish
voice_type       General_1
soldier          roman_praetorian_cavalry, 12, 0, 1.0
officer          roman_centurion2
officer          roman_lesser_general
mount            generals horse
mount_effect     elephant -6, horse +6
attributes       sea_faring, hide_forest, general_unit, frighten_foot, very_hardy
formation        1.2, 3.0, 1.4, 3.0, 3, square
stat_health      2, 0
stat_pri         20, 24, pilum, 50, 3, thrown, blade, piercing, spear, 0, 1.0
stat_pri_attr    prec, thrown, ap
stat_sec         20, 24, no, 0, 0, melee, blade, piercing, sword, 0, 0.8
stat_sec_attr    no
stat_pri_armour  16, 30, 8, metal
stat_sec_armour  0, 1, flesh
stat_heat        0
stat_ground      0, 0, -4, 2
stat_mental      40, disciplined, highly_trained
stat_charge_dist 30
stat_fire_delay  0
stat_food        60, 300
stat_cost        2, 2000, 140, 80, 120, 2000
ownership        roman
To bad you cant use a "heavy_pilum_cavalry" tag in formations ... :)


G