Skip to content
Discussion options

You must be logged in to vote

Two options.
If you use Javascript, you can use the internal Date functions to get different parts of the day; but you'd need to use a function to pass the data back. So there will be some delay.

So you could do something like:

JS.eval("var d = new Date();ASLEvent('HandleDate',d.getFullYear(),d.getMonth()+1,d.getDate(),d.getDay());")

Which will then (after a small delay) call a Quest function which could look like this:

<function name="HandleDate" parameters="year,month,date,dayofweek">
  if (month = 12 and date = 25) {
    msg ("Merry Christmas!")
  }
  if (date = 15 and month = 8 and year = 1969) {
    msg ("Why are you playing video games when you could be at Woodstock?")
  }
  if (mo…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@velox-resurrected
Comment options

Answer selected by velox-resurrected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants