Skip to content

SetHorseTypeRule

Makes a horse type or changes one - what one horse of it pulls and its pace under a rider.

pull is what one horse of the type pulls at a cart’s full pace, in kilograms (0 - 10000; a horse’s strength adds or takes up to 30 %); ride its pace under a rider against a riding horse’s, 0.95 - 1.15 (the game’s own speed effects on the horse make it, so it comes out as 0.95, 1, 1.10 or 1.15, the nearest; a pace above 1 also takes a fifth off its saddlebags). The game has no slower effect that leaves a ridden horse able to run, so a slower type is not possible yet. Up to 64 types; a name is 1 - 32 letters, digits, _ and -. The horses of the type change at once, ridden or hitched.

SetHorseTypeRule(type, pull [, ride])
Parameter Type
type string the type’s name
pull number kilograms
ride number the pace under a rider; nil = 1 (optional)

boolean - false for a bad name or number, or 64 types already

-- a mule pulls well and plods under a rider; a courser races and pulls little
SetHorseTypeRule("mule", 600, 0.75)
SetHorseTypeRule("courser", 250, 1.15)

SetHorseType · GetHorseTypeRule · GetCartPull · the Horses group of the index