2 Replies
Michael Hinze

When your Javascript first unlocks part of the content you could also set a Storyline Variable to true (signifying that the content is now unlocked). Assuming that you set your player behaviour to always resume or prompt to resume, the variable's value can be used on subsequent visits to signify that the content is already unlocked. Hope that makes sense.

Claudio Fayngolz

HI Michael

Thank you for the response. The issue is that right now is unlocking on that specific date, if somebody tries to open after that date it will not unlock. The code seems to work only for that date.

I used this Javascript for checking the date

var currentTime = new Date()
var month = currentTime.getMonth() + 1
var day = currentTime.getDate()
var year = currentTime.getFullYear()
var dateString=month + "/" + day + "/" + year
var player = GetPlayer();

then I put a condition on a trigger to check for that date, but I need something that will keep it unlock after that date

Any ideas?