Need help with Money Loan, Debt, and Taxing system

Alright, I've already made a banking system in my game where the Player can either withdraw or deposit money in the bank.
But that's kind of a little boring in my taste. I want to expand that greatly.
The green area of the Variables in the screenshot below is what I have made to create a banking system, so no need for changes in these, but the red area is what I don't know how to do.

Here's how I wish to make the Loans, Debt, and Taxing system function in the game.
I'll be explaining it as detailed as possible:

A. Loans​
The Player can take loans from the bank.​
Repayment of the loans will be automatically withdrawn by 10% of the money in the bank account once a day (in-game time, I have the "LNM_ GameTime" plugin and can settle this with a parallel event plugin command, Event name: "Loan Repayment at 2 PM" for example).​
• If the Player has money deposited in their Bank account, the bank will automatically withdraw 10% of the money from the Player's account to partly pay off the loans, as said, once a day.​
​
B. Debts from loans​
Whenever the Player doesn't have enough in their bank account to pay off the loans; the loan repayment should forcefully strip the account and take the last dime till it's 0 left in their account... the rest of the unpaid percentage should automatically be added to debts + interest, and this will continue each day until the Player does something about it; has choices to pay the debt or the loan, or both when having cash ready for the bank.​
​
C. Debts from bills​
Debts should also apply for, let's say unpaid "hospital bills", for example; if the Player's character dies, they will be transferred to the hospital.​
• If the Player is having both the cash and the money in the bank account, the bank account will be the first to be checked and withdrawn from.​
• If the player only has cash and either too little or nothing at all in the bank account, (the account will be stripped and) the rest of the cash will be paid automatically to the "hospital" (and the rest of the unpaid amount should be added to the debt if the amount is not enough either in cash or in the bank account).​
If the Player neither has any cash in hand nor money deposited in the bank, the unpaid bills will automatically be added to debt.​
​
When it comes to cash, it should not apply for the automatic repayment of loans.
Loans and debts paid in cash should always be done manually by the Player at the bank.
While money in the bank account is always the first to be checked to be withdrawn from automatically.

If the Player earns cash while having debts and/or loans to pay at the bank, the Player's cash money must be unaffected until the Player's free will to pay off the debts and/or loans at the bank in cash.

Also; whenever the Player has debts, loans should be denied to the Player whenever requested at the bank.
​
D. Taxes​
The Tax system is kind of different and has nothing to do with debts or loans.​
• If the Player rents or buys something exclusive in-game. There'll be taxes. For example, renting an apartment; that's 25 dollars a day. If also having an exclusive entry to a certain place, or being a member, that's 50 dollars a day adding up to the 25, and that's 75 dollars a day.​
• The Player can get rid of these, and the taxing will stop for whichever feature the Player chooses to cancel.​
• The Taxes should be paid automatically through the Player's bank account.​
• If there's no money, the feature(s) will be frozen and inaccessible for the Player.​
• If there's not enough to pay for all or most of the features, it'll be paid for feature(s) at random that the last money can afford and the rest of the features will become frozen and inaccessible for the Player.​
​
Anybody kind enough to help me out on how to do these?​
​
Hopefully, I explained it well.​
Thank you in advance.​
​


Bank variables.png
There is a lot there when you have it altogether, but if you break it down and just concentrate on one section at a time, it shouldn't be too hard to implement.

I'm assuming your bank is "common" between all areas? Or do you have multiple banks and need to use the correct one depending on the location?

I suggest you take each of the above, one at a time, and break it down further - what should happen when a certain event occurs (player goes to hospital, player visits the bank - if that's even a thing, or do they do it from the menu?); what should happen once a day? That will let you determine if the logic should go into a map event, a common event, or your "change of day" common event. Then draw a flowchart from start to finish for each aspect, listing all the decision points (conditions) and what should happen with each.

I'm sure that will help you get further. If you get stuck, post back with what you've done, how it's working (or not), and what you need more help with.

Flowcharts (or pseudocode) can make things incredibly simple, and you've already made a really good start to breaking down the logic.
Hi, Shaz. Thanks for replying.
There is a lot there when you have it altogether, but if you break it down and just concentrate on one section at a time, it shouldn't be too hard to implement.
I agree, I also thought it's too much altogether.
I'll be breaking it down into 3 sections;
1. Loans & Debt
2. Bills & Debt
3. Taxes

I'll start with no. 1 first. I don't wanna pile all of it up in a list of Flowcharts, or else I might get confused.

(Also, before I continue, I have to note that; the Debt System that I wanna create should be a singular Debt system, meaning it is not divided into 2 or more parts such as "Debt system for loans" and another "Debt system for bills".
The Debt System itself should be all-in-one, pilling up in a variable that can be paid off by the Player. I had to decide to insert Debt within both loans and bills in each flowchart because I feel like they work a bit differently, yet Loans and Bills (and some unpaid Taxes) are connected and sent to one single Debt system (Bailiff) if not paid by the Player.

I'm assuming your bank is "common" between all areas? Or do you have multiple banks and need to use the correct one depending on the location?
It should be common between all areas. Nothing in this should be local. The bank is accessible to the Player when interacting with the in-game public computer/AI that I've built in Common Events.
(That's E.M.M.A. if you remember from a few months back?)
321432.png


what should happen when a certain event occurs (player goes to hospital, player visits the bank - if that's even a thing, or do they do it from the menu?);
• SECTION 1:
Yes, it's a thing that the player can do and interact with. Not menu. Like when it comes to "going to the bank", the player can only do so through interacting with the E.M.M.A. Public Computer (as shown in the sample screenshot above).

• SECTION 2:
Spoiler
When it comes to "Hospital", it's truly a hospital map which is where the Player's character is transferred to when dies.
The Player cannot exit the hospital map unless interacts with the receptionist (can be done with switches) in order to settle the payment issue with a list of choices, for example;
​
A. "Pay with cash - 100 dollars"​
B. "Pay with Credit Card - 100 dollars" (from current bank account)​
IF Player has no money in neither A nor B, then the last third choice is;
C. "I can't pay right now" > the amount added to the Debt multiplying it by 2.​
So the original bill in A and B is "100 dollars", but when sent to the Debt variable, it's increased to 200.

The Player is then free to exit the Hospital.


Here's the Flowchart of Section 1 Loans & Debt:

Code:
◆Comment:............................................
:       :♦ WHEN LOANING MONEY:
:       :............................................
◆Text:AI and EMMA(2), Window, Middle
:    :CURRENT LOAN STATUS SHOWN IN TEXT MESSAGE(S);
:    :• CURRENT UNPAID LOANS: \V[##] (Amount of loans to pay back)
:    :• TOTAL LOANS LENDED IN A LIFETIME: \V[##] (Shows ALL loans adding up in one variable)
:    :• LEGITIMATE FOR LOANS: \V[##] (text saying: "Yes" or "No" depending on the debts)
◆Comment:^ Current information of money lending and
:       :debts shown in a text message with Variable codes.
:       :...
◆Text:AI and EMMA(2), Window, Middle
:    :
:    :HOW MUCH WOULD YOU LIKE TO LOAN?
:    :MINIMUM LENDING LIMIT IS 1,000 DOLLARS.
:    :MAXIMUM LENDING LIMIT IS 500,000 DOLLARS.
◆Comment:^ Here the Player can take out a Loan.
:       :♦ Player can only loan between 1,000 to 500,000 dollars.
:       :♦ 999 dollars or less is denied.
:       :♦ 500,001 dollars or more is denied.
:       :...
◆Input Number: Loans, 6 digits
◆If:Loan = 5000
  ◆Control Variables:#0062 Current Bank Account += 5000
  ◆Control Variables:#0065 Interest /= 10
  ◆Comment:^ Player loans 5,000 which is added to their Bank account.
  :       :♦ Current Bank account: 5,000
  :       :♦ When loaning money, then PLUS 1/10 (10%) INTEREST is added
  :       :to the total repayment amount - making it 5,500 must be repaid.
  :       :...
  ◆Plugin Command:Time LIMIT 14:00 14:01 A
  ◆Comment:^ A Parallel Event with a Plugin Command is activated after loaning money.
  :       :♦ Page Switches to A to automatically re-pay 1/20 of 5,500
  :       :from the Bank Account (ONCE per day at 14:00 (in-game time).
  ◆Control Variables:#0061 Loan /= 20
  ◆Control Variables:#0062 Current Bank Account = 4725
  ◆Comment:^ When Self-Switch A
  :       :♦ 1/20 (275 dollars) is REMOVED from Bank Account once every 14:00
  :       :♦ Current Bank Account: 4,725
  :       :♦ Current total loan left to repay: 5,225
  :       :...
  ◆
:End
◆Comment:............................................
:       :♦ IF LOANED MONEY IS UNPAID PER DAY:
:       :............................................
◆If:Current Bank Account = 0
  ◆Comment:^ If no money in bank account
  :       :...
  ◆Control Variables:#0061 Loan /= 20
  ◆Comment:^ 275 dollars
  :       :...
  ◆Control Variables:#0065 Interest *= 2
  ◆Comment:^ 275 x 2 = 550
  :       :...
  ◆Control Variables:#0064 Debt += 550
  ◆Comment:^ 1/20 of the unpaid loan is multiplied by 2 when added to Debt.
  :       :♦ If 275 is not available in the account, then it's added to debt.
  :       :♦ Current Debt: 550
  :       :♦ Current total loan to repay is now: 4,950
  ◆If:Debt ≥ 1000
    ◆Comment:^ If Player has reached 1,000 dollars in debts,
    :       :then lending money (again) is denied,
    :       :until the debt MUST be fully paid off till it's 0 as a penalty.
    ◆
  :End
  ◆
:End
◆If:Gold < 1000
  ◆Control Variables:#0064 Debt -= 550
  ◆Comment:^ If Player has 1,000 dollars in cash and decides to deposit it
  :       :to pay off the debt (Not in the bank account but to the Debt Agency).
  :       :♦ Player cannot deposit/pay off more than the maximum amount of current Debt,
  :       :for example: If the total Debt is 550 dollars,
  :       :then only between 1 to 550 dollars can be deposited.
  ◆
:End
◆Comment:♦ Player can freely ignore the debt and deposit the money
:       :in the bank account, unaffected by the Debt System.

Hope this is good 🙂

__________________________________

EDIT:
Here's a screenshot (below) of the Economy System map that I made.

A - Loan (marked in red)

B - Bills (for later)

C - Taxes (for later)

D - Debt

As you can see the following A, B, and C are connected in line to "D - Debt",
if the player doesn't pay or payback to whatever feature ABC has.

Starting with A - Loan, piece by piece if that's alright?

Economy System map:
ECONOMY SYSTEM TEST.png



On Event A - Loan (screenshot below)

1. the Player chooses to take out a loan of 1,000 dollars and it is directly sent to the Player's Bank Account instead of cash (cash is where the Player sees the money in the menu) - That I managed to do,
but further than that...

2. I don't know how to proceed with the Variable "Loans Repay + interest". But what I want is...
Interest is "1 div by 10" (10%) making 100 dollars added to the 1,000 dollars re-pay cap... which is why the Player owes 1,100 dollars in total but is re-paid at a specific div on a daily basis in-game time.

(Plugin CommandTime LIMIT 14:00 14:01 A)

3. When Player owes 1,100 dollars, I want it to automatically withdraw from the player's Bank account at a specific div of 20
1,100 / 20 = 55 dollars automatic withdrawal from Player's Bank Account.

I'll pause here before I continue to no 4. so that it'll not be too much.

Event A - Loan
1.png


Variable 42: Cash - The money (gold) seen in the menu.

Variable 43: Bank Account - The account itself that shows the amount of stored money when interacting with the ATM.

Variable 44: Bank Action - "Deposit Cash to Account and/or Withdraw from account to Cash" function.
I agree with Shaz - simplify. Use pseudo-code. I also suggest you don't try to implement multiple features at once. Make your bank account with the automatic debiting for loan payments, then bills and taxes just get added to that event. Here's what you need:
- a variable for their bank account
- a variable for their loan amount
- a variable for debt accrued
- a switch indicating they've manually paid on a given day

Presuming you already have the system to deposit and withdraw funds from the bank, this is just two events. One is at the bank:
Do you want to make your loan payment?
-deduct amount from cash
-turn on the manual payment switch

Then you have your common event that gets called every day at 2 or whatever:
Is it the right time of day?
-did they already pay? (is the manual payment switch on?)
--yes, turn the switch back off and exit the event
Take the funds for the payment
-Is the bank account >= loan payment?
--yes, subtract the loan payment from the bank account
--no, subtract the bank account from the loan payment, set account to 0, add loan payment to debt

That's it. Do things like that for yourself to establish the logical sequence of what needs to be done - then you go through it a line at a time, turning the English instructions into event commands.
Thanks, @ATT_Turan. I'll try my best.
I will point out, glancing at your original post, what seems to be a little error in your logic.

You say the loan payment is 10% of the bank account's current value - this is logically weird, as no real-world loans work this way (you probably would want one more variable that stores the loan payment amount).

Aside from being incongruent with how stuff works, it also means the bank payment will never fail unless there's less than 10 dollars in the bank account. If that is what you actually want, then cool.
You say the loan payment is 10% of the bank account's current value - this is logically weird, as no real-world loans work this way (you probably would want one more variable that stores the loan payment amount).
I understand, I just thought the 10% interest of a chosen loan could put more weight on the Player's choices and I don't want to make the loans an easy alternative for the Player. There are no "better" alternatives in the game.
If the Player is unlucky with the amount of money he finds or earns such as a salary and/or as a reward from a quest (random items and/or "gold" at a specified random amount at some or most cases), or wastes a little too much time exploring, or doing other activities, or failing a bunch of quests that cannot be re-done, then a loan is quick money but comes with a price and consequences if not handled right.
Also, the game is set in a near-future dystopic era (that's why my game title is called Dystopia), where its living conditions are hard and bad.

Aside from being incongruent with how stuff works, it also means the bank payment will never fail unless there's less than 10 dollars in the bank account. If that is what you actually want, then cool.
This is a different thing than the "10% interest", but yes.
Hello, again @ATT_Turan
After hours and hours of practice with the Variables, I've managed to create the loan system itself, but not done yet. I'm starting to get a hang of it a little bit with the Variables, so I may have some further questions later on.
I just have one quick question since I'm stuck on a method I'm trying to change;
I'm doing an alternative function of the deposit & withdrawal in the Bank Account event by using the "Show Choices..." command to withdraw/deposit funds instead of the "Input Number". It had me going around in circles by replacing and changing the variables without the "Input Number" command this time. How do I fix this?

(Notice, I can actually delete "100 dollars" in the Account variable and make a "change gold +100" command, but I wanted to be a little more economically realistic with this one; I want to make it so that the "100" is transferred from the Account variable to the "Change Gold +variable". Which I'm stuck with.)

Here are the flowcharts:

Alternate "Show Choices..." Bank Account Event:
Code:
◆Show Choices:DEPOSIT, WITHDRAW, \C[10]EXIT \C[23]ECONOMY \C[27]ACCOUNT, \C[10]SIGN OUT & SHUTDOWN (Window, Middle, #1, #4)
:When DEPOSIT
  ◆
:When WITHDRAW
  ◆If:Bank Account < 100
    ◆Text:None, Dim, Bottom
    :    :\^\n<\C[23]EM:\C[27]BANK\C[0] | \C[11]ECONOMICAL ACCOUNT\C[0]   \C[29]\rl\V[43]\C[11]$\C[0] | \C[9]\N[1]\N[2]\C[0] | \C[27]ID:\C[2]\N[3]\C[0]>
    :    :\$
    :    : NOT ENOUGH MONEY IN YOUR ACCOUNT TO WITHDRAW:
    :    : \C[14]\V[43] DOLLAR(S)\C
    ◆Exit Event Processing
    ◆
  :Else
    ◆Text:None, Window, Bottom
    :    :\^\n<\C[23]EM:\C[27]BANK\C[0] | \C[11]ECONOMICAL ACCOUNT\C[0]   \C[29]\rl\V[43]\C[11]$\C[0] | \C[9]\N[1]\N[2]\C[0] | \C[27]ID:\C[2]\N[3]\C[0]>
    :    :\$
    :    :YOU CAN ONLY WITHDRAW AT LEAST 100.00 DOLLARS.
    ◆Show Choices:100, 200, 500, 1,000, 2,000, 5,000 (Window, Middle, #1, -)
    :When 100
      ◆Control Variables:#0043 Bank Account -= Bank Action
      ◆Control Variables:#0043 Bank Account -= 100
      ◆Change Gold:+ {Bank Action}
      ◆Text:None, Window, Bottom
      :    :\$
      :    :\cl\{\{100 DOLLARS WITHDRAWN.
      ◆Exit Event Processing
      ◆
    :When 200
      ◆
    :When 500
      ◆
    :When 1,000
      ◆
    :When 2,000
      ◆
    :When 5,000
      ◆
    :End
    ◆
  :End
  ◆
:When \C[10]EXIT \C[23]ECONOMY \C[27]ACCOUNT
  ◆Common Event:E.M.M.A. (EM:BANK)
  ◆Exit Event Processing
  ◆
:When \C[10]SIGN OUT & SHUTDOWN
  ◆Fadeout BGM:8 seconds
  ◆Play BGS:EMMA - Operational (60, 70, 0)
  ◆Stop SE
  ◆Plugin Command:MessageRows 14
  ◆Text:AI and EMMA(3), Window, Middle
  :    :\^\n<\C[23]E.M.M.A. \C[0]| \C[27]ID:\C[2]\N[3]\C[0]>
  :    :\{
  :    :\lson
  :    :\.//LOGGING OUT CITIZEN; \C[27]ID:\C[2]\N[3]\C[0] .
  ◆Text:AI and EMMA(4), Window, Middle
  :    :STAND BY \.. \.. . . . . \|. . \|. . . . . . . . . . . . .
  ◆Plugin Command:MessageRows 8
  ◆Text:AI and EMMA(0), Window, Middle
  :    :\^\n<\C[23]E.M.M.A. \C[0]| \C[27]PUBLIC SERVICE ASSISTANT\C[2]\C[0]>
  :    :\{
  :    :\.\C[27]BE SAFE OUT THERE, \C[1]\N[2]\N[3]\N[4]\N[5]\C[0].\. \. \| \| \lsoff
  ◆Fadeout BGS:1 second
  ◆Play SE:EMMA - Shutdown (80, 110, 0)
  ◆Play BGS:City (20, 60, 0)
  ◆Wait:10 frames
  ◆Set Movement Route:Player (Wait)
  :                  :◇Turn Left
  :                  :◇Turn Down
  ◆Control Switches:#0016 E.M.M.A. BGM INTERACTION = OFF
  ◆Exit Event Processing
  ◆
:End

Original "Input Number" Bank Account event (works fine):
Code:
◆Control Variables:#0042 Cash = Gold
◆Control Variables:#0044 Bank Action = 0
◆Text:AI and EMMA(2), Window, Middle
:    :\^\n<\C[23]EM:\C[27]BANK\C[0] | \C[11]ECONOMY ACCOUNT\C[0] of \C[1]\N[2]\N[3]\N[4]\N[5]\C[0] | \C[27]ID:\C[2]\N[1]\C[0]>
:    :\{\lson\$
◆Text:AI and EMMA(2), Window, Middle
:    :CURRENT \C[23]ECONOMY \C[27]ACCOUNT\C[0] STATUS;
:    :• \C[14]\V[43] \C[16]DOLLARS \c
◆Show Choices:DEPOSIT, WITHDRAW, \C[10]EXIT (Window, Middle, #1, #3)
:When DEPOSIT
  ◆Input Number:Bank Action, 8 digits
  ◆If:Bank Action > Cash
    ◆Text:AI and EMMA(3), Window, Middle
    :    :\n<\C[23]EM:\C[27]BANK\C[0] | \C[11]ECONOMICAL ACCOUNT\C[0] | \C[29]\rl\V[43]\C[11]$\C[0] | \C[9]\N[1]\N[2]\C[0] | \C[27]ID:\C[2]\N[3]\C[0]>
    :    :\{\lson
    :    :\$ NOT ENOUGH CASH TO DEPOSIT\<
    ◆Exit Event Processing
    ◆
  :Else
    ◆If:Bank Action < 100
      ◆Text:AI and EMMA(2), Window, Bottom
      :    :\n<\C[23]EM:\C[27]BANK\C[0] | \C[11]ECONOMICAL ACCOUNT\C[0]   \C[29]\rl\V[43]\C[11]$\C[0] | \C[9]\N[1]\N[2]\C[0] | \C[27]ID:\C[2]\N[3]\C[0]>
      :    :\$\{\lson
      :    :PLEASE, DEPOSIT AT LEAST 100 DOLLARS.
      ◆Exit Event Processing
      ◆
    :End
    ◆Change Gold:- {Bank Action}
    ◆Control Variables:#0043 Bank Account += Bank Action
    ◆Text:None, Dim, Bottom
    :    :\n<\C[23]EM:\C[27]BANK \C[0]\C[11]ACCOUNT\C[0]: \C[9]\N[1]\N[2]\C[0], \C[29]\rl\V[43]\C[11]$\C[0] | \C[27]ID:\C[2]\N[3]\C[0]>
    :    :\$
    :    : THANK YOU. DEPOSIT COMPLETE:
    :    : \C[14]\V[44] DOLLARS\C
    ◆Text:None, Dim, Bottom
    :    : YOU CURRENTLY HAVE
    ◆Text:None, Dim, Bottom
    :    : \C[14]\V[43] DOLLARS\C STORED.
    ◆Exit Event Processing
    ◆
  :End
  ◆
:When WITHDRAW
  ◆Input Number:Bank Action, 8 digits
  ◆If:Bank Account < Bank Action
    ◆Text:None, Dim, Bottom
    :    :\n<\C[23]EM:\C[27]BANK\C[0] | \C[11]ECONOMICAL ACCOUNT\C[0]   \C[29]\rl\V[43]\C[11]$\C[0] | \C[9]\N[1]\N[2]\C[0] | \C[27]ID:\C[2]\N[3]\C[0]>
    :    :\$\{
    :    :NOT ENOUGH MONEY IN YOUR ACCOUNT TO WITHDRAW:
    :    :\C[14]\V[43] DOLLAR(S)\C
    ◆Exit Event Processing
    ◆
  :Else
    ◆If:Bank Action < 100
      ◆Text:None, Window, Bottom
      :    :\n<\C[23]EM:\C[27]BANK\C[0] | \C[11]ECONOMICAL ACCOUNT\C[0]   \C[29]\rl\V[43]\C[11]$\C[0] | \C[9]\N[1]\N[2]\C[0] | \C[27]ID:\C[2]\N[3]\C[0]>
      :    :\$\{
      :    :YOU CAN ONLY WITHDRAW AT LEAST 100 DOLLARS.
      ◆Exit Event Processing
      ◆
    :End
    ◆Change Gold:+ {Bank Action}
    ◆Control Variables:#0043 Bank Account -= Bank Action
    ◆Text:None, Dim, Bottom
    :    :\n<\C[23]EM:\C[27]BANK\C[0] | \C[11]ECONOMICAL ACCOUNT\C[0]   \C[29]\rl\V[43]\C[11]$\C[0] | \C[9]\N[1]\N[2]\C[0] | \C[27]ID:\C[2]\N[3]\C[0]>
    :    :\$\{
    :    :YOU HAVE WITHDRAWN: \C[14]\V[44] DOLLARS\C
    :    :CURRENT ACCOUNT: \C[14]\V[43] DOLLAR(S)\C STORED.
    ◆Exit Event Processing
    ◆
  :End
  ◆
:When \C[10]EXIT
  ◆Exit Event Processing
  ◆
:End
I'm doing an alternative function of the deposit & withdrawal in the Bank Account event by using the "Show Choices..." command to withdraw/deposit funds instead of the "Input Number".
Why do you want to do this? Is there any point to it - it seems to me it's just annoying to the player. That's the benefit to playing games on a system with a keyboard, as opposed to just a console with a controller, you don't need annoying repeated choices instead of just directly entering something.

Aside from that...I don't really understand what the problem is. You say it "had you going around in circles" - does that mean something is actually looping? If not, what is going wrong? I'm disinclined to read through a large event when I don't know what I'm looking for.

At very quick glance, you don't have any commands inside of your DEPOSIT choice, so...obviously it doesn't do anything if you don't have any event commands? If the problem is in the withdraw portion that does have commands, please describe what your problem is so we know what to look for.
Why do you want to do this? Is there any point to it - it seems to me it's just annoying to the player. That's the benefit to playing games on a system with a keyboard, as opposed to just a console with a controller, you don't need annoying repeated choices instead of just directly entering something.
Yeah, I was just trying out a different method to see what kind of "experience" either of the two methods would give - Withdrawal/deposit by choice command or Input Number.
But since you say that the choice option of withdrawal/deposit event would 'annoy the player', then I'll stick with the original event with the Input Number. No problem. At least I have your honest opinion, which is much appreciated.

Aside from that...I don't really understand what the problemis. You say it "had you going around in circles" - does that mean something is actually looping? If not, what is going wrong? I'm disinclined to read through a large event when I don't know what I'm looking for.
No, I meant myself going around in circles when I was resolving the logic with the Variable commands in order to get the withdrawal to work by choice options. But never mind, I'll move on with the original method. Thanks for your response anyway. I'll come back when I have further questions on the Bill, Tax, and Debt system - still need to work on those, though.
Yeah, I was just trying out a different method to see what kind of "experience" either of the two methods would give - Withdrawal/deposit by choice command or Input Number.
That's a valid answer. You don't need to not do something as an exercise, but I would suggest you focus on completing your immediate goal first 😉 Then it makes sense to see if you can accomplish it in a different way as an exercise. Otherwise, you risk losing your focus and thinking in circles and never getting anything done.
But since you say that the choice option of withdrawal/deposit event would 'annoy the player', then I'll stick with the original event with the Input Number.
I mean, use your own judgement, too...have you played RPGs on consoles? And to choose their name you have to scroll around the keyboard on the screen with your D-pad and hit a letter at a time...or to choose numbers you have to scroll through each digit or select from groups like you're doing up there...would you ever want to do that when you have a keyboard attached to your computer? 😛

Don't do things just because I say, but I do think I'm right...
Hello, again. How are you doing?

So far, I've managed to create the auto-repay of the loans in the previous pages in a fixed manner; "IF bank account is that, do this... IF loan amount is this, do that", and so on.

But this one, page 4, is also one of the auto-repayments but a slightly different IF. Page 4 is supposed to "understand" how much there is left to pay off when the loan amount is between 1 to 55 dollars left to repay IF there's at least 1 dollar or more in the "Bank Account".

Now, what I'm trying to do here, but can't figure out how to make it grab the last money owed, whether it's 1 dime or 13 or 14 or 54 tops;

For example, if the Player has (whether automatically or manually) paid off 1,070 out of 1,100 dollars in loans, making the "Loan Amount" variable have only 30 dollars in it left to repay, then how do I set the variables in a logical way where it "understands" the random number in the "Loan Amount", the 30 dollars, to take 30 dollars from the "Bank Account", and add the 30 dollars to "Loan Repay" account?

(Doesn't have to be exactly 30 dollars. This 4th event page should only operate if the last money owed is at any number between 1 to 54 to be automatically repaid from the "Bank Account" minus the "Loan Amount" plus "Loan Repay".)

I've tried to do this but wasn't successful in it.

1.png


----------------------------------------------------------------------------------------------------

Nothing to change in this second screenshot, (I think,)
just placed it here to show what it looks like in the previous page(s):

2.png

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-money-loan-debt-and-taxing-system.142081/