Code:
type cheat oliphants
dictionary cheat_oliphants ; Yubtseb Elephants
category cavalry
class heavy
voice_type Heavy_1
soldier greek_elephant_crew_merc, 26, 2, 1
mount elephant oliphant
mount_effect horse +4, chariot +8, camel +4
attributes sea_faring, can_run_amok, frighten_foot, frighten_mounted, mercenary_unit, no_custom
formation 20, 25, 30, 35, 1, square
stat_health 1, 30
stat_pri 6, 3, arrow, 120, 60, missile, archery, piercing, none, 25 ,1
stat_pri_attr no
stat_sec 6, 8, no, 0, 0, melee, other, blunt, none, 25 ,1
stat_sec_attr area, launching, ap
stat_pri_armour 0, 4, 0, flesh
stat_sec_armour 13, 3, flesh
stat_heat -1
stat_ground 0, 1, -6, -1
stat_mental 8, normal, highly_trained
stat_charge_dist 30
stat_fire_delay 0
stat_food 60, 300
stat_cost 1, 1890, 530, 190, 290, 1890
ownership slave
Step 3: In order to make the giant elephants available in Custom battles, just edit the "ownership" line to add your faction (for example, change it to "slave, carthage, parthia, macedon, seleucid, roman" to make it available to all civilized factions which can build a circus maximus) and then edit the "attributes" line to remove the "no_custom" attribute.
Code:
recruit "cheat oliphants" 0 requires factions { carthage, parthia, macedon, seleucid, roman, }
Just keep in mind that if you make them available in campaign mode, you will eventually face enemies who are using these things.