Board index Programs with AI or Rules Enforcement Magic: The Gathering - Duels of the Planeswalkers Programming Talk
Problem when exporting cascade code
Moderator: CCGHQ Admins
Problem when exporting cascade code
by thefiremind » 31 Jul 2013, 11:52
I do that for each DotP game and 2014 is no exception: I exported the cascade code to a LOL file so that I can write less on the cards using it. But something really strange happened: while the official cascade code uses TriggerObjectLKI() without problems, when I use it on my exported code it's nil. It doesn't depend on what I do on my code, because even if I address TriggerObjectLKI() on the very first line of my function, it's still nil. It doesn't depend on the original spell being countered or something similar, because it never happened during my tests.
How is that possible?
P.S.: sure, I could save the CMC in the trigger condition and pass it to my function... which is probably what I'll do, but still, I'd like to know the reason for such weirdness.
How is that possible?
P.S.: sure, I could save the CMC in the trigger condition and pass it to my function... which is probably what I'll do, but still, I'd like to know the reason for such weirdness.
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
Currently busy with life...
-
thefiremind - Programmer
- Posts: 3515
- Joined: 07 Nov 2011, 10:55
- Has thanked: 118 times
- Been thanked: 721 times
1 post
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 7 guests