I have the following text
"Allies 5 Enemies 4"
How do I programmatically identify how many Allies and Enemies there are with this text alone?
Hi, I understand a little bit, I think your solution would be to do the following, example: ("Allies" & variable that counts allies & "Enemies" & variable that counts enemies.) It will look like this.
Not exactly, imagine someone wrote in a TextBox
Now I want to programmatically know how many allies and enemies he has for this text (in short: the reverse process you did, transfer the text to values in the variable)
Develop games in your browser. Powerful, performant & highly capable.
Oh, I understand now, do the following, create two variables of the integer type (Enemies and Allies) put the TextInput plugin in the project. Use a button so the player can record this data. When clicking on the button, the entered values will be saved in the variables.
It wasn't exactly that, but it already gave me an idea of how to do it.
Exactly, your idea is unique, but I hope I've helped to nurture it with the foundation I've given you.