- Mar 29, 2022
- 26
- 3
I have declared the variable as default "stardust = 0" in the script.rpy.
My problem is with the screens; I don't quite understand their functioning. I am checking if the stardust is >= 1 to be able to make a purchase, but even though it checks correctly and tells me that I don't have enough stardust, it still lets me continue buying. I am attaching the code.
Basically, when I press the "test.png" button in-game, it takes me to a screen that displays the amount of stardust and buttons to go back or make a purchase. The problem is that the stardust amount doesn't update after the purchase unless I leave that screen. It also keeps allowing me to buy when I have zero stardust, and both messages pop up, one saying I obtained an item and the other saying I don't have enough money.
The system is a gachapon, and I am trying to do it this way, but I am encountering this problem. Thank you for the help.
![1690307649325.png 1690307649325.png](https://attachments.f95zone.to/2023/07/thumb/2823337_1690307649325.png)
My problem is with the screens; I don't quite understand their functioning. I am checking if the stardust is >= 1 to be able to make a purchase, but even though it checks correctly and tells me that I don't have enough stardust, it still lets me continue buying. I am attaching the code.
![1690308174774.png 1690308174774.png](https://attachments.f95zone.to/2023/07/thumb/2823356_1690308174774.png)
Basically, when I press the "test.png" button in-game, it takes me to a screen that displays the amount of stardust and buttons to go back or make a purchase. The problem is that the stardust amount doesn't update after the purchase unless I leave that screen. It also keeps allowing me to buy when I have zero stardust, and both messages pop up, one saying I obtained an item and the other saying I don't have enough money.
The system is a gachapon, and I am trying to do it this way, but I am encountering this problem. Thank you for the help.