Splinterverse wrote:Fatal Lore -- coded by TheFireMind, tested by me
I'm glad it worked!

Line 2 refers to the first line of code (line 1 is probably added internally when the script is run), so the problem would appear to be in
- Code: Select all
local target = EffectDC():Get_Targets(1):Get_CardPtr(0)
but I can't see any problem in it. I have no smart suggestions, so I'll go with a dumb one: try to delete the continuous action that grants flying, and write it again starting from a copy of one that worked (such as the AI_SetWorthless one). It will probably achieve nothing, but I can't think of anything else to try.
This is not correlated to your problem, but the card should be coded in a slightly different way. The trigger for each creature dying shouldn't use the stack (it's a coding commodity for you, the card doesn't mention it). I won't delve deeper into it because I think it's possible to avoid using such trigger and I'd like to try. I'll let you know the results.
EDIT: Now that I think about it more, my idea isn't feasible because we need to check for the damage before the creature dies, otherwise the information gets lost. But at least I can store the creatures into a LinkedDC register and make things cleaner. I'll report back once I'm done.
Leeches is an impossible card because we have a function to add poison counters, but not a function to remove them. My TFM_WritePoisonCount function simply writes the current poison count to a PlayerDataChest register so that it's readable when it's needed.
(In order to code
Leeches we would have to code our own poison counters, but that would also mean writing our own infect characteristic, I don't think it's worth it.)
Your triggers have simple_qualifier="self" which would mean TriggerObject() == EffectSource(). They'll never trigger because they would expect the Aura to block or be blocked.
Just do this:
- Code: Select all
<AVAILABILITY any_player="1">
return MTG():GetStep() == STEP_DRAW and EffectController():MyTurn()
</AVAILABILITY>
Splinterverse wrote:Has anyone been able to make XML for Kongming, "Sleeping Dragon"? I can't seem to get it to work in the "A Card Generator" with/without quotation marks.
I used the Multiverse ID as input in my generator and it worked. It added an extra underscore at the end of the name, but I removed it manually. I copied the ability from
Angel of Invention, so that's taken care of. You just have to change the IDs as you prefer.