• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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,183
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