クトゥルフ神話TRPG6版キャラシ作成機
an anonymous user
·
Python
print("クトゥルフ神話PRTG第6版のキャラクターシートを作成します。")
print("------------------------------------------------------------")
print("your name") #作りたいキャラの名前を入力してください。
#STR(3d6)
import random
def roll_dice():
return random.randint(1, 6)
STRtotal = 0
for _ in range(3):
STRtotal += roll_dice()
print("STR(筋力):", STRtotal)
#CON(3d6)
import random
def roll_dice():
return random.randint(1, 6)
CONtotal = 0
for _ in range(3):
CONtotal+=roll_dice()
print("CON(体力):",CONtotal)
#POW(3d6)
import random
def roll_dice():
return random.randint(1, 6)
POWtotal = 0
for _ in range(3):
POWtotal+=roll_dice()
print("POW(精神力):",POWtotal)
#DEX(3d6)
import random
def roll_dice():
return random.randint(1, 6)
DEXtotal = 0
for _ in range(3):
DEXtotal+=roll_dice()
print("DEX(俊敏性):",DEXtotal)
#APP(3d6)
import random
def roll_dice():
return random.randint(1, 6)
APPtotal = 0
for _ in range(3):
APPtotal+=roll_dice()
print("APP(美貌):",APPtotal)
#SIZ(2d6+6)
import random
def roll_dice():
return random.randint(1, 6)
SIZtotal = 0
for _ in range(2):
SIZtotal+=roll_dice()
print("SIZ(身長):",SIZtotal+6)
#INT(2d6+6)
import random
def roll_dice():
return random.randint(1, 6)
INTtotal = 0
for _ in range(2):
INTtotal+=roll_dice()
print("INT(知性):",INTtotal+6)
#EDU(3d6+6)
import random
def roll_dice():
return random.randint(1, 6)
EDUtotal = 0
for _ in range(3):
EDUtotal+=roll_dice()
print("EDU(教養):",EDUtotal+6)
print("\nSAN値、ポイント\n")
#SAN=幸運値=POW*5のため
SAN=POWtotal*5
print("SAN値(正気度)",SAN)
print("幸運値",SAN)
#アイデア(INT×5)
IDEA=INTtotal*5
print("アイデア",IDEA)
#知識(EDU×5)
INFO=EDUtotal*5
print("知識",INFO)
#耐久力{(COM+SIZ)÷2}
import math
DRA=(CONtotal+SIZtotal)/2
print("耐久力",(math.ceil(DRA)))
#MP(INT)
MP=INTtotal+6
print("MP",MP)
#職業技術ポイント(EDU×20)
JP=EDUtotal*20
print("職業ポイント",JP)
#趣味ポイント(INT×10)
HP=INTtotal*10
print("趣味技能ポイント",HP)
#ダメージボーナス(STR+SIZ)
DB=STRtotal+SIZtotal
if DB<=12:
print("ダメージボーナス"+"-1d6\n")
elif DB<=16:
print("ダメージボーナス"+"-1d4\n")
elif DB<=24:
print("ダメージボーナス"+"0\n")
elif DB<=32:
print("ダメージボーナス"+"+1d4\n")
elif DB<=40:
print("ダメージボーナス"+"+1d6\n")
#初期技能値
print("以下ステータス変動型初期技能値\n")
#回避(DEX*2)
print("回避",DEXtotal*2)
#母国語(EDU*5)
print("母国語",EDUtotal*5)
Output
Embed on website
To embed this program on your website, copy the following code and paste it into your website's HTML:
Comments
This comment belongs to a banned user and is only visible to admins.
This comment belongs to a deleted user and is only visible to admins.