Card-Forge / forge

An unofficial rules engine for the world's greatest card game.
GNU General Public License v3.0
869 stars 514 forks source link

Choose Token AI #5268

Open Hanmac opened 1 month ago

Hanmac commented 1 month 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 2 weeks ago

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