[SOLVED]Bank loading issues
Im using these 2 triggers but its not loading the bank values, B1 isnt set. it always announces as 1 2 3 4 when killing 4 zerglings. Is it needed to be campaign for a bank to work? if not, what am i doing wrong?
Edit : got it solved by setting the variable Wholesitebank as last created bank after the banks are opened.
[TRIGGER=]Map Initalization
Events
Game - Map initialization
Local Variables
Conditions
Actions
Bank - Open bank "Wholesitebank" for player 1
Bank - Preload and synchronize bank "Wholesitebank" for player 1
Bank - Open bank "Wholesitebank" for player 1
Bank - Preload and synchronize bank "Wholesitebank" for player 1
Variable - Set b1 = (Load "1" of section "1" from bank Wholesitebank as integer value)
[/TRIGGER]
Events
Game - Map initialization
Local Variables
Conditions
Actions
Bank - Open bank "Wholesitebank" for player 1
Bank - Preload and synchronize bank "Wholesitebank" for player 1
Bank - Open bank "Wholesitebank" for player 1
Bank - Preload and synchronize bank "Wholesitebank" for player 1
Variable - Set b1 = (Load "1" of section "1" from bank Wholesitebank as integer value)
[/TRIGGER]
-
Untitled Trigger 004
-
Events
-
Unit - Any Unit dies
-
-
Local Variables
-
Conditions
-
(Unit type of (Triggering unit)) == Zergling
-
-
Actions
-
Variable - Set b1 = (b1 + 1)
-
Bank - Store integer b1 as "1" of section "1" in bank Wholesitebank
-
UI - Display (Text(b1)) for (All players) to Error area
-
Bank - Save bank Wholesitebank
-
-
Im using these 2 triggers but its not loading the bank values, B1 isnt set. it always announces as 1 2 3 4 when killing 4 zerglings. Is it needed to be campaign for a bank to work? if not, what am i doing wrong?
Edit : got it solved by setting the variable Wholesitebank as last created bank after the banks are opened.
Last edited: