• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Easiest Working Save/Load Trigger?

Status
Not open for further replies.

Sarowin

S

Sarowin

First Post! YAY
I got frustrated with all the complex and hard to use save systems, so I made a very easy save/load system using Game Caches in GUI. It is very simple and I was wondering if experts could determine if there would be any leaks in a Multi-instance game like a RPG. It's obviously not set up to be implemented yet (It doesn't remove your old guy) but I think it will work. Just 2 Triggers I tested it in-game and it worked great.
  • Save
    • Events
      • Player - Player 1 (Red) types a chat message containing -Save as A substring
      • Player - Player 2 (Blue) types a chat message containing -Save as A substring
      • Player - Player 3 (Teal) types a chat message containing -Save as A substring
    • Conditions
    • Actions
      • Game Cache - Create a game cache from (Substring((Entered chat string), 7, (Length of (Entered chat string))))
      • Game Cache - Store Paladin 0000 <gen> as Hero of (Name of (Triggering player)) in (Last created game cache)
      • Game Cache - Save (Last created game cache)
  • Load
    • Events
      • Player - Player 1 (Red) types a chat message containing -Load as A substring
      • Player - Player 2 (Blue) types a chat message containing -Load as A substring
      • Player - Player 3 (Teal) types a chat message containing -Load as A substring
    • Conditions
    • Actions
      • Game Cache - Create a game cache from (Substring((Entered chat string), 7, (Length of (Entered chat string))))
      • Game Cache - Restore Hero of (Name of (Triggering player)) from (Last created game cache) for (Triggering player) at (Center of (Playable map area)) facing 0.00
 
im sorry to disappoint you but game-cache only work in single player. So its mostly for campaigns
 
Ehh... Worth a try. It works really well though, it lets you make a password, and then use the password to load it. It's saved to the player's name also. Ex. "-save ghoul" Leave the game, and then start a new one "-load ghoul" Then creates an exact copy. Thanks
 
Everything has been said.
Game caches from a multiplayer game are useless after it has ended.
Also be careful when using game caches.
There is a limit of 256 different game caches per machine per profile.
And as single player game caches are not deleted using them wrongly may cause problems.
 

I got frustrated with all the complex and hard to use save systems, so I made a very easy save/load system using Game Caches in GUI. It is very simple and I was wondering if experts could determine if there would be any leaks in a Multi-instance game like a RPG. It's obviously not set up to be implemented yet (It doesn't remove your old guy) but I think it will work. Just 2 Triggers I tested it in-game and it worked great.

It is not like people WANT them to be hard and complex (they aren't hard and complex by the way). Think next time before posting :/
 
Status
Not open for further replies.
Back
Top