Hey there! I’m trying to create a map that shows a percentage of how much has been explored. Most of the code is done without any issue, the final problem I’m having is actually converting it to a percentage.
This is what I got going on. The amount of things in the forest area for example, might be 18. 12 of those are maps, 3 are treasures, ect ect. Each time you enter a location the first time, or open the chest the first time, the counter goes up. It’s a global variable, and this part is working just fine.
The problem I’m struggling with, is how to convert the text that the player sees, to a percentage out of 18, based on the number of the global variable.
The ‘change text of ForestMapPercentage’ is where I’m struggling. I can easily change it to the Global Variable, but when I try to figure out how to alter it from there, I’m stumped.
I want it to do something like this:
Change the text of ForestMapPercentage: set to GlobalVariableString(Save.FullMaps.ForestMapSecretTotal), then show the percentage of that global variable out of the number 18.
I’m completely stumped on this one. Can anyone help me out? Thank you so much!
YES thank you this works! I guess my one final issue, is how to round it up to a solid number. Right now I’m getting a ton of decimal numbers. I appreciate this so much you guys!