Page 1 of 1

Accessing Core and Char commands from web client?

Posted: 28 Nov 2018 23:00
by klause
The post about the API Documentation has a lot of useful info, and I've been reading through it to make scripts and aliases. I'm wondering if the web client has a way of accessing the Core and Char aspects. I'm mostly curious about the Char.Team package.

Unfortunately gwc.gmcp.data.character.team doesn't work, and dumping the JSON return from gwc.gmcp.data.character shows a somewhat neutered availability vs the Char.[variable] that's out there.

Any thoughts would be greatly appreciate, especially if I'm missing something, or there's a way to send GMCP commands that are in the Core and Char packages.

Thanks!

Re: Accessing Core and Char commands from web client?

Posted: 29 Nov 2018 09:51
by Drazson
I can't tell without actually checking anything but you could check if the team is allocated in the room and you go that way, somehow. Also, you could try shifting to team.character instead or idk.. Also check console while in team?

P.S. Despite using those a lot, I had no idea that post existed, thanks!

Re: Accessing Core and Char commands from web client?

Posted: 29 Nov 2018 10:25
by cotillion
It's currently not available under 'gwc' in triggers / aliases.

In the meantime you can access the entire gmcp stack through mud.gmcp
However that's really not supported so it might stop working in the future....

Re: Accessing Core and Char commands from web client?

Posted: 30 Nov 2018 00:14
by Shanoga
cotillion wrote:It's currently not available under 'gwc' in triggers / aliases.

In the meantime you can access the entire gmcp stack through mud.gmcp
However that's really not supported so it might stop working in the future....
Hot damn. I didn't know this was an option. Time to check it out...

@Cotillion: Is there an intention behind not enabling the gmcp.char.team package? Or is this something that could possibly be added to a to-do list as time allows?