Hi all, new to the editor and SC2 modding. I want to create a Zombie World Unity style map but I'm having trouble with just creating a bank to save the kills to be loaded next game too, and getting the leaderboard to load the saved total kills in the bank.
I've watched youtube videos on how to do the Leaderboard and I got it working but it only records the kills gained in that session and I made a bank by following the tutorial but I'm not sure if it works because people do it different and I can't get the leaderboard to load the kills saved in the bank.
Basically I've ended up confusing myself and I might just delete what I've done and redo it all from scratch. Is there a tutorial on what I want somewhere that I've missed that explains how to create a bank for 6 people and save the kills across multiple games and load them onto the leaderboard any time a new session is started?
I know it may sound like something simple and I think I'm close but I just can't get it to work yet. Thank in advance.
From what I thought would happen is that it would set the last created leaderboard item text in column 2 and row Player X to load the Kills in section Player from the last opened bank as text, which I thought it would open the saved kills. But I just get an error in game saying:
Yeah, banks need to be preloaded. If you're preloading them with triggers - make sure you're not using variable for player number. Preload trigger is special in that you need to specify players manually or it won't work. Tho a more modern way would be to not use triggers for that but go to "Map -> Preload Info->Banks".
Looking at screenshots I think that if player doesn't have a bank or their bank is empty, then game won't be able to load anything from those empty banks and give you an error that it can't do anything.
Also you're using "last opened bank" but each player has their own bank, so this setup will only use whatever last bank was opened in your other trigger.
I recommend doing this:
In your bank initialization trigger save all the info in the bank into variables and then in future use those variables instead. There you can also check if player has info recorded in the bank, and if they don't - you'll use default variable's value.
Also try using records: right click in trigger module (where your triggers are listed), go to "new"->"new record". Records are basically variable folders. So you can nicely organize your data in a readable way, for example everything related to your bank needs you can store in a record.
After you create record and put some variables into it you'll need to create a variable and set it's type to record that you've just created. Then you'll be able to save and manage your variables with comfort.
Hi all, new to the editor and SC2 modding. I want to create a Zombie World Unity style map but I'm having trouble with just creating a bank to save the kills to be loaded next game too, and getting the leaderboard to load the saved total kills in the bank.
I've watched youtube videos on how to do the Leaderboard and I got it working but it only records the kills gained in that session and I made a bank by following the tutorial but I'm not sure if it works because people do it different and I can't get the leaderboard to load the kills saved in the bank.
Basically I've ended up confusing myself and I might just delete what I've done and redo it all from scratch. Is there a tutorial on what I want somewhere that I've missed that explains how to create a bank for 6 people and save the kills across multiple games and load them onto the leaderboard any time a new session is started?
I know it may sound like something simple and I think I'm close but I just can't get it to work yet. Thank in advance.
So I've got this far: https://i.imgur.com/CH21ZHT.png
From what I thought would happen is that it would set the last created leaderboard item text in column 2 and row Player X to load the Kills in section Player from the last opened bank as text, which I thought it would open the saved kills. But I just get an error in game saying:
https://i.imgur.com/izIYs4U.png
I feel like I'm missing something.
Have you preloaded your bank in the preload section? Saving requires no preloading, but load info does.
Go play Antioch Chronicles Remastered!
Also, coming soon, Antioch Episode 3: Thoughts in Chaos!
Dont like mapster's ugly white? Try Mapster's Classic Skin!
In reply to AleviceJones:
Yeah, I'm preloading the bank for all 6 players.
Hm..
Yeah, banks need to be preloaded. If you're preloading them with triggers - make sure you're not using variable for player number. Preload trigger is special in that you need to specify players manually or it won't work. Tho a more modern way would be to not use triggers for that but go to "Map -> Preload Info->Banks".
Looking at screenshots I think that if player doesn't have a bank or their bank is empty, then game won't be able to load anything from those empty banks and give you an error that it can't do anything.
Also you're using "last opened bank" but each player has their own bank, so this setup will only use whatever last bank was opened in your other trigger.
I recommend doing this:
In your bank initialization trigger save all the info in the bank into variables and then in future use those variables instead. There you can also check if player has info recorded in the bank, and if they don't - you'll use default variable's value.
Also try using records: right click in trigger module (where your triggers are listed), go to "new"->"new record". Records are basically variable folders. So you can nicely organize your data in a readable way, for example everything related to your bank needs you can store in a record.
After you create record and put some variables into it you'll need to create a variable and set it's type to record that you've just created. Then you'll be able to save and manage your variables with comfort.