In the (totally fantastic) map that I am making, I want to react to (randomly selected) Leaders having a certain class. The
int UnitHasRequisite(unitAlias : string, requisite : UnitRequisite)
While we're at it, according to the Programming in Lua book, "Lua considers both zero and the empty string as true in conditional tests," so is the return value for this function really a
UnitHasRequisite
function seems like my only option, but the documentation says nothing about what I would need to supply as the second argument; only that its type is UnitRequisite. I tried various sensible strings (e.g. "ARCHDRUID", "ANIMIST") and even cracked open the mod editor and found an ID such as "#0000014D000006BA", but none of those worked. Please help.int UnitHasRequisite(unitAlias : string, requisite : UnitRequisite)
While we're at it, according to the Programming in Lua book, "Lua considers both zero and the empty string as true in conditional tests," so is the return value for this function really a
Boolean
, not an int
?