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.
Syntax
Section titled “Syntax”GetHorseStat(id, stat)| Parameter | Type | |
|---|---|---|
id |
number | the horse |
stat |
string | "strength", "agility", "vitality" or "courage" |
Returns
Section titled “Returns”number - 0 .. 30; 0 = never set (the breed’s own) or set to 0, or it is no horse
Example
Section titled “Example”if GetHorseStat(horse, "courage") == 0 then SetHorseStat(horse, "courage", 10) endSee also
Section titled “See also”SetHorseStat · GetHorseStats · the Horses group of the index
