Open S-North opened 1 year ago
Hey there, glad you like it. I'm currently working on dice syntax support e.g. 2d5r1
or 1d20+2
. After that is done, I'm planning to add exactly what you need - a way to pass these commands to the application. But I'm not entirely sure how well it would work to integrate it into another webpage, since Godot doesn't really provide good methods to communicate with the application once it's running.
Hi Qubus0, thanks for the reply. Sad to hear Godot has no good method for returning values, this makes it unsuitable for my case. If in future you find that this can be done, I would greatly appreciate hearing about it. I'll continue to follow your project with great interest :)
I'm not saying it can't be done, but we might have to use some unconventional methods to communicate - like using local storage for example
Another way could be sending post requests to your server or using websockets. Though I haven't worked with those in Godot yet
Hi, this is really great stuff. I've been looking for something like this to integrate into my open source D&D encounter tracker. Do you have any documentation or suggestions for how I might be able to add this to an existing JS/React project? I'd like to pass options to the dice roller (number & type of dice), have the physics dice roll on the screen, then pass the retults back to the application. Is there an interface for this already, or something you might be planning to implement. I'm not familliar with Godot or WASM. Here's my project: https://github.com/S-North/DnD-NextJs-MongoDb