• 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] Easiest Working Save/Load Trigger?

Status
Not open for further replies.
Level 2
Joined
Jul 19, 2007
Messages
5
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
 
Level 4
Joined
Jun 8, 2008
Messages
87
im sorry to disappoint you but game-cache only work in single player. So its mostly for campaigns
 
Level 2
Joined
Jul 19, 2007
Messages
5
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
 
Level 12
Joined
Apr 27, 2008
Messages
1,228
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.
 
Level 29
Joined
Jul 29, 2007
Messages
5,174

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