I cannot for the life of me figure this out. This is what I'm trying to do. At a certain point the game sends me a list of eleven words in a line, like this:
Good Fair Good Good Poor Average Poor Fair Good Good Poor
I am trying to get a script to detect each of these words, convert them into numbers (Good = 5, Average = 3, etc.) and total the numbers (5 + 4 + 5 + 5 + 1 + 3 + 1 + 4 + 5 + 5 + 1 = 39) into a variable. But I cannot get a trigger to fire multiple times without losing the variable in which the total is stored! And I do not see a command for scripts that return strings taken from the output window, so how can I write a script that detects what the words are?? How do I do this? Thanks!
Good Fair Good Good Poor Average Poor Fair Good Good Poor
I am trying to get a script to detect each of these words, convert them into numbers (Good = 5, Average = 3, etc.) and total the numbers (5 + 4 + 5 + 5 + 1 + 3 + 1 + 4 + 5 + 5 + 1 = 39) into a variable. But I cannot get a trigger to fire multiple times without losing the variable in which the total is stored! And I do not see a command for scripts that return strings taken from the output window, so how can I write a script that detects what the words are?? How do I do this? Thanks!