• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Bank loading issues

Status
Not open for further replies.
Level 19
Joined
Aug 8, 2007
Messages
2,765
[SOLVED]Bank loading issues

[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]
  • 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:
Status
Not open for further replies.
Top