Karlinator / roll20-character-sheets

My fork of the Roll20 characters sheets. Used for developing the Stars Without Number: Revised sheet. My code here: https://github.com/Karlinator/roll20-character-sheets/tree/master/Stars_Without_Number_Revised
MIT License
1 stars 3 forks source link

Option to pull character attributes on ship rolls #84

Open CubicleDexter opened 3 years ago

CubicleDexter commented 3 years ago

Would it be possible to add an option where the ship side of the character sheet will use the attributes of the same-sheet character?

Use case: Ship weapon attacks add character attack value and attribute mod to attack, and add attribute mod to damage. Each character could add the ship's weapons to their character's ship sheet so that attack and damage are automatically calculated when they are in the gunner's seat.

Karlinator commented 3 years ago

You can already add the ship weapons to your own character sheet in the character weapon section to achieve this.

I have been toying with the idea of specifying a gunner on the ship sheet and pulling stats from there, but that requires the name be spelt exactly right (and as in the journal not the character name), so it's maybe a bit unintuitive to use.

CubicleDexter commented 3 years ago

That's true, I forgot about that (and the Discord discussion that I just now remembered also having) for PC characters.

Instead of specifying a gunner on the sheet, is it possible to pull stats from a selected token like Initiative?

Karlinator commented 3 years ago

Ooo, that's a good point. I think that is possible (using {Selected|AB} rather than {Character|AB}).

It's still a bit clunky, as it might just break if you don't have a token selected (not sure yet, haven't tested). Either way you'd want a toggle I think of whether to do the fancy shit or just a straight roll.

CubicleDexter commented 3 years ago

And then there's the distinction between attacking with Shoot or Pilot. Honestly, ships are a pain in the arse.

Toggle options are always nice on the user side. I have no idea how much extra work they are for dev.

Karlinator commented 3 years ago

I just have to write the roll for each option, put it in the value of a checkbox or dropdown or something, then refer to that attribute. Roll20 does actually parse the macro text from inside an attribute call.

Shoot/Pilot is one thing, so is Dex/Int. This is easy when adding it as a character weapon, but you can also just have a dropdown for that (Roll20, I believe, parses nested macros all the way down).