This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
This thread was automatically marked as Locked.
answered, leave it for google?
Hello all, i have strange problem - i want to save integer value to bank and then get it so i created empty map with only 1 trigger:
Bank Init Events Game - Map initialization Local Variables _player = 0 <Integer> _bank = No Bank <Bank> _int = 0 <Integer> Conditions Actions Variable - Set _player = 1 Bank - Preload and synchronize bank "test" for player _player Bank - Open bank "test" for player _player Variable - Set _bank = (Last opened bank) Variable - Set _int = (Load "played" of section "tutorial" from bank _bank as integer value) UI - Display (Text(_int)) for (Player group(1)) to Subtitle area Bank - Store integer 1 as "played" of section "tutorial" in bank _bank Variable - Set _int = (Load "played" of section "tutorial" from bank _bank as integer value) UI - Display (Text(_int)) for (Player group(1)) to Subtitle area Bank - Save bank _bank
and it doesnt work - it shows all time 0 then 1 i checked - there's a xmlfile in my banks folder called "test" with this
<?xml version="1.0" encoding="utf-8"?> <Bank version="1"> <Section name="tutorial"> <Key name="played"> <Value int="1"/> </Key> </Section> </Bank>
im sure problem that is i missed something very simple, but i cant figure it out oO
https://dl.dropbox.com/u/19647338/Starcraft/Bank-fail.SC2Map here's map
You shall not use variables in preload!
@Ahli634: Go
Oh my holy lacking sheet. Thanks a lot, should've understand what i read in description...
Hello all, i have strange problem - i want to save integer value to bank and then get it
so i created empty map with only 1 trigger:
and it doesnt work - it shows all time 0 then 1
i checked - there's a xmlfile in my banks folder called "test" with this
im sure problem that is i missed something very simple, but i cant figure it out oO
https://dl.dropbox.com/u/19647338/Starcraft/Bank-fail.SC2Map here's map
You shall not use variables in preload!
@Ahli634: Go
Oh my holy lacking sheet. Thanks a lot, should've understand what i read in description...