Just simply record everything a unit does as it does it and set it as a variable and store it to the bank.
So if you get a kill, add 1 to a variable and store it. If your unit gains exp, store it. If your unit gains a behavior, then set a variable to true and store it, if the behavior can stack multiple times then use an integer variable, add 1 and store it. Ect...
You'll need to do this for every aspect of your unit.
Then next time the game loads, you'll want to set each variable as the stored value for each bank key and apply them to the unit again. Then you can go on adding kills/exp and such to the variables.
I like to store information as it happens so I can have the most up-to-date information for my units and have the game be as close as possible to where it was when the player left off. Alternatively you can have a periodic event that will store all the unit information every few seconds.
If you want to record many units, like 100's, 1000's or even like 30 or more, then DO NOT bank them. Simply tell your players to use "resume from replay" that they added in HoTS. It's basically like banking the entire game without any work and an amazing way to pick up where you left off in a single player map.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Just simply record everything a unit does as it does it and set it as a variable and store it to the bank. So if you get a kill, add 1 to a variable and store it. If your unit gains exp, store it. If your unit gains a behavior, then set a variable to true and store it, if the behavior can stack multiple times then use an integer variable, add 1 and store it. Ect... You'll need to do this for every aspect of your unit.
Then next time the game loads, you'll want to set each variable as the stored value for each bank key and apply them to the unit again. Then you can go on adding kills/exp and such to the variables.
I like to store information as it happens so I can have the most up-to-date information for my units and have the game be as close as possible to where it was when the player left off. Alternatively you can have a periodic event that will store all the unit information every few seconds.
If you want to record many units, like 100's, 1000's or even like 30 or more, then DO NOT bank them. Simply tell your players to use "resume from replay" that they added in HoTS. It's basically like banking the entire game without any work and an amazing way to pick up where you left off in a single player map.