• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Best way to move unit "teams" across maps in a campaign

Status
Not open for further replies.
Level 13
Joined
Jun 9, 2008
Messages
258
So I'm working on a campaign right now, and it has a gameplay element that you "capture" units and add them to your team, when/before you move to a new map, you can pick a number of (non-hero) units to go with you.

I realize there are already basic cache tutorials, but if there is one that already adresses this specific scenario, I have yet to find it.

One thing I was considering was to have a basic "vessel" unit which would move across maps, and you just 'load' all the units you want to take with you as "cargo". I currently don't have access to my world editor so I wasn't yet able to experiment, but does someone have an idea how to do that? Or would there be a quicker and more practical way (like gather your units of choice in a certain area and make a trigger loading all the units in that area into the cache)?
 
Level 10
Joined
Feb 22, 2008
Messages
619
Perhaps a trigger that added units that were added as cargo to your vessel unit type to a unit group, (and removed ones that were unloaded) and another trigger that saved the units in that unit group to a game cache when the game ended? And of course a final trigger in your second map that spawned the saved units.

Would that work?
 
Status
Not open for further replies.
Top