View unanswered posts | View active topics It is currently Sat Apr 27, 2024 12:05 pm



Post new topic Reply to topic  [ 12 posts ]  Go to page Previous  1, 2
 Trying to modify a die roller. 
Author Message

Joined: Fri May 28, 2010 7:47 am
Posts: 5
Post Re: Trying to modify a die roller.
worked! and it output's fine with what i already had.

Thanks for the help. I have an idea on implementing the #-again rules but gotta make sure my math and logic bit's are good first.

So that mean's I'll prolly be back. :D

thank you again!


Sun May 30, 2010 8:28 am
Profile

Joined: Fri May 28, 2010 7:47 am
Posts: 5
Post Re: Trying to modify a die roller.
I may have an idea on doing the 8-again stuff.....but I don't know how to do it in python....

Do a new class and use an array.

if i want to re-do say 8 again and higher...

i would type in like [1d10.again(8)]

and i roll an 8

check the array and see if 8 is in it....if not add the 8 to the array and re-roll...on second, i roll 8 again. Check the array and see that 8 is already there so i just add the value of the second 8.

This would check for anything higher than the value.

or the other idea, add this to the sum class it could take care of 10's automatically (since the rules require all 10's be re-done once anyways) and then if the value changes, to the aformentioned 8.....then it would do anything equal to or higher than the 8.

But I'm not sure how to do array's in python. And fixing it to do the 10 automatically would be great. It's kinda like automatically figuring the extra class


Tue Jun 01, 2010 5:38 am
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ]  Go to page Previous  1, 2


Who is online

Users browsing this forum: No registered users and 141 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.