PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Created by Squilliam Fancyson
class char:
def __init__(self, name, hp, sanity, lore, influence, obvservation, strength, wits):
#char.self = self #not useful
self.name = name
self.hp = hp
self.sanity = sanity
self.lore = lore
self.influence = influence
self.observation = obvservation
self.strength = strength
self.wits = wits
def display(self):
print(f"Name: {self.name}")
print(f"HP: {self.hp}")
print(f"Sanity: {self.sanity}")
Norman = char("Norman Withers",
5, 7, 3, 1, 3, 2, 4)
Calvin = char("Calvin Wright",
6, 6, 3, 3, 3, 3, 1)
Agnes = char("Agnes Baker",
6, 6, 4, 2, 2, 2, 3)
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run