-
Notifications
You must be signed in to change notification settings - Fork 52
Manual:DIL Manual isaff()
iamnove edited this page Jan 18, 2023
·
52 revisions
u : A unit to be examined. i : An id of an affect, see ID_* in values.h and/or vme.h result: TRUE, if unit 'u' is affected by affect id 'i'
Examples:
if (isaff(self, ID_BLIND_CHAR)) sendtext("You're blinded", self);
This command scans the unit 'u' for any affect matching the id 'i' and returns TRUE if one is found.
See also:
> subaff() > addaff() > getaffects()