My player banks are not working and I cannot figure out why. I have searched and searched, watched and read countless tutorials, and I still can not figure out why.
These are my triggers:
InitializationEventsGame-MapinitializationLocalVariablesConditionsActions-------PlayersTrigger-RunPlayerInitialization("Check Conditions, Don't Wait until it finishes")
PlayerBanksLoadHighScoresOptions:ActionLocalVariableseachPlayer=0<Integer>ActionsGeneral-ForeachintegereachPlayerfrom1to12withincrement1,do(Actions)ActionsBank-Openbank"MySaveName"forplayereachPlayerGeneral-If(Conditions)thendo(Actions)elsedo(Actions)If(Bank(Lastopenedbank)has"Highscore"insection"Statistics")==TrueThenVariable-SetHighScore[eachPlayer] = (Load "Highscore" of section "Statistics" from bank (Last opened bank) as integer value)
UI - Display "High Score Loaded. " for (Player group(eachPlayer)) to Subtitle area
Else
PlayerBanksSaveHighScoreOptions:ActionParametersplayer=0<Integer>LocalVariablesActionsBank-Openbank"MySaveName"forplayerplayerBank-StoreintegerHighScore[player] as "Highscore" of section "Statistics" in bank (Last opened bank)
Bank - Save bank (Last opened bank)
Alright so I solved my problem. It turns out that I was opening a bank name that has an underscore ( ' _ ' ) in the name. I was looking at the actual bank file name and noticed it didn't have the underscore in it.
So in my code, I just removed the underscore and it now works. :P
Learned something new.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
My player banks are not working and I cannot figure out why. I have searched and searched, watched and read countless tutorials, and I still can not figure out why.
These are my triggers:
Thanks for any help.
Alright so I solved my problem. It turns out that I was opening a bank name that has an underscore ( ' _ ' ) in the name. I was looking at the actual bank file name and noticed it didn't have the underscore in it.
So in my code, I just removed the underscore and it now works. :P Learned something new.