Action id, rather.It can also be done useing globalstoragevalues linked to the potions uniqueid
Why wouldn't unique id's work? They can only be used once per item and don't they stay the same after logging out etc?
No, that only happens for standard uids (between 0 and 65535).Warning; Duplicate uniqueid entry.
You'll get spammed with that