Can someone please show me how to decrease all the money of the player, I know there's a command change gold but the money which he has can be different depending the ones who plays so I don't think I can use that : |
Not only that, in another event I want to recover it all the money which the player had lost it before....
Sorry if it's a bit confusing : (
Yes, the Change Gold command can use a set amount, or look at a variable.
Just use Control Variables to put the party's current amount of gold into a variable, then in your Change Gold command, reduce the gold by that variable.
As long as you don't use that variable again (and prevent the same event from running, which would then set the variable to 0 as they currently have no gold), you can use it in your other event to give them back the same amount of gold.
Ah, now I did it ~
Although at first it didn't worked well but I figured out the problem and now it goes smoohly 😀
So thank you very much~ ^^
I did it in my game exactly as Shaz said, though I did a decrease gold by 999999 (as it was unlikely you would have more than that much), and stored the gold in a variable before the decrease. Then, later, when you found your gold again, I increased the gold by the amount of the variable.