-
Notifications
You must be signed in to change notification settings - Fork 1
Currency
Mistium edited this page Sep 11, 2024
·
3 revisions
The Currency system in rotur is simple and intuitive.
Every day that a user logs in, they gain 1 credit that they can send to any other user or buy items with.
This block lets you view how many credits that your user account has, and will update when others send you credits or when you send them credits, or make purchases.
This block is simple and allows you to transfer a number of credits from your account to another
"Success"
Attempted to send a string:
"Transaction Must Be A Number"
Attempted to send a small value
"Transaction Cannot Be Less Than 0.01"
Tried to transfer currency to yourself:
"You Cannot Send To Yourself"
Attempted to send to an account that doesn't exist:
"No Account With That Name"
Attempted to send more credits than you have:
"Not Enough Credits For This Transaction"
This hat block will fire whenever the user's balance has changed
This reporter will return an array of text that can be displayed to the user for each past transaction on the account
Example data:
[
"sent 5 to Hello",
"sent 1234 to Mist",
"got 1234 from mist",
]