Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Is it possible to auto display a character sheet using the API?

1386721953

Edited 1386723317
I am having trouble figuring out how to automatically display a character sheet using the API. Is it possible? Edit: Also is it possible to delete abilities from a character sheet using the API? I can create them easy enough...
Currently you can edit attributes and abilities, as well as create them. Opening char sheets and deleting abilities isn't something that's available...yet...
Emile l. said: Currently you can edit attributes and abilities, as well as create them. Opening char sheets and deleting abilities isn't something that's available...yet... Thanks Emile. I thought this might be the case because I could not find any documentation on the wiki to do what I am asking.
1386821552

Edited 1386822808
If you're trying to make something that'd be accessible soley for API use though, you can always edit the GM note section in a coma delimited fashion. That's how I was building scripts that required abstract data to be added and removed from characters. *edit* I was browsing through the mentor forums, and it looks like the GMnote portion of journal entries has been broken for some time... Maybe after this update it'll give a little more access?
1386829546
Alex L.
Pro
Sheet Author
Emile l. said: If you're trying to make something that'd be accessible soley for API use though, you can always edit the GM note section in a coma delimited fashion. That's how I was building scripts that required abstract data to be added and removed from characters. *edit* I was browsing through the mentor forums, and it looks like the GMnote portion of journal entries has been broken for some time... Maybe after this update it'll give a little more access? You really shouldn't do this any more use the state object instead, its far faster and puts a lot less presure on the servers.
:S I'm not familiar (I haven't really messed with the API in a few months) what's the syntax for that? Or is it in the wiki?
1386922237
Alex L.
Pro
Sheet Author
Emile l. said: :S I'm not familiar (I haven't really messed with the API in a few months) what's the syntax for that? Or is it in the wiki? It's just a normal javascript object that get saved and loaded automatically. <a href="https://wiki.roll20.net/API:Objects#Global_Objects" rel="nofollow">https://wiki.roll20.net/API:Objects#Global_Objects</a>