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

[Trigger] Spawn System + Save/Load

Status
Not open for further replies.
Level 6
Joined
Mar 27, 2009
Messages
245
So its for an ORPG, we tried making a spawn system, but it failed. The save/load, we dont even know where to start! Does the spawn system need Jass?

If its too hard to help, at least if someone would put a link to an tutorial, would be great too.

+Will be repped.
 
Level 20
Joined
Jan 6, 2008
Messages
2,627
  • Save Cache
    • Events
    • Conditions
    • Actions
      • Game Cache - Create a game cache from MyMap.w3v
      • Game Cache - Store Hero1 as Hero1 of Heroes in (Last created game cache)
      • Game Cache - Save (Last created game cache)
  • Load Cache
    • Events
    • Conditions
    • Actions
      • Game Cache - Create a game cache from MyMap.w3v
      • Game Cache - Restore Hero1 of Heroes from (Last created game cache) for Player 1 (Red) at (Center of (Playable map area)) facing 0.00
      • Set Hero1 = (Last restored unit)
The latter leaks, fix it.

When saving, use the name of the current map. When loading, use the name of the map you want to create the cache from.

  • Respawn 2
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • Wait 5.00 seconds
      • Unit - Replace (Triggering unit) with a (Unit-type of (Triggering unit)) using The new unit's max life and mana


/Facepalm
 
Status
Not open for further replies.
Top