you have to preload a bank if you want to use information from a previous session, the rest should be up to date and correct.
it doesnt matter when to load a bank aslong as it is preloaded.
you can save only single values.
Any string is allowed as names except bank names which must be literals and not a reference to a variable.
Yes there are bank variables.
There is a bug in my "bank" lol. Tell me if this look alright? What's basicly going on is that when you are in-game it does track and Record the bank numbers, can see it in a dialog box. But when i start a 'new game' or simply 'restart' the map the value is gone. -0-... I do have the "SAVE BANK" on it so im not sure where its going wrong. Could it be that the Bank has an Array {6} on it?
Thanks for any feedback.
Events
Game - Map initialization
Local Variables
Conditions
Actions
Bank - Preload and synchronize bank "BANK" for player 1
Bank - Open bank "BANK" for player 1
Variable - Set BANKVariable[1] = (Last opened bank)
Variable - Set integerVariable[1] = (Load "Key" of section "Section" from bank (Last opened bank) as integer value)
Unit dies-
Variable - Modify IntegerVariable[1]: + 1000
Bank - Save bank "BANK"[1]
I have seen a few Tutorials on banks but i have a couple of questions.
Can you open and close a bank at pretty much any time during a game or does it 'have to' be loaded at Map initialization?
Can your bank file store a Variable Integer? Even in a Array?
Can "Key" and "Section" in bank be any Text as long as its consistent?
Can you set your bank to a Variable:Untitled Variable 001 = No Bank <Bank>?
Thanks for any feedback, Cant think of anything else at the moment.
http://www.sc2mapster.com/forums/resources/tutorials/28875-trigger-bank-facts/
you have to preload a bank if you want to use information from a previous session, the rest should be up to date and correct.
it doesnt matter when to load a bank aslong as it is preloaded.
you can save only single values.
Any string is allowed as names except bank names which must be literals and not a reference to a variable.
Yes there are bank variables.
@FunkyUserName:
Thanks. :D
There is a bug in my "bank" lol. Tell me if this look alright? What's basicly going on is that when you are in-game it does track and Record the bank numbers, can see it in a dialog box. But when i start a 'new game' or simply 'restart' the map the value is gone. -0-... I do have the "SAVE BANK" on it so im not sure where its going wrong. Could it be that the Bank has an Array {6} on it?
Thanks for any feedback.
Events
Game - Map initialization
Local Variables
Conditions
Actions
Bank - Preload and synchronize bank "BANK" for player 1
Bank - Open bank "BANK" for player 1
Variable - Set BANKVariable[1] = (Last opened bank)
Variable - Set integerVariable[1] = (Load "Key" of section "Section" from bank (Last opened bank) as integer value)
Unit dies-
Variable - Modify IntegerVariable[1]: + 1000
Bank - Save bank "BANK"[1]
you dont save any value to the bank, you just modify the varaible in your map
@FunkyUserName:
you got that right! lol lol lol.
Just watched the above video and im like $#%$#%$@%#$%#$ I DIDNT SAVE IT.
ughhh i could beat myself now.
anyways. very good Funky.
@FunkyUserName:
Bank - Store integer Value as Key of section Section in bank (Last opened bank)
- - - NEVER forget to do this. I did and was like. WHAT THE HECK. lol.
Works wonderfully now.