EvenLess wrote: ↑Wed Sep 06, 2023 12:24 am
Babbymode wrote: ↑Tue Sep 05, 2023 6:28 pm
Gonna try to figure out a good conditional IF() that fixes any issues using MinimumRollResult() within reasonable use of the bonus, Reliable Talent and Remarkable Athlete passives seems to be a good place to start, I'll publish my results if they seem to fix any crashes I get
You could try taking a look at
CriticalHit()
and
ReduceCriticalAttackThreshold()
. Those are two boosts that affect the requirement for a critical hit. F.ex.
ReduceCriticalAttackThreshold(1)
will make you crit on 19 and 20. Maybe setting it to 19 will make you crit on 1+
I'm sure there are more functions like them. I haven't looked for them yet, but I you could try looking for them using part of their names, such as
ReduceCritical
. There are probably others that aren't specific for attacking.
I already have ReduceCriticalAttackThreshold set in my personal scripts, unfortunately I haven't been able to experiment like i thought today, but I will soon be able to play around. My first attempts are these if people want to try them themselves:
Damage Bonus and Always roll maximum damage (except for a 'bug' with some cantrips using saving throws, Larian-sided)
Code: Select all
{$lua}
if syntaxcheck then return end
[ENABLE]
AddBoostsToPlayer("IF(IsWeaponAttack() or IsSpell()):DamageBonus(1d12*ProficiencyBonus);IF(IsWeaponAttack() or IsSpell()):MinimumRollResult(Damage, 20)")
[DISABLE]
Always Roll 20s on attack rolls for weapon and spell attacks (includes the special weapon attacks and unarmed/improvised)
Code: Select all
{$lua}
if syntaxcheck then return end
[ENABLE]
AddBoostsToPlayer("IF(IsWeaponAttack() or IsSpell()):MinimumRollResult(Attack, 20)")
[DISABLE]
Always Roll a 20 on any Ability Check or Saving Throw you have Proficiency in.
Code: Select all
{$lua}
if syntaxcheck then return end
[ENABLE]
AddBoostsToPlayer("IF(HasProficiencyBonus(context.CheckedAbility,context.CheckedSkill,context.Source)):MinimumRollResult(RawAbility,20);IF(HasProficiencyBonus(context.CheckedAbility,context.CheckedSkill,context.Source)):MinimumRollResult(SkillCheck,20);IF(HasProficiencyBonus(context.CheckedAbility,context.CheckedSkill,context.Source)):MinimumRollResult(SavingThrow,20)")
[DISABLE]