Hi,
PFC looks great so far. Thanks for sharing and for keeping up this support forum.
I would like to create some actions the user can take on a page that result in chat events and also some chat commands that perform server-side actions that affect the page.
For example, imagine an online chess game where there's a custom command /move X where X is an algebraic chess notation. The result should move the piece on the server side game and also echo the notation to the chat. Likewise, a direct manipulation of the piece on a canvas should result in both moving the piece and echoing to the chat.
I looked at the custom dice roll example, and I'm confused that the custom command code is in PHP when it would seems like it should be run on the client in Javascript. I suppose there's some hidden javascript that calls to the server where this custom command is pre-compiled and ready, but all the API is hidden and seems to be undocumented.
So, any suggestions or examples or documentation pointers for how to make something like this work?
Thanks in advance