I am trying to create a simple system which keeps track of each player's games played. The way I have this set up is it checks if a bank exists. If it doesn't it sets games played to "1" and then saves it in the player's bank. If it does it loads the number, adds 1 to it and does likewise.
For whatever reason it is not checking if the bank exists and is always going to "Else" portion of my If statement which occurs if no bank exists.
This is rather perplexing for me because I have found my bank file in Documents/Starcraft II/Banks folder and it DOES in fact exist.
I have tried two different methods, neither of which works:
1) Method A: Check if the specific key I am using for games played exists. I have checked to make sure the key and section are copied exactly, so not sure why this doesn't work.
2) Method B: Assume the value exists and load it to a variable, then check if that variable is empty or not. For some reason this variable is always empty, despite the string value in the bank exists. I even made an action to display the variable and it displays nothing.
I have included a picture of my trigger. Methods A and B are labeled. The "Then" in my If statement is minimized because there should be no problem there, and if there is, it doesn't ever go there anyways. This trigger runs on Map Init.
If I remember it correctly, banks with special chars in their name can't be loaded. It would open a new bank every time and always use the else case then.
Did you try it with another bank name like "TrollTribesBank"?
I am trying to create a simple system which keeps track of each player's games played. The way I have this set up is it checks if a bank exists. If it doesn't it sets games played to "1" and then saves it in the player's bank. If it does it loads the number, adds 1 to it and does likewise. For whatever reason it is not checking if the bank exists and is always going to "Else" portion of my If statement which occurs if no bank exists. This is rather perplexing for me because I have found my bank file in Documents/Starcraft II/Banks folder and it DOES in fact exist. I have tried two different methods, neither of which works:
1) Method A: Check if the specific key I am using for games played exists. I have checked to make sure the key and section are copied exactly, so not sure why this doesn't work.
2) Method B: Assume the value exists and load it to a variable, then check if that variable is empty or not. For some reason this variable is always empty, despite the string value in the bank exists. I even made an action to display the variable and it displays nothing.
I have included a picture of my trigger. Methods A and B are labeled. The "Then" in my If statement is minimized because there should be no problem there, and if there is, it doesn't ever go there anyways. This trigger runs on Map Init.
If I remember it correctly, banks with special chars in their name can't be loaded. It would open a new bank every time and always use the else case then.
Did you try it with another bank name like "TrollTribesBank"?
@Ahli634: Go
That did it. Thanks! I figured "_" was allowed... guess not.