Spaces:
Build error
Build error
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
|
3 |
+
def create_character_sheet():
|
4 |
+
st.title("Dungeons and Dragons Character Sheet")
|
5 |
+
|
6 |
+
st.write("Enter your character details:")
|
7 |
+
class_input = st.text_input("Class")
|
8 |
+
level_input = st.text_input("Level")
|
9 |
+
name_input = st.text_input("Name")
|
10 |
+
background_input = st.text_input("Background")
|
11 |
+
alignment_input = st.text_input("Alignment")
|
12 |
+
|
13 |
+
st.write("Enter your character's stats:")
|
14 |
+
strength_input = st.text_input("Strength")
|
15 |
+
dexterity_input = st.text_input("Dexterity")
|
16 |
+
constitution_input = st.text_input("Constitution")
|
17 |
+
intelligence_input = st.text_input("Intelligence")
|
18 |
+
wisdom_input = st.text_input("Wisdom")
|
19 |
+
charisma_input = st.text_input("Charisma")
|
20 |
+
|
21 |
+
st.write("Enter your character's abilities:")
|
22 |
+
proficiency_input = st.text_input("Proficiency Bonus")
|
23 |
+
speed_input = st.text_input("Walking Speed")
|
24 |
+
initiative_input = st.text_input("Initiative")
|
25 |
+
|
26 |
+
st.write("Enter your character's traits:")
|
27 |
+
saving_throws_input = st.text_area("Saving Throws")
|
28 |
+
skills_input = st.text_area("Skills")
|
29 |
+
currency_input = st.text_area("Currency")
|
30 |
+
proficiencies_input = st.text_area("Proficiencies")
|
31 |
+
languages_input = st.text_area("Languages")
|
32 |
+
|
33 |
+
hit_points_input = st.text_input("Hit Points")
|
34 |
+
armor_class_input = st.text_input("Armor Class")
|
35 |
+
conditions_input = st.text_area("Conditions and Effects")
|
36 |
+
|
37 |
+
st.write("Enter your character's equipment:")
|
38 |
+
combat_input = st.text_area("Combat")
|
39 |
+
features_input = st.text_area("Features and Abilities")
|
40 |
+
equipment_input = st.text_area("Equipment")
|
41 |
+
|
42 |
+
st.write("Your character has been created!")
|
43 |
+
st.write("Class: ", class_input)
|
44 |
+
st.write("Level: ", level_input)
|
45 |
+
st.write("Name: ", name_input)
|
46 |
+
st.write("Background: ", background_input)
|
47 |
+
st.write("Alignment: ", alignment_input)
|
48 |
+
st.write("Strength: ", strength_input)
|
49 |
+
st.write("Dexterity: ", dexterity_input)
|
50 |
+
st.write("Constitution: ", constitution_input)
|
51 |
+
st.write("Intelligence: ", intelligence_input)
|
52 |
+
st.write("Wisdom: ", wisdom_input)
|
53 |
+
st.write("Charisma: ", charisma_input)
|
54 |
+
st.write("Proficiency Bonus: ", proficiency_input)
|
55 |
+
st.write("Walking Speed: ", speed_input)
|
56 |
+
st.write("Initiative: ", initiative_input)
|
57 |
+
st.write("Saving Throws: ", saving_throws_input)
|
58 |
+
st.write("Skills: ", skills_input)
|
59 |
+
st.write("Currency: ", currency_input)
|
60 |
+
st.write("Proficiencies: ", proficiencies_input)
|
61 |
+
st.write("Languages: ", languages_input)
|
62 |
+
st.write("Hit Points: ", hit_points_input)
|
63 |
+
st.write("Armor Class: ", armor_class_input)
|
64 |
+
st.write("Conditions and Effects: ", conditions_input)
|
65 |
+
st.write("Combat: ", combat_input)
|
66 |
+
st.write("Features and Abilities: ", features_input)
|
67 |
+
st.write("Equipment: ", equipment_input)
|
68 |
+
|
69 |
+
if name == "main":
|
70 |
+
create_character_sheet()
|