EventsTimer-Elapsedtimeis2700.0GameTimesecondsLocalVariablesConditionsGameMode==1(PlanetaryFortress[210.50,222.50]isalive)==TrueTimerequiredtowin==1ActionsGeneral-If(Conditions)thendo(Actions)elsedo(Actions)IfDiffuculty==1ThenVariable-ModifyWin[2]:+4ElseGeneral-If(Conditions)thendo(Actions)elsedo(Actions)IfDiffuculty==2ThenVariable-ModifyWin[2]:+8ElseGeneral-If(Conditions)thendo(Actions)elsedo(Actions)IfDiffuculty==3ThenVariable-ModifyWin[2]:+12ElseGeneral-If(Conditions)thendo(Actions)elsedo(Actions)IfDiffuculty==4ThenVariable-ModifyWin[2]:+15ElseUI-Display"Saving... Game Ending in 5 Seconds"for(Allplayers)toErrorareaBank-StoreintegerWin[2]as"win"ofsection"player"inbankBankFileBank-SavebankBankFile2General-Wait5.0GameTimesecondsGame-EndgameinVictoryforplayer2(Showdialogs,Showscoresc
hmmm. I seem to have found the problem, I had to PRELOAD then Open the bank, not the other way around. Not sure if this is the correct solution, as I published the map privately and I played with A.I - but it still worked.
So now i just need someone to tell me if that is the right solution :D
Preload is a dummy action and doesn't do more than adding the bank name's string and the player number into an xml file within the map itself. So, no, this is not the solution.
According to the code, you are storing the wins[2] value in "Bank File"... but you stored the bank that you are using in "Bank File 2". This should be a problem as it seems that you are storing the value in another player's bank cache.
Thanks for finding that, I just forgot to change it. As Bank file is for player 1, while bank file 2 is for player 2 etc.
It was working for me because everything was working right for player 1 (and i was player 1), but fails to work for the other players. Thanks!
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
The banks i made work fine in testing, but fail to work in multiplayer. Here are the triggers for one of the banks for player 2:
reen)
@TerranMaster23: Go
hmmm. I seem to have found the problem, I had to PRELOAD then Open the bank, not the other way around. Not sure if this is the correct solution, as I published the map privately and I played with A.I - but it still worked.
So now i just need someone to tell me if that is the right solution :D
thanks
Preload is a dummy action and doesn't do more than adding the bank name's string and the player number into an xml file within the map itself. So, no, this is not the solution.
According to the code, you are storing the wins[2] value in "Bank File"... but you stored the bank that you are using in "Bank File 2". This should be a problem as it seems that you are storing the value in another player's bank cache.
@Ahli634: Go
Thanks for finding that, I just forgot to change it. As Bank file is for player 1, while bank file 2 is for player 2 etc. It was working for me because everything was working right for player 1 (and i was player 1), but fails to work for the other players. Thanks!