Card-Forge / Card-Forge/forge

Choose Token AI

Open
#5,268 1 comment 0 reactions 2 assignees Assigned to @Hanmac View on GitHub
AI keep
Dominant language
Java
Stars
2.7k
Forks
1.1k
Avg merge
1d 1h
Merged PRs (30d)
158

Description

Effects like Tireless Provider that does use `GenericChoice` to choose between two Token Scripts:
```
SVar:TrigTokenChoice:DB$ GenericChoice | Defined$ You | Choices$ Food,Treasure | SpellDescription$ Whenever a land enters the battlefield under your control, create a Food token or a Treasure token.
SVar:Food:DB$ Token | TokenAmount$ 1 | TokenScript$ c_a_food_sac | TokenOwner$ You | SpellDescription$ Food
SVar:Treasure:DB$ Token | TokenAmount$ 1 | TokenScript$ c_a_treasure_sac | TokenOwner$ You | SpellDescription$ Treasure
```

maybe should be somehow merged into Token Effect with a `ChooseToken` Parameter

But the Most important part is to add a logic for AI to choose which of the `TokenScript` is the most beneficial for the current situation.
Or maybe add an AI logic to make AI choose the more preferred one.

Or add AI logic to the Sub Abilities when to prefer them? (choose Food if life is low? If it can gain life?)

==
The current state is that AI will always choose the first one.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.