Apparently trainers and buildorder maps are a thing, been helping folks with their code. Since resetting melee maps is fairly common and generic a problem, wrote a little script and edited some data for my simple solution. Attached is a demo map (reset the map with the !remelee command), and here's a link to the script paste.
Both, which is why I posted here. Until I refine it to either pure code and/or improve modularity by making it a mod, it doesn't merit being a resource in an official capacity. Since people could benefit from it, figured posting a demo map is better than not posting at all, haha.
Specifically, the script replaces melee init trigger, performs preplaced unit caching and standard melee init sans options (such as defeat, stalemate, victory), creates a chat string trigger for the !remelee command, which revives and resets the vitals, position and resources of cached units, wipes non-cached units, resets upgrades, camera, vision, units, creep and so forth. The code is supported by various melee unit data changes which sets Death Time to -1, and prevents mineral field removal from memory upon depletion.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Apparently trainers and buildorder maps are a thing, been helping folks with their code. Since resetting melee maps is fairly common and generic a problem, wrote a little script and edited some data for my simple solution. Attached is a demo map (reset the map with the !remelee command), and here's a link to the script paste.
I know alot of map makers would like this.
@JademusSreg: Go
i have been looking for this thank you!
This a trigger or data asset?
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
Both, which is why I posted here. Until I refine it to either pure code and/or improve modularity by making it a mod, it doesn't merit being a resource in an official capacity. Since people could benefit from it, figured posting a demo map is better than not posting at all, haha.
Specifically, the script replaces melee init trigger, performs preplaced unit caching and standard melee init sans options (such as defeat, stalemate, victory), creates a chat string trigger for the !remelee command, which revives and resets the vitals, position and resources of cached units, wipes non-cached units, resets upgrades, camera, vision, units, creep and so forth. The code is supported by various melee unit data changes which sets Death Time to -1, and prevents mineral field removal from memory upon depletion.