symposion / roll20-shaped-scripts

Support script for 5e Shaped Character Sheet on Roll20.net
http://roll20.net/
7 stars 5 forks source link

Proficiency bonus not added, text not displaying #506

Open ritslacker opened 6 years ago

ritslacker commented 6 years ago

This is similar to issue #366 "5eShapedCompanion 1506043801510 INFO : -=> ShapedScripts v10.0.1 <=-" "5eShapedCompanion 1506043802723 INFO : Detected sheet version as : 15.5.4" Using Chrome browser

When importing a monster, I am getting issues where the proficiency bonus is marked as added, but isn't adding. Unchecking and checking fixes the issue. The same with text in the abilities section.

I used the following statblock (made one myself to avoid any IP issues)

SUPER COW Huge beast, lawful good Armor Class 18 (leather armor) Hit Points 184 (16d12 +80) Speed 60 ft., fly 100 ft. STR 22 (+6) DEX 24 (+6) CON 20 (+5) INT 18 (+4) WIS 20 (+5) CHA 28 (+9) Damage Immunities poison, psychic; bludgeoning, piercing, and slashing from nonmagical weapons that aren't adamantine. Condition Immunities charmed, paralyzed, poisoned Senses darkvision 120 ft, passive Perception 15 Languages Bovine, Common, Celestial Challenge 14 (11,500 XP) Herbivore Rage. When Super Cow is engaged in combat with a creature that has eaten meat in the past 72 hours, it deals an extra 10 (3d6) damage per attack. ACTIONS Multiattack. Super Cow makes 3 attacks, 2 with its bite and 1 with its horns. Bite. Melee Weapon Attack: +11 to hit, reach 5 ft., one target. Hit: 15 (2d8 + 6) bludgeoning damage. Horns. Melee Weapon Attack: +11 to hit, reach 5 ft., one target. Hit: 19 (2d12 + 6) piercing damage plus 6 (1d12) damage if Super Cow moves more than 15 ft. in a straight line toward its target on that turn. LEGENDARY ACTIONS Super Cow can take 1 legendary action, at the end of another creature's turn. Super Cow regains spent legendary actions at the start of its turn. Flatulence. Super Cow rips one. All creatures in a 60 ft. cone directly behind Super Cow must make a DC 15 Constitution saving throw, taking 14 (4d6) poison damage on a failed save, or half as much damage on a successful one.

Importing was successful import success

character sheet math is wrong, giving me my +6 str bonus to the attack, but not the +5 proficiency bonus no prof bonus

opening it up, shows that the proficiency bonus is indeed marked prof bonus marked

unmarking, then remarking it fixes the problem prof bonus unmarked then remarked - fixed

A similar thing happens to ability text - this is what happens when I click the herbivore rage ability ability clicked - no text

in the sheet, the text is indeed checked checked in set up

again, unchecking, then rechecking refreshes it, and it works properly ability text unchecked then rechecked and it works