Card-Forge / forge

An unofficial rules engine for the world's greatest card game.
https://card-forge.github.io/forge/
GNU General Public License v3.0
1.03k stars 570 forks source link

Choose Token AI #5268

Open Hanmac opened 6 months ago

Hanmac commented 6 months ago

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.

github-actions[bot] commented 5 months ago

This issue has not been updated in a while and has now been marked as stale. Stale messages will be auto closed.