In player DNDBase player In player wizdom Out DNDBase player WIZ 13 In

 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
In [1]: player = DNDBase('player')
In [2]: player.wizdom
Out[2]: <DNDBase('player').WIZ:13|+1>
In [3]: player.will
Out[3]: <DNDBase('player').WILL:+1>
In [4]: player.will.check(12)
INFO:ROLL:<DNDBase('player').WILL:+1>: 19+1=20
INFO:CHECK:<DNDBase('player').WILL:+1>: against dc 12: 20-12=8
Out[4]: 8
In [5]: npc = DNDBase('Cthulhu')
In [6]: npc.cha
Out[6]: <DNDBase('Cthulhu').CHA:10|+0>
In [7]: npc.cha.bonuses.append(+3)
In [8]: npc.cha
Out[8]: <DNDBase('Cthulhu').CHA:13|+1>
In [9]: player.wiz.check(npc.cha)
INFO:ROLL:<DNDBase('player').WIZ:13|+1>: against <DNDBase('Cthulhu').CHA:13|+1>: 6+1=7
INFO:ROLL:<DNDBase('Cthulhu').CHA:13|+1>: against <DNDBase('player').WIZ:13|+1>: 20+1=21
INFO:CHECK:<DNDBase('player').WIZ:13|+1> against <DNDBase('Cthulhu').CHA:13|+1>: 7-21=-14
Out[9]: -14