Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Allow custom value returns from Item ChoiceSet RE #17342

Open
Antmanton opened this issue Nov 16, 2024 · 0 comments
Open

[Feature Request] Allow custom value returns from Item ChoiceSet RE #17342

Antmanton opened this issue Nov 16, 2024 · 0 comments

Comments

@Antmanton
Copy link

When selecting a ChoiceSet of items from OwnedItems or a compendium filter, it would be useful to be able to specify a custom return object based on the selected item's properties instead of just the item id, using a value property like for custom choice objects. This could be used to retrieve and export field values from a source item to implement things like Blazons of Shared Power.

Suggested syntax might be something like this, combined with appropriate WeaponPotency and Striking REs:

{
  "choices": {
    "ownedItems": true,
    "predicate": [
      "item:usage:hands:1",
      "item:magical"
    ],
    "types": [
      "weapon"
    ],
    "value": {
      "id": "{choice|_id}",
      "striking": "@choice.system.runes.striking",
      "potency": "@choice.system.runes.potency"
    }
  },
  "adjustName": false,
  "flag": "weapon",
  "key": "ChoiceSet",
  "prompt": "PF2E.SpecificRule.Prompt.Weapon"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants