Godot Version
Godot 4.3
Question
Hello! I’m new to godot. I tried to randomize different events that can happen, according to an official tutorial, but it didn’t work for me. I want each time you activate this dialogue, you get a random call from a minister (or any other character), then make a decision, and that’s it, but now it just plays all the calls at the same time. Also, I want them to be repeating. Here’s what I tried to do:
~ start
[speed=0.5]
% Minister: [#phone_ringing] *Your phone rings...*
[wait=1]
% Minister: Mr. President, we need to discuss the economy.
% Minister: Mr. President, what do we need to do with the government spending?
- Increase spending to boost GDP
Minister: That will help, but it will increase public debt.
do stats["gdp"] += 5
do stats["public_debt"] -= 5
do update_labels()
- Keep the budget balanced
Minister: That's the safer choice, but growth may slow down.
do stats["gdp"] -= 5
do stats["public_debt"] += 5
do update_labels()
%3 Minister: [#phone_ringing] *Your phone rings...*
[wait=1]
Minister: Mr. President, we need to know your decision.
- Increase interest rate
Minister: Got it. We will increase interest rate.
do stats["gdp"] += 10
do stats["public_debt"] += 2
do update_labels()
- Keep the budget balanced
Minister: That will help, but it will slow GDP growth down.
do stats["gdp"] -= 5
do stats["public_debt"] -= 2
do update_labels()
%2 Economic Advisor: [#phone_ringing] *Your phone rings...*
[wait=1]
% Economic Advisor: Dear Mr President, we need your help.
% Economic Advisor: Mr President, We would appreciate your official perspective on the matter.
- What happened?
Economic Advisor: People, who came from rural areas, cannot find a job.
-Hire people for public works.
Economic Advisor: Roger that! We will work on it.
do stats["unemployment"] -= 1.5
do update_labels()
-Increase money supply.
Economic Advisor: No problem.
do stats["unemployment"] -= 0.5
do update_labels()
- All ears.
Economic Advisor: People, who just moved to cities, cannot afford living in the city.
Economic Advisor: Mr President, what decision do you find the most suitable in this case?
-Hire people for public works.
Economic Advisor: Roger that! We will work on it.
do stats["unemployment"] -= 1.5
do update_labels()
-Increase money supply.
Economic Advisor: No problem.
do stats["unemployment"] -= 0.5
do update_labels()
=> END