• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Little help here!

Status
Not open for further replies.
Level 11
Joined
May 17, 2010
Messages
389
I dunno if this works, but check it out.

[trigger=]
Next Scene
Events
Unit - A unit enters (Cave)
Conditions
((Entering unit) is A Hero) Equal to True
Actions
-------- Set The Variables --------
Set HeroGroup = (Units within 500.00 of (Position of (Entering unit)) matching ((Owner of (Matching unit)) Equal to (Owner of (Entering unit))))
Game Cache - Create a game cache from MapName.w3v
Set GameCache = (Last created game cache)
-------- Get The Data --------
Unit Group - Pick every unit in HeroGroup and do (Actions)
Loop - Actions
Game Cache - Store (Picked unit) as HeroGroup of HeroGroup in GameCache
Game Cache - Store (Picked unit) as HeroGroup of HeroGroup in GameCache
-------- Save The Game Cache --------
Game Cache - Save GameCache
-------- Load The Map --------
-------- "Map/MapName.w3m" must be a valid map file! --------
Game - Set the next level to Maps\MapName.w3m
[/trigger]

And at the next map, you should load the game cache.
 
Status
Not open for further replies.
Top