Shadowrun 6 Damage Modifier

I would like to add the damage modifier to the skills. I have created a checkbox for each level of damage. My problem at the moment is that the dice are not deducted. What did I do wrong?

!({Intuition+Astral}d[G,0,0,0,1,1]
-{Koerperlich_1 == 1 ? -1 : 0}
-{Koerperlich_2 == 1 ? -1 : 0}
-{Koerperlich_3 == 1 ? -1 : 0}
-{Koerperlich_4 == 1 ? -1 : 0}
-{Koerperlich_5 == 1 ? -1 : 0}
-{Koerperlich_6 == 1 ? -1 : 0}
-{Betaeubung_1 == 1 ? -1 : 0}
-{Betaeubung_2 == 1 ? -1 : 0}
-{Betaeubung_3 == 1 ? -1 : 0}
-{Betaeubung_4 == 1 ? -1 : 0})

Thx for your Help.

Hi @Innozensius

Try the following, and remember, everything needs to be on one line.

!({Intuition+Astral}d[G,0,0,0,1,1] - ({Koerperlich_1 + Koerperlich_2 + Koerperlich_3 + Koerperlich_4 + Koerperlich_5 + Koerperlich_6 + Betaeubung_1 + Betaeubung_2 + Betaeubung_3 + Betaeubung_4})

Hi LaMorte,

thx for the fast response.

!({Intuition+Astral-Koerperlich_1-Koerperlich_2-Koerperlich_3-Koerperlich_4-Koerperlich_5-Koerperlich_6-Betaeubung_1-Betaeubung_2-Betaeubung_3-Betaeubung_4}d[G,0,0,0,1,1])

This is now the correct formula. So it perfectly illustrates that he has to subtract dice when he does damage.

Thank you for your help. Your post has helped me a lot.