Conversation
Notices
-
-
@jpope Without a doubt
-
@jpope does rollonetwelve work? I may need to determine the damage of a two-handed sword.
-
No, not yet. I may be working more options into the plugin. Right now only rollone and rolltwo, 6 sided die. #LearningExperience ;)
-
@jezra I use rolldice all the time :-)
-
@jezra I would rather rolltwoeight, using 2 weapons (4th ed ranger)
-
@jezra you could also try this http://x1101.net/dice.php
ⒿⓅⓄⓅⒺ likes this. -
That’s good stuff. That needs rolled into a SN plugin. :P
-
@jpope it needs a *lot* more work before then
-
@x1101 where is the API documentation?
-
@jezra API? What do you think I am, a developer? It doesn't have a API, its just a javascript function.
-
@jezra now, if you have suggestions for an API, or a better dice roller, I welcome them.
-
@x1101 it could be part of a GET query. rolling 2d8+1d4 could be dice.php?die[8]&die[8]&die[4] and return plain text results
-
@jezra that doesn't sound like a bad idea. Might even add a spot for mods, like 1d8+1d10+4 damage (my warlock, with curse, before he died:{)
-
Wouldn't it have to go through as "dice.php?die[]=8&die[]=8&die[]=4"? Either way, I like where you're going with this. :)
-
@windigo does it? It's been a while since I've worked with arrays in GET requests
-
Yeah, it's not something I do very often - I'd probably have to look up the syntax to be sure.
-
If I was going to use it myself, you could call it the EFG - epic fail generator...
-
@windigo TEFG -- the epic fail generator is born!
-
If you need any PHP help, let me know :D
-
@windigo oh, I probably will. But I hope to do a good portion of it myself, simply because I dont write enough code
-
Sounds good - that'll let me finish my zombie grinder. :D
-
@windigo remember rule 1, double tap
-
@windigo you were correct ?var[]=value&var[]=value2
-
@jezra trying to get something like this working http://x1101.net/dice/?roll[[2,6],[4,8],9] 2d6+4d8+9 (very badass)
-
@jezra looks more like this dice/?roll[2,6]&roll[4,8]&buff=9
-
@x1101 how about http://x1101.net/dice/?die[]=6&die[]=6&die[]=8&die[]=8&die[]=8&die[]=8&modifier=9
-
@jezra if what I am trying works, URL is *much* shorter
-
@x1101 short shmort.
-
Well, there's a first time for anything. :D
-
@windigo odd, this seems to (kinda) work /dice/?roll[2,6]&roll[4,8]&buff=9
-
I think the only way you'd be able to do some fancy syntax such as that would be to use mod_rewrite and a regex....
-
...that's how most people accomplish their fancy URLs, I think.
-
I like it! :)
-
@x1101 I approve!
-
@johnnynull oh good. I was considering scrapping the project if you didn't
-
@x1101 That's understandable.
-