home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.1)
-
- from whrandom import *
-
- def d10():
- resultd10 = int(random() * 10) + 1
- return resultd10
-
-
- def d6():
- resultd6 = int(random() * 6) + 1
- return resultd6
-
- print '\n creation du personnage \n'
- strengh = d6() + d6() + d6()
- print 'force de ', strengh
- points_vie = d6() + d6() + d6()
- print 'points de vie', points_vie
- wisdom = d6() + d6() + d6()
- print 'sagesse ', wisdom
- dexter = d6() + d6() + d6()
- print 'dext\xe9rit\xe9 ', dexter
- intell = d6() + d6() + d6()
- print 'intelligence ', intell
- if strengh > 12:
- print ' Vous devriez jouer un guerrier'
-
- print '\n alignement lawfull good \n '
- sentiment = d10()
- print 'sentiment n\xb0 ', sentiment
- toto = open('c:\\Art_Freelog\\Perso AD&D\\sentim.txt', 'r')
- for i in range(1, sentiment):
- gazpacho = toto.readline()
-
- vie_sent = toto.readline()
- print vie_sent
- toto.close()
-