Raeven
Well-Known Member
Sharing some responses from Rhys about how FreeSO Tokens work. These are a few years old so double-check if anything has changed since then.
------------------------------------------------------------------------------------------------
Me: What is "Transact Attribute"?
rip in peri peri — 10/19/2019
------------------------------------------------------------------------------------------------
Transaction = subtract; Modify = Add


------------------------------------------------------------------------------------------------
Me: What is "Transact Attribute"?
rip in peri peri — 10/19/2019
a transaction that is performed on a token's attribute
meaning the number you give it is subtracted from the value, UNLESS it would result in a value lower than 0
in which case it would abort and return false
so the way tokens work in fso is that there is one object of the token guid in the user's inventory, and its attributes (similar to real object attributes) are available via this primitive
this primitive does all the work of making sure the token exists, picking the object and getting the attribute for you
in inventory, you can display attribute 0 as a "count" over the icon
and get any attributes in the CTSS via $Attribute:0 or whatever number
------------------------------------------------------------------------------------------------
Transaction = subtract; Modify = Add

