Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Dice simulator?

    Reply
    Page 1 of 4 | 1   2     3   | Next | Last
    verumgero | # 1 | 2008-11-23, 23:21 | Report

    Hey, I know this is going to sound really nerdy but I was wondering if anyone had, or had created a dice simulator for the N800? The reason I ask is that I occasionally run D&D campaigns and it would be really handy to have a program on my n800 that I could simulate rolling multi sided die. I have found a few flash programs that I can use but I would love to have something by itself.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    mullf | # 2 | 2008-11-23, 23:34 | Report

    Or you could just sell your n800 and buy 350 pair of dice.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    baksiidaa | # 3 | 2008-11-24, 02:33 | Report

    Open x term, then type
    Code:
    python
    import random
    random.randint(1,12)
    Voila--12-sided die (assuming you have python installed). Now you just need a Dungeon Master's Guide, Kitty Pryde, and Nightcrawler too (for you geek-rock fans).

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to baksiidaa For This Useful Post:
    TheGogmagog, Thesandlord

     
    verumgero | # 4 | 2008-11-24, 03:30 | Report

    lol, I like the idea of buying a n800's worth of dice but I already have a nice set. I was just hoping to have something on the tablet.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    verumgero | # 5 | 2008-11-24, 03:38 | Report

    Oh and the python thing is cool but that is more work than I want to do for each roll. If I gave someone the windows program I use could they port it? I don't think I know enough to be porting apps yet.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    baksiidaa | # 6 | 2008-11-24, 05:30 | Report

    Too much work? All you have to do for a second roll is push up and then enter. If you wanted, you could make a python script really easily that continually asks for number of sides and then gives an output, or just have a default number of sides.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Thesandlord | # 7 | 2008-11-24, 06:23 | Report

    Wow, I learn something new everyday! I never knew you could run python commands directly from the shell. This is awesome!

    Now I can just make a loop to generate random number instead of using my TI-83, so much faster for stats class!

    Edit | Forward | Quote | Quick Reply | Thanks

     
    lhommemagique | # 8 | 2008-11-24, 07:38 | Report

    verumgero post up some links to a flash app that is similar to what you want and if I have time over the thanksgiving break I'll try to wip up an app for you...no promises though.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    pton | # 9 | 2008-11-24, 11:11 | Report

    Here is bash script to generate random number between 1 and 6. You need to install bash (3.x works, not sure of 2.5x) available in the extras repository. You can use gxmessage (maemo port available in this forum) to display it in large nice fonts inside a dialog window.

    #!/bin/bash
    ((N=RANDOM%6))
    N=`expr $N + 1`
    echo $N

    Edit | Forward | Quote | Quick Reply | Thanks

     
    verumgero | # 10 | 2008-11-24, 23:36 | Report

    Originally Posted by
    Too much work? All you have to do for a second roll is push up and then enter. If you wanted, you could make a python script really easily that continually asks for number of sides and then gives an output, or just have a default number of sides.
    Sorry, I am new to python all together. I am reading up on everything that I can and hope to be proficient before too long, I didn't know I could just push up and enter for a new number, I thought I had to re-enter the whole command again. Thanks for the tip.

    Originally Posted by
    verumgero post up some links to a flash app that is similar to what you want and if I have time over the thanksgiving break I'll try to wip up an app for you...no promises though.
    http://www.wizards.com/dnd/dice/dice.htm

    http://yoav.org/dice/

    Thanks a lot for offering to put an app together for me. I'm really not in a hurry at all, this is more of a fun project than anything. Thanks again.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 1 of 4 | 1   2     3   | Next | Last
vBulletin® Version 3.8.8
Normal Logout