wesbaker / roll20-character-sheets

Character sheet templates created by the community for use in Roll20.
MIT License
4 stars 2 forks source link

Calculate AC hit when using DAC #29

Closed wesbaker closed 4 years ago

wesbaker commented 4 years ago

Show what AC you hit based on the roll you made when using DAC.

Dextolen commented 4 years ago

This is a wonderful idea.

gavinnorman commented 4 years ago

Note that there are actually three means of resolving attack rolls in OSE:

  1. AAC with an attack bonus.
  2. THAC0.
  3. The attack matrix.

3 is actually the default.

wesbaker commented 4 years ago

@gavinnorman my aim is to use the attack matrix since THAC0 is a shortcut over that. I probably miss worded this issue and it should be "Calculate AC Hit when using DAC"

wesbaker commented 4 years ago

I dug into this a bit today and ended up frustrated. I can calculate the AC hit, but it has to be simple so I need to use THAC0 calculation and not the matrix. Further still because of the way I have to do the calculations I can no longer display "Natural 1" or "Natural 20" beneath the roll. That being said, the roll still appears as red (if it's a 1) or green (if it's a 20):

Screen Shot 2020-07-14 at 2 12 24 PM Screen Shot 2020-07-14 at 2 12 55 PM
gavinnorman commented 4 years ago

I don't know anything about what's possible in Roll20, but resolving an attack roll with the standard attack matrix should just be a 2d array lookup. (The character's THAC0 indicates the row, the attack roll indicates the column.)

If this isn't possible, it's probably worth indicating on the sheet somehow that the support for attack rolls only works with THAC0 / AAC, not with the default method (the attack matrix).

gavinnorman commented 4 years ago

By the way, note that using THAC0 / AAC to resolve attack rolls can give slightly different results compared to using the attack matrix. That's why THAC0 and AAC are both optional rules in OSE -- they're not completely 1:1 with the traditional matrix approach.

Dextolen commented 4 years ago

Just create a place for the user to input his to hits by AC , we can look at our own table and remember to change it as we level

wesbaker commented 4 years ago

Just create a place for the user to input his to hits by AC , we can look at our own table and remember to change it as we level

Do you mean your character's THAC0? Because that exists on the Roll20 sheet and is changed automatically based on class and level. If it's just a matter of displaying that with each roll, that's easy enough.

wesbaker commented 4 years ago

Another option is I can show an attack matrix on the character sheet (and maybe the roll template).

gavinnorman commented 4 years ago

Showing the attack matrix for the character's class and level on the character sheet would be a good option.

wesbaker commented 4 years ago

Alright, so here's the end result. First on the character sheet you'll have the matrix like this:

Screen Shot 2020-07-16 at 4 42 55 PM

Then, when you roll you'll also see a tiny attack value matrix as well (though it will not appear for natural 1s or natural 20s):

Screen Shot 2020-07-16 at 4 40 27 PM
Lodikai commented 3 years ago

image

DAC is throwing an extras line out it seems

wesbaker commented 3 years ago

DAC is throwing an extras line out it seems

I'm tracking that in #75 and I just pushed up a fix for it that should hopefully take care of that.