Hi,
1. Open your project
2. In the "Project Menu" click "VBS Procedures (advanced)"
3. Copy/Paste this code into the window
- Code: Select all
Sub ExpiredCheck
Dim ExpireDate, CurrentDate
ExpireDate = CDate(01/01/2009)
CurrentDate = FormatDateTime(Date,2)
If ExpireDate <= CurrentDate Then
CreateTimedEvent 0.1, "Action.GoToFrame ""ExpiredFrame"""
End If
End Sub
4. Click "OK"
5. Right click on the initial frame (first frame when the game starts)
6. Select "Properties"
7. Select the "Advanced" tab
8. Tick the "Execute VBScript code immediately after the frame has appeared" checkbox
9. Copy/Paste this into the window
- Code: Select all
ExpiredCheck
That should work regardsless of regional settings too
Better of course would be to look at the date the game was first ran or installed and add 5 years to it and provide a system time set back check.
You can learn this by downloading my "Trial and Registration script" from my website
http://www.shadowhunter.co.uk, look under the VBScripts section.
Hope this get you started !
Kind regards,
ShAdOwHuNtEr