UniqueTID
From Eternity Wiki
Jump to navigationJump to search
Description
This is an ACS built-in function.
Returns a free TID to apply to new things.
Usage
int UniqueTID([int start[, int limit]])}
Parameters
- start: optional start TID to count from
- limit: optional limit of retries
Return value
New free TID to use, or 0 if it couldn't find one within limit.
Examples
No examples given.
Notes
If start is not provided, it will start by trying a random TID.
If attempted TID is currently in use, it will increment by up to limit tries, or keep looking if no limit. There's a limit of 32767 TIDs.
This function's identification in zspecial.acs is: -46.