Pardon me for the basic question,but here we go:
Im trying to define a global variable in a self script that I can access in the bot´s response templates. I was searching the scripts but couldnt find, at least in a way it works. Im probably missing something. I've tried something like the code below:
state MyScript {
pattern "create variable" template createIt();