Scripting AI behavior onto a card

I’m wondering if it’s possible to script how AI should use a card on to the card. For instance, bloodlust isn’t played by the computer. Is it possible to program in the card script for the AI to play it on a creature with trample or an unblocked creature? Or play cards when certain abilities are present, like using deathlace when “ protection from black “ or “ destroy black “ keywords are in play. A big thanks to everyone programming this game, it’s so much fun.