• 🏆 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!

[General] Hashtable -save -load system

Status
Not open for further replies.
Level 4
Joined
Aug 16, 2013
Messages
75
Can you use a hashtable to save a unit from a previous game and then load that unit in the next game? Or are hashtable values temporary per game?

I tried looking this up but there is no information whatsoever.

Example:

You say -save

You leave the game

You enter another game of the same map

you say -load , and it loads your character and so on.
 
Level 5
Joined
Mar 6, 2015
Messages
130
no you can use game-cache to transfer data among maps
example:
  • Run this trigger to save data
    • Events some event
    • Conditions some conditions
    • Actions
      • Game Cache - Create a game cache from MapName.w3v
      • Game Cache - Store (Triggering unit) as myunit of Category in (Last created game cache)
      • Game Cache - Store (Name of (Triggering unit)) as unitName of Category in (Last created game cache)
 
Status
Not open for further replies.
Top