Calendar related variables above 2 ({c3t}, {c3ex}, ..., {c4t}, {c4ex}, ...) are substituted correctly on items's parameters, but not on the script.
Add a text and set it to _{c3t}_, the item shows the text's event correctly (The variable IS substituted)
Add in the script _return {c3t}_ (or a function that returns that value and call it in a text), it returns a table with the value of the variable c3t (The variable is NOT substituted)