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

Create character from Discord

Hello, Hope you're going well.  I'd like to know if it's possible to use a discord bot to create character in a game via an API script. (I have a souscription pro). I've read in the documentation that scripts only exists in the game itself. I would create a roll20 game where the players from discord are playing a community.  Thank you !
1758118265
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Brandys! Although it is possible to create a blank character from within a Roll20 game with a fairly simple script. There are a number that already do this. Most systems are complex enough that making even a simple NPC can become quickly... non-trivial. It's still possible that we might be able to help, if you could explain a little more fully what you need to have happen, and under what circumstances. Is your expectation that you will be running a Roll20 game through Discord? If so, you are for all intents and purposes in Roll20, and all scripts should be available. Is your expectation that Players will be in a Discord, and be able to use a Discord bot to create a character that can later be used in a Roll20 game? That is pretty much impossible. There do exist multiple ways to make a character when you are not in a game. Players can create their own characters with the Roll20Characters feature (you can find this in the header above, under Tools). Or they can create a game, make a character and then transfer it into a game using the Character Vault (also above). Either one of these latter solutions would probably best serve a community of players. I am assuming a West Marches-style game, but again, more information would be helpful.
keithcurtis said: Is your expectation that Players will be in a Discord, and be able to use a Discord bot to create a character that can later be used in a Roll20 game? That is pretty much impossible. Hello Keithcurtis, This is exactly what I would like to do. Users on discord could create a character (i.e !r20 create character <name>) and then, after some questions from the bot, it would send a request to a roll20 API that will create the character in the game. After that, players (that could be others users) can use it. Like a "twitch" integration but between discord and roll20.
1758155683
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Unfortunately, the Roll20 API is a closed sandbox. It cannot access or be accessed by an outside system. Again, a script could be made to do some of this from within Roll20, or from within Roll20 when it is being hosted within Discord, but not from a Discord bot. Is there a reason that this needs to be a Discord bot, and not just directly access Roll20's character creation tools and/or scripts?
Hello, Thank your for the answer. Not everyone want to create an roll20 account and play. I wanted to allow the users from discord to create a character in the game and let others players use it. But, if it's not really possible, no worries. I'll continue like now :)