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

[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