Hi @jalue2002, welcome to the party.
If you want to break the abstraction and write some Javascript, you can send events to an external server and/or read data into a game. I have done both for some of my experiments (e.g two-player Lamurloq THREAD HERE), but it is not officially supported (and actually discouraged).
I will be happy to give you more info, but you won’t be able to publish your game (and there are probably better tools than Choicescript for an interactive strategy game).