• 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.

Store Units

Status
Not open for further replies.
Level 2
Joined
Mar 1, 2009
Messages
13
How can I store (example) Paladin in the first map in a campaign and to load in the next with the lvl items and spells he had in the first?
 
Level 3
Joined
Sep 11, 2004
Messages
63
gamecache is what you need, there should be a method in GUI or jass to store unit or hero, use it in first mission, and save the gamecache to file like mycache.cc, then use gamecache load to load the unit or hero into a unit variable in 2nd mission.

hashtable wont work since it doesn't physically write anything to a file on harddisk, it gets lost when map ends, its life span is same as the map's.
 
Level 2
Joined
Mar 1, 2009
Messages
13
and how to store the abilities and the items that the player has taken in the first map and to load them in the next map?
 
Status
Not open for further replies.
Top