#This script is the timer for the dotEngine 2006 Community Speedruns mode. #This script is old, you should use it only to create a timer from scratch. #This script doesn't count miliseconds, and it can no longer save your time to the saved speedrun times, as it uses a different API now. [create ;text -"name:TIMERTEXT_MINUTE"] >count:InitTimerSystem>600ps=1m;name:MINUTES< >>count:InitTimerSystem>6000ps=1s;name:SECONDS<> ~timingSys [IfHit60s=add:1>MINUTES] ~OnGamePause >manipulate:TimerSystem>doPause< ~OnGameResume >manipulate:TimerSystem>doResume< ~OnFlagTriggered >manipulate:TimerSystem>doStop;Remembertime< ~OnLevelRestart >manipulate:TimerSystem>doRestart;Forgettime< # *** Save Time to The Leaderboards *** # savetimetoleaderboards getData:Console-Community-System;Leaderboards;[\leaderboards\gameappID\gameboard.leader] ifDataGet: >manipulate:API_above:SaveTimeFrom:[Remembertime] ifNoDataGet: >manipulate:GameSystemClient:displaymessage:"Could not get data from the Leaderboards server, your time will be uploaded when we can get data from the servers";SaveTimeToToDoList:[initline:savetimetoleaderboards]< end #The end word above does nothing at all in newer engines, you should not include it in any scripts. #If the game crashes while saving your time to the leaderboards, you can anytime check the game's leaderboard attempts and retry to upload your time. #If this script refers to an another, missing script, you can anytime find those scripts at "http://developer.dotnet.com/scripts" and insert them at the bottom above the '#', give it a name, it should look like name:script1;[SCRIPTSTARTHERE] .Then where the reference gets to the missing script, replace it with the name you gave it earlier. #This script includes copyright stuff, do not use the Leaderboard API Upload Scripts or any other parts of this script that has a reference to the API, or otherwise we will *block your times from the Leaderboards.* [*FIXED: automatically remove those times from the leaderboards.*] #This script is made for any game that supports Community Speedruns mode.