NOTICE: This site has been archived. All content is read-only and registration is disabled.
A new site is being built and the Basic Action Games Discord server is an active hub for discussion and games.
-Admin
A new site is being built and the Basic Action Games Discord server is an active hub for discussion and games.
-Admin
BASH Dice Roller
- Unknown_Blitz
- Sidekick
- Posts: 37
- Joined: Tue Apr 06, 2010 11:00 pm
BASH Dice Roller
Hey all, I notice that there are quite a few tech-savy people who play BASH now (*cheers*). I wanted to ask what kind of time/effort it would take to add a dice roller for BASH to the website, kind of like the one that White Wolf used to have for their games.
I had been thinking about the future of pbp here and wasn't sure if someone had already found a good, easily accessiable dice roller that people on the forum could use.
-UB
I had been thinking about the future of pbp here and wasn't sure if someone had already found a good, easily accessiable dice roller that people on the forum could use.
-UB
- AslanC
- Zenith Comics
- Posts: 1130
- Joined: Sat Apr 03, 2010 11:00 pm
- Location: Soviet Canuckistan
- Contact:
- Jaysun
- Sidekick
- Posts: 33
- Joined: Sun Apr 04, 2010 11:00 pm
- Location: Virginia, USA
- Contact:
Not sure if this will help but will the following link help resolve this matter on getting a dice roller set up?
http://forums.codewalkers.com/php-codin ... 17314.html
If it doesn't help, sorry for the waste of time.
http://forums.codewalkers.com/php-codin ... 17314.html
If it doesn't help, sorry for the waste of time.
- Jaysun
- Sidekick
- Posts: 33
- Joined: Sun Apr 04, 2010 11:00 pm
- Location: Virginia, USA
- Contact:
- Jaysun
- Sidekick
- Posts: 33
- Joined: Sun Apr 04, 2010 11:00 pm
- Location: Virginia, USA
- Contact:
Testing dice roller (Instructions: http://www.bashtalk.org/modules.php?nam ... opic&t=100)
[dice]2d6 = 23547847 [/dice]
[dice]2d6x4 = 1034381766 [/dice]
Sweet. Congrats on getting it working Coyote!
May the PbP begin!
[dice]2d6 = 23547847 [/dice]
[dice]2d6x4 = 1034381766 [/dice]
Sweet. Congrats on getting it working Coyote!
May the PbP begin!
- Unknown_Blitz
- Sidekick
- Posts: 37
- Joined: Tue Apr 06, 2010 11:00 pm
Test
Big Guy Hits Supervillain the damage is:
For Damage Roll with 5 Brawn and 1 lvl of Growth
[dice]2d6*5 = 1299069458 = Fixed[/dice] [/dice]
Very awesome Coyote, I really appreciate you working on this!
The level of growth needs to be added manually it looks like , but thats just a matter of editing the post, and the important thing is that we have the initial roll recorded.
Now to create something to run here : )
Thanks again,
-UB
Big Guy Hits Supervillain the damage is:
For Damage Roll with 5 Brawn and 1 lvl of Growth
[dice]2d6*5 = 1299069458 = Fixed[/dice] [/dice]
Very awesome Coyote, I really appreciate you working on this!
The level of growth needs to be added manually it looks like , but thats just a matter of editing the post, and the important thing is that we have the initial roll recorded.
Now to create something to run here : )
Thanks again,
-UB
- Coyote
- Evil Genius
- Posts: 114
- Joined: Sat Apr 03, 2010 11:00 pm
- Location: Earth-Prime
Originally the "fixed" is a warning that the dice roll may have been edited, but I also know that sometimes you might need to go back and continue your post once you know what your numbers are.
I can't take it out unfortunately, I may be decent with PHP but i'm not a god yet
Anyhow, everyone here is a good bunch and I can't see people abusing it
I can see there being an issue at times when you roll doubles, if I recall you roll again and add result. In that case one would need to go back, edit the post with the new dice roll, then add manually etc.
It's not a perfect system (though someday maybe it will be) but at least it's usable
I can't take it out unfortunately, I may be decent with PHP but i'm not a god yet
Anyhow, everyone here is a good bunch and I can't see people abusing it
I can see there being an issue at times when you roll doubles, if I recall you roll again and add result. In that case one would need to go back, edit the post with the new dice roll, then add manually etc.
It's not a perfect system (though someday maybe it will be) but at least it's usable
- Lindharin
- Paragon
- Posts: 612
- Joined: Sun Apr 04, 2010 11:00 pm
- Location: New York
Coyote, I'm actually pretty good with PHP. And I just wrote a BASH-style dice roller for the MapTools framework. Would you like me to take a look at the code and see if I can get an actual BASH roller working?
If so, send me a PM with the code where the dice rolls get processed/inserted into the post.
If so, send me a PM with the code where the dice rolls get processed/inserted into the post.
- Coyote
- Evil Genius
- Posts: 114
- Joined: Sat Apr 03, 2010 11:00 pm
- Location: Earth-Prime
Improvement, it's now implemented in the quick reply.
[edit - err, the dice button shows but using it responds with "undefined function". looks like I need to play with it more.]
I've re-synchronized my local files and the server files, so i'll mess around with it a bit locally and see what happens. thanks for your help so far, Lindharin
I notice from your test that it doesn't seem to like adding multiple dice rolls, looks like it took the first number (2) instead of the whole dice roll (2d8) and broke at the D.
Good to know.
I thought of trying to write an if/then loop for doubles on a 2d6 roll but my head broke
[edit - err, the dice button shows but using it responds with "undefined function". looks like I need to play with it more.]
I've re-synchronized my local files and the server files, so i'll mess around with it a bit locally and see what happens. thanks for your help so far, Lindharin
I notice from your test that it doesn't seem to like adding multiple dice rolls, looks like it took the first number (2) instead of the whole dice roll (2d8) and broke at the D.
Good to know.
I thought of trying to write an if/then loop for doubles on a 2d6 roll but my head broke
- Lindharin
- Paragon
- Posts: 612
- Joined: Sun Apr 04, 2010 11:00 pm
- Location: New York
Hi Coyote,
Try removing the old closing span tag at the end of the Img button input, right before the new Dice button input. There is a new closing tag at the end of the new line, which makes it an extra.
I don't think that's going to solve the undefined problem, but it can't hurt to remove the excess tag.
Oh, just saw the problem. The file you sent me had the changes for the javascript included, but if I do "view source" on this page it isn't there.
In viewtopic.php, in the javascript section for the quick reply, you need to define the d_help variable and add the dice tags to the end of the bbtags array. See the viewtopic.php in the zip file you sent me for the way it should look.
Try removing the old closing span tag at the end of the Img button input, right before the new Dice button input. There is a new closing tag at the end of the new line, which makes it an extra.
I don't think that's going to solve the undefined problem, but it can't hurt to remove the excess tag.
Oh, just saw the problem. The file you sent me had the changes for the javascript included, but if I do "view source" on this page it isn't there.
In viewtopic.php, in the javascript section for the quick reply, you need to define the d_help variable and add the dice tags to the end of the bbtags array. See the viewtopic.php in the zip file you sent me for the way it should look.
- Coyote
- Evil Genius
- Posts: 114
- Joined: Sat Apr 03, 2010 11:00 pm
- Location: Earth-Prime
Yeah, I suspected as much. that'll teach me to maintain code from multiple computers.. I thought I was keeping the changes synchronized across the local comps as well as the server, and it's possible I re-uploaded an unchanged file at some point.
Got some things need to be done today, hopefully I'll have this finalized sometime tonight
Apologies to everyone for not having it 100% right off the bat, but at least the code works when you type manually!
Got some things need to be done today, hopefully I'll have this finalized sometime tonight
Apologies to everyone for not having it 100% right off the bat, but at least the code works when you type manually!