save/load system

jackall

You can change this now in User CP.
Reaction score
37
i got this system, made by me so far
Trigger:
  • save
    • Events
    • Conditions
    • Actions
      • Set SLSelectedHero = (Units currently selected by (Triggering player))
      • Unit Group - Pick every unit in SLSelectedHero and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) is A Hero) Equal to True
            • Then - Actions
              • Set SLPart1 = ((SLLetters[(Random integer number between 1 and 42)] + (String(SLDigits[(Random integer number between 0 and 9)]))) + (SLLetters[(Random integer number between 1 and 42)] + (String(SLDigits[(Random integer number between 0 and 9)]))))
              • Set SLPart2 = ((SLLetters[(Random integer number between 1 and 42)] + (String(SLDigits[(Random integer number between 0 and 9)]))) + (SLLetters[(Random integer number between 1 and 42)] + (String(SLDigits[(Random integer number between 0 and 9)]))))
              • Set SLPart3 = ((SLLetters[(Random integer number between 1 and 42)] + (String(SLDigits[(Random integer number between 0 and 9)]))) + (SLLetters[(Random integer number between 1 and 42)] + (String(SLDigits[(Random integer number between 0 and 9)]))))
              • Set SLPart4 = ((SLLetters[(Random integer number between 1 and 42)] + (String(SLDigits[(Random integer number between 0 and 9)]))) + (SLLetters[(Random integer number between 1 and 42)] + (String(SLDigits[(Random integer number between 0 and 9)]))))
              • Set SLNumberOfHeroes = ((Load herocount of (Name of (Triggering player)) from SLCache) + 1)
              • Set SLLoadCode = ((SLPart1 + SLPart2) + (SLPart3 + (SLPart4 + (String(SLNumberOfHeroes)))))
              • Set SLCodeToShow = (((SLPart1 + - ) + (SLPart2 + - )) + ((SLPart3 + - ) + (SLPart4 + (String(SLNumberOfHeroes)))))
              • Game Cache - Store SLNumberOfHeroes as herocount of (Name of (Triggering player)) in SLCache
              • Game Cache - Store SLLoadCode as (code + (String(SLNumberOfHeroes))) of (Name of (Triggering player)) in SLCache
              • Game Cache - Store (Picked unit) as (hero + (String(SLNumberOfHeroes))) of (Name of (Triggering player)) in SLCache
              • Game - Display to (All players) for 60.00 seconds the text: SLCodeToShow
              • Game - Display to (All players) the text: (String((Load herocount of (Name of (Triggering player)) from SLCache)))
              • Game - Display to (All players) the text: (String(SLNumberOfHeroes))
              • Game Cache - Save SLCache
              • Custom script: call DestroyGroup(udg_SLSelectedHero)
            • Else - Actions
              • Game - Display to (All players) the text: Select your hero fi...
              • Custom script: call DestroyGroup(udg_SLSelectedHero)

Trigger:
  • load
    • Events
    • Conditions
    • Actions
      • Set SLLoadMessage = (Substring((Entered chat string), 6, (Length of (Entered chat string))))
      • For each (Integer A) from 1 to (Load herocount of (Name of (Triggering player)) from SLCache), do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • SLLoadMessage Equal to (Load (code + (String((Integer A)))) of (Name of (Triggering player)) from SLCache)
            • Then - Actions
              • Set SLRestorePoint = ((Triggering player) start location)
              • Game Cache - Restore (hero + (String((Integer A)))) of (Name of (Triggering player)) from SLCache for Player 1 (Red) at SLRestorePoint facing Default building facing
              • Custom script: call RemoveLocation(udg_SLRestorePoint)
            • Else - Actions
              • Game - Display to (All players) the text: The code is invalid...

dont worry about force leaks, i dont get it why it wont load a hero
it generates a code, shows it, but if i try to load that hero it wont work
also, i dont want to use ANYONES system/code
i know its not MPI but thats not the point of this thread
 

Tru_Power22

You can change this now in User CP.
Reaction score
144
What's the point of having a save system that one person can use?

Can't you just save and load the game then?
 

Azlier

Old World Ghost
Reaction score
461
Even if you make it "work" for multiple players, it needs to be redone because it loads from game caches. That doesn't work between multiplayer games.
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top