Skip to content

GetHorseStat

The level a mode set on a horse’s stat.

0 means either that the stat was never set (the horse has its breed’s own) or that a mode set it to exactly 0 with SetHorseStat; the call cannot tell the two apart. GetHorseStats lists only the stats a mode set, a 0 among them.

GetHorseStat(id, stat)
Parameter Type
id number the horse
stat string "strength", "agility", "vitality" or "courage"

number - 0 .. 30; 0 = never set (the breed’s own) or set to 0, or it is no horse

if GetHorseStat(horse, "courage") == 0 then SetHorseStat(horse, "courage", 10) end

SetHorseStat · GetHorseStats · the Horses group of the index