• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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