Chris H. wrote:Actually, it turns out that most of the cards that have been converted were using the scripted form of the keyword. I recently searched the cardsfolder for cards containing spDestroyTgt and abDestroyTgt. It is not too bad ... time consuming and repetitive for the most part.
I would like to release the next beta this weekend. Gives us more time to convert cards and to fix bugs. At some point we need to start moving over the AI from the old scripted keyword code over to the AFs. I noticed the other day that the computer cast a $Discard spell at me and my hand was empty at the time.
I also tried to add this card. It works for the human but the
X cost is causing problems for the AI.
- Code: Select all
Name:Demonspine Whip
ManaCost:B R
Types:Artifact Equipment
Text:no text
K:eqPump 1:+0/+0
A:AB$Pump | Cost$ X | Defined$ Equipped | NumAtt$ +X | SpellDescription$ Equipped creature gets +X/+0 until end of turn.
SVar:X:Count$xPaid
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/demonspine_whip.jpg
End
Oh I figured most were just converting older keywords to new ones. I just meant I've definitely noticed cards that are hard-coded in CardFactory that totally can be converted over. Those are the ones that are going to be a pain to find, not a major pain once they are found, but more repetitive conversions like you are doing already.
A few examples are
Greater Forgeling and
Tradewind Rider. But there are many others.
The AI has been handling the AFs pretty decently from what I've noticed, but there definitely are edge cases that need to be considered and improved. The AI doesn't know how to handle
X Payment yet. Paying
X should be handled differently for each AF, and for some of them may have to wait until after the AI can activate SAs outside of its main phases to make sense. (Why would you pump your creature before you know if what is blocking it?)