It is currently 24 Apr 2024, 03:54
   
Text Size

Problem when exporting cascade code

Moderator: CCGHQ Admins

Problem when exporting cascade code

Postby 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? :shock:

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...
User avatar
thefiremind
Programmer
 
Posts: 3515
Joined: 07 Nov 2011, 10:55
Has thanked: 118 times
Been thanked: 721 times

Return to Programming Talk

Who is online

Users browsing this forum: No registered users and 7 guests


Who is online

In total there are 7 users online :: 0 registered, 0 hidden and 7 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 7 guests

Login Form