So in my game cash is the main currency, and I want to solve two problems, the first easier than the second, SCRATCH THAT THERE ARE WAY MORE PROBLEMS, KINDA LIKE A RABBIT HOLE.
How would I implement a system of interest with the money deposited, but NO interest with the money not deposited in the bank, and how to have an ATM-ish machine then withdraw the exact amount of money that you would want?
These are some other questions
Can a property be shown as a decimal?
How would I connect this to an overlay?
How would I show an image of it on the overlay?
Can you withdraw a decimal so then you have cents or would I need to create a currency without cash?
Would a PSUEDO currency work best?
I really donāt care how much memory this takes because it will be the main currency of the game as long as itās under 11% because thatās what I can barely afford.
Images would be much appreciated but I can understand text pretty well
This is the idea that I have of it right now
A lot of properties
Triggers that increase and decrease
A trigger with a 5 second delay that will multiply the property (Original money) by 100% + 10% (Example interest) and will add on⦠WAIT that brings me to the question of, if that happens will there be a PSUEDO currency, got to add that to the list of questions.
You may have to have 2 properties; a cents and a cash one. Then, make it so that a repeater on game start repeats on ācheckā every 0.5 seconds and it end on a channel (no channel) and then a trigger check if cents property: 100, set it to 0 and set cash +1
You could use properties to show decimals:
515.5 is stored as 5155, and when you need to retrieve it: 5155/10 = 515.5.
In order for that to always work youād need to add a 0 for when thereās no decimals. Example: 515.0 is stored as 5150, and to retrieve: 5150/10 = 515.0.
To connect your cash to the overlay use block code:
get property ācashā / 10
Divide by 10 if you are using decimals.
You canāt add an image to an overlay, but maybe an emoji with concat would work.
You can withdraw decimals if you store them like I previously mentioned and refer to them by dividing by 10.
PSUEDO currency is probably your safest investment best choice as using a property will be necessary for storing cents.
Yes, you would update the PSUEDO currency(stored in a property) with this basic formula:
n = ni
n is your cash and i is your interest rate(100% = 1 + 10% = 1.1).
Note: if your interest rate is < 1 it will decrease the cash.
Make sure the formula above is in the block code of your trigger.
Decimal properties are done by multiplying and dividing or just using them.
Pseudo currencies work best.
Using property update setting will work with block code that sets overlay to the property.
2 properties for in bank and not in bank.
Depositing is by setting not in bank money to in bank money.
In bank money interest is done by trigger loop at āintervalā that has a calc of
Set In bank cash to In bank cash + in bank cash x .(what ever the percentage is)
One more problem, So letās say Iām depos1ting some money ok? And I have $100, I want to depos1t $50, how would I make it so that I can depos1t the specific amount of money I want?
Hereās what Iām thinking,
Property (Original money)
Property (Bank money, which is multiplied by 1.1 every 5 seconds)
+
What I cooked up right now
Another property that a player sets to a specific number
Letās call it Property āDepos1tingā
When receiving on "Depos1ting"
If get property "Original money" > get property "Depos1ting"
Get property "Original money"
Set property value Get property "Original money" - get property "Depos1ting"
Get property "Bank money"
Set property value Get property "Bank money" + Get property "Depos1ting"
Can someone remove āD e p o s i tā from the banned list?