This is somewhat complicated, so I'll try my best without having to explain everything.
A player has two variables, var1 and var2. There is a command that transfers from var1 to var2. The player picks the amount to transfer, and it is done over time. If they transfer 100% of var, it takes 10 rounds. 50% is 5 rounds, etc.
Since it takes time, obviously we need to store some temp variables. I'm looking to do this by using the least amount of variables.
Currently, I'm using two temp variables (var3 which stores the amount left to transfer, and var4 which stores how long it'll take. But these don't work correctly. The transfer will sometimes end but it hasn't transferred the correct amount (it cut short).
Would there be a better var to store instead of var3 and var4 so that this problem would be fixed?
A player has two variables, var1 and var2. There is a command that transfers from var1 to var2. The player picks the amount to transfer, and it is done over time. If they transfer 100% of var, it takes 10 rounds. 50% is 5 rounds, etc.
Since it takes time, obviously we need to store some temp variables. I'm looking to do this by using the least amount of variables.
Currently, I'm using two temp variables (var3 which stores the amount left to transfer, and var4 which stores how long it'll take. But these don't work correctly. The transfer will sometimes end but it hasn't transferred the correct amount (it cut short).
Would there be a better var to store instead of var3 and var4 so that this problem would be fixed?