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

Aceheart's Save/load System

Status
Not open for further replies.
Level 7
Joined
Mar 5, 2009
Messages
254
Hello all i want to ask how can i make Aceheart's save/load system to save the players's played time,i remember Aceheart said we can save everything what we can store in variable,i just don't know how to do that(i know how to store the time in variable but i don't know how to make the variable to be saved and loaded on the next game).I will appreciate any help :wink:
 

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,219
i dont know how acehearts system works so i can not help you with that but here is how to set up time
  • time played
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Set seconds = (seconds + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • seconds Equal to 60
        • Then - Actions
          • Set seconds = 0
          • Set Minutes = (Minutes + 1)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Minutes Equal to 60
        • Then - Actions
          • Set Minutes = 0
          • Set Hours = (Hours + 1)
        • Else - Actions
this is how to see the time
  • show time
    • Events
      • Player - Player 1 (Red) types a chat message containing -time as An exact match
    • Conditions
    • Actions
      • Game - Display to (Player group((Triggering player))) the text: (Your have played + ((String(seconds)) + ( soconds + (, + ((String(Minutes)) + ( minutes + ( and + ((String(Hours)) + hours))))))))
 
Status
Not open for further replies.
Top