Saibot393 / LocknKey

A Foundry VTT module to handle locking and unlocking of doors and other objects
MIT License
10 stars 7 forks source link

Shadowrun 6e compatibility #91

Open TheFokin opened 4 months ago

TheFokin commented 4 months ago

As far as I understand, Shadowrun 6 system replaces rolling with its own script, and as a results roll formulas don't work properly.

Saibot393 commented 4 months ago

Rool formulas should be possible. As far as i remember (i am a bit rusty on my Shadowrun knowledge) a player roll a pool of d6 determined by abilities and skills, counts the number of 5s and 6s and compares this number to a set difficulty, right? The formula for lock picking should (i think) look like this (assuming engineering is the correct skill): (@actor.system.skills.engineering.pool)d6cs>=5 Glitches are indeed a bit more difficult and would require me to write a bit of code to count them equivalent to critical failures.

TheFokin commented 4 months ago

Yes, I know how the formula should be, However, it doesn't work. If you put, say, 6d6 (regardless of how the number of dice is calculated) in Lockpicking formula, it returns the number of dice rolled (in this case 6), not the result of rolls. As far as I understand, tolling was refactored internally for this system.

Saibot393 commented 4 months ago

Using for example 6d6cs>=5 seems to work correctly for me: image How does the ouput look for you?

TheFokin commented 4 months ago

Huh. It works fine now. Apparently, something was wrong on my end. Sorry to bother you.

Saibot393 commented 4 months ago

No problem, happy to hear that it works. I will look into adding a crit system for the glitches when i have time.