UniqueTID

From Eternity Wiki
Revision as of 06:19, 10 May 2026 by Printz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Description[edit]

This is an ACS built-in function.

Returns a free TID to apply to new things.

Usage[edit]

int UniqueTID([int start[, int limit]])}

Parameters[edit]

  • start: optional start TID to count from
  • limit: optional limit of retries

Return value[edit]

New free TID to use, or 0 if it couldn't find one within limit.

Examples[edit]

No examples given.

Notes[edit]

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.

See also[edit]