Making this inquiry both on behalf of a friend as well as with my own personal interest.
Is it possible to save a map's state such that you can go to a specific edge/location of the map after killing three Zerglings there, load another map [Map 2], and then go back to Map 1, and the three Zerglings there still be dead?
Granted its a pretty loose example but can it be done?
Weeeeeeell, generally yes. But there's no actual support for that kind of stuff.
So you'd have to save all the things that happened in Map 1 (in a bank) and load all of it again when you re-enter Map 1.
That'd be quite a bit of trouble.
I could be wrong, but I don't see another way of doing this.
You can't load and save map states. You would have to set up units and triggers conditionally. This worked alright for WarCraft III custom campaigns, in that the main action didn't really happen on the central map so it was easy to keep track of the state. The main map just kept track of the quests you completed, but you can probably store more information with banks now.
Conceivably someone could make a library that would serialize the state of every unit on the map and save it to a bank. This might be prohibitively large given the limited size available for banks though.
Conceivably someone could make a library that would serialize the state of every unit on the map and save it to a bank. This might be prohibitively large given the limited size available for banks though.
Making this inquiry both on behalf of a friend as well as with my own personal interest.
Is it possible to save a map's state such that you can go to a specific edge/location of the map after killing three Zerglings there, load another map [Map 2], and then go back to Map 1, and the three Zerglings there still be dead?
Granted its a pretty loose example but can it be done?
Weeeeeeell, generally yes. But there's no actual support for that kind of stuff.
So you'd have to save all the things that happened in Map 1 (in a bank) and load all of it again when you re-enter Map 1.
That'd be quite a bit of trouble.
I could be wrong, but I don't see another way of doing this.
You can't load and save map states. You would have to set up units and triggers conditionally. This worked alright for WarCraft III custom campaigns, in that the main action didn't really happen on the central map so it was easy to keep track of the state. The main map just kept track of the quests you completed, but you can probably store more information with banks now.
i dont know how to do it my selfthis might interest you
Conceivably someone could make a library that would serialize the state of every unit on the map and save it to a bank. This might be prohibitively large given the limited size available for banks though.
On that note I have to hint to my library again http://forums.sc2mapster.com/development/galaxy-scripting-and-trigger-lib/5091-library-starcode-v1-2/#posts
It doesn't serialize, but it allows best usage of a bank's limited size.