foundryvtt / worldbuilding

A simple game system for Foundry VTT which allows for flexible definition of Actors and Items to assist with worldbuilding or for running games which do not have a more complete system implementation available.
https://foundryvtt.com/packages/worldbuilding
MIT License
29 stars 32 forks source link

Items can not pull attributes from actor they are attached to. #22

Closed cswendrowski closed 2 years ago

cswendrowski commented 3 years ago

In GitLab by @petejones.wrexham on Oct 25, 2020, 05:33

When using an Item in an actor you can use a forumla on the Actor that will pull in a Item attribute and roll correctly (example: 1d6 + @items.item_name.attributes_group.attribute).

With Items you can roll a formula referencing any attribute within the item itself but you cannot reference any attributes on the Actor you are attached to. I have tried the following and none worked: 1d6 + @attributes_group.attribute 1d6 + @character.attributes_group.attribute 1d6 + @character.character_name.attributes_group.attribute 1d6 + @character.attributes.attributes_group.attribute 1d6 + @character.character_name.attributes.attributes_group.attribute

cswendrowski commented 3 years ago

Steps to reproduce:

  1. Create an actor with a resource, and track it on a token in a scene.
  2. Using the right-click token hud to modify the tracked resource bar.

You can observe the following behaviors:

Additional Notes: This issue is not applicable to direct sheet edits, as the values always reflect the specific numbers placed in the three fields of the resource.

cswendrowski commented 2 years ago

mentioned in commit 88c5ef88e903bb1ad18908ca3c27ee9a1f18be99

cswendrowski commented 2 years ago

mentioned in commit d799fb1c56aec2f52de23152bed15b7983efd8f4