News:

A forum for users of LackeyCCG

Main Menu

[BUG] /cc(colour)=x in scripting erroring...

Started by Jynks, March 06, 2014, 08:49:09 PM

Previous topic - Next topic

Jynks

Hi there... still playing with scripts... found what looks to be a bug...

I have card that comes in with 5 credits and 2 recurring credits.... so 2 different counters.

This doesn't work.
<s><a>y</a><l>Initialize counters</l><f>/ccyellow=2;/ccwhite=5;/spawn Server Zone HQ;/spawn Server Zone R&D;/spawn Server Zone Archive</f></s>

This code works!
<s><a>y</a><l>Initialize counters</l><f>/cardfunction 8;/cardfunction 8;/ccwhite=5;/spawn Server Zone HQ;/spawn Server Zone R&D;/spawn Server Zone Archive</f></s>

In the above case cardfunction 8 is +1 yellow counter.

Basically what is happening is that if you use the /cccolour=x command more than once, only the first command is activated. So in my first poasted code IU get 2 yellow and no white.. if I used this code...
<s><a>y</a><l>Initialize counters</l><f>/ccwhite=5;/ccyellow=2;/spawn Server Zone HQ;/spawn Server Zone R&D;/spawn Server Zone Archive</f></s>

I would get 5 white and no yellow.



Trevor

Ya, that looks like a bug. I'll see if I can fix that.