Staredit Network > Forums > SC2 Assistance > Topic: Breaking the Bank
Breaking the Bank
Jan 4 2012, 9:50 pm
By: Bolshevik09  

Jan 4 2012, 9:50 pm Bolshevik09 Post #1



Quote
"You can't use variables for the bank name or the player number because variables aren't even initialized when that code is called" - http://www.galaxywiki.net/Banks

What does this mean exactly, I'm having a few problems with banks storing integers and texts. The bank can store Booleans just fine but cant seem to recall integers or texts. I have the Key and section matched perfectly or my triggers are just mixed up..
But i use a "for each integer" action to restore my banks as following

For each integer counter from 1 to 3 with increment 1, do (Actions)
General - If (Conditions) then do (Actions) else do (Actions)
If
(Load ("SaveState" + (String(counter))) of section "Boolean" from bank MoonShinesDat as boolean) == True
Then
Variable - Set GameTime Seconds[counter] = (Load "TotalTime" of section "Integer" from bank MoonSave[counter] as integer value)
Variable - Set Coinage[counter] = (Load "Coinage" of section "Integer" from bank MoonSave[counter] as integer value)
Variable - Set TotalXP[counter] = (Load "TotalXP" of section "Integer" from bank MoonSave[counter] as integer value)
Else

Where i have "MoonSave" as 3 different save files accordingly to if they exist in "MoonShinesDat"
Does it matter if my variable "Coinage" is the same as the "Coinage" key from my bank?



None.

Jan 4 2012, 10:05 pm Bolshevik09 Post #2



Well crap i just solved my own problem, realized i was recalling from "MoonSave[counter]" but i forgot to save that bank as a variable!
Still would like to know what WIKI is saying



None.

Jan 4 2012, 11:08 pm Ahli Post #3

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

It's a terrible description of: You can't use variables in preload bank names. The name must be typed out.

Also, I might just throw a bank example. It just shows the important functions with some comments and I did a copy bank content (except for saved units).

Attachments:
bankTest.SC2Map
Hits: 1 Size: 14.66kb




Jan 5 2012, 10:14 pm Bolshevik09 Post #4



Quote from Ahli
I might just throw a bank example. It just shows the important functions with some comments

Great Example Map

Post has been edited 3 time(s), last time on Jan 5 2012, 10:36 pm by Bolshevik09. Reason: Stupid question, Deleted



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:47 pm]
NudeRaider -- IlyaSnopchenko
IlyaSnopchenko shouted: Is it possible to add articles to wiki? Inc. those that got posted to "staredit-network.fandom" while the wiki here was ailing?
if the spammers can do it IlyaSnopchenko
IlyaSnopchenko shouted: It also looks like the wiki was filled with spam
what could stop you? :awesome:
[12:49 pm]
IlyaSnopchenko -- It also looks like the wiki was filled with spam
[12:46 pm]
IlyaSnopchenko -- Is it possible to add articles to wiki? Inc. those that got posted to "staredit-network.fandom" while the wiki here was ailing?
[07:07 am]
NudeRaider -- Moose
Moose shouted: Ultraviolet resurrected NudeRaider now you can Ultraviolet not anymore
and I just did :) https://staredit.net/topic/18839/unread/#special
[2026-1-11. : 10:54 pm]
Ultraviolet -- Moose
Moose shouted: how about if I have a stroke you don't tell me what to do
:lol:
[2026-1-11. : 2:57 pm]
Sie_Sayoka -- thank u moose the wiki is resurrected
[2026-1-11. : 2:43 am]
Moose -- how about if I have a stroke you don't tell me what to do
[2026-1-06. : 10:09 pm]
IskatuMesk -- if you have a stroke please don't try to get out of bed and walk somewhere phone for help or something
[2026-1-05. : 9:43 pm]
Ultraviolet -- arise
[2026-1-05. : 12:07 pm]
NudeRaider -- 🎉🎉🎉 Moose is the best
Please log in to shout.


Members Online: Mr.BurnLiquid, NudeRaider