Make it possible to reference the target's properties in spell bonus #24

Open
opened 2023-06-20 18:18:21 +02:00 by migration-script · 0 comments

Story

As a ds4 user, I want to reference my target's properties in the spell bonuses of my spells to correctly model spells which have a spell bonus depending on some of the target's values.

Description

Dungeonslayers has lots of spells with a spell bonus that depends on the target's attributes and traits. In order to properly model these spells and provide automation for doing checks for theses spells, The spell bonus of a spell needs to be able to reference the properties of the currently selected target.

Acceptance criteria

  1. Properties of the target can be referenced in the spell bonus in the form @target.property (e.g. @target.data.traits.strength.total).
  2. When a spell referencing target values is rolled and the user has no target or multiple targets selected, he is warned that he needs to properly calculate the spell bonus himself and add it to the base ctn.
  3. When the user has one target selected and rolls a spell referencing target values, it is automatically factored into the ctn. This could mean that it's just passed on to the roll along with the target data, which will result in the roll properly interpreting the expression.
  4. There is a way to recognize spells that have a spell bonus that needs to be handled manually, e.g. by a corresponding property of the spell.
# Story As a ds4 user, I want to reference my target's properties in the spell bonuses of my spells to correctly model spells which have a spell bonus depending on some of the target's values. # Description Dungeonslayers has lots of spells with a spell bonus that depends on the target's attributes and traits. In order to properly model these spells and provide automation for doing checks for theses spells, The spell bonus of a spell needs to be able to reference the properties of the currently selected target. # Acceptance criteria 1. Properties of the target can be referenced in the spell bonus in the form `@target.property` (e.g. `@target.data.traits.strength.total`). 2. When a spell referencing target values is rolled and the user has no target or multiple targets selected, he is warned that he needs to properly calculate the spell bonus himself and add it to the base ctn. 3. When the user has one target selected and rolls a spell referencing target values, it is automatically factored into the ctn. This could mean that it's just passed on to the roll along with the target data, which will result in the roll properly interpreting the expression. 4. There is a way to recognize spells that have a spell bonus that needs to be handled manually, e.g. by a corresponding property of the spell.
migration-script added the
feature
label 2023-06-20 18:18:21 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: dungeonslayers/ds4#24
No description provided.