News:

A forum for users of LackeyCCG

Main Menu

Bug using <prob> commands

Started by kingstaf, November 28, 2010, 06:53:49 PM

Previous topic - Next topic

kingstaf

I was working on my gijoe ccg plugin when I noticed that I was having errors with packs that deal with the <prob> command. But only with those packs. In the add pack section, it kept saying that that one pack had far too many cards and whenchosen would crash Lackey. When I fiddled with the code some more, I found it worked as long as I use the exact same amount of <kind> per each <chance>. However, what I need seems to be causing it to freak out.

Here's what I want:
67% of opening a pack and getting 6 commons, 3 uncommons, and 1 rare.
33% of opening a pack and getting 5 commons, 3 uncommons, 1 rare, and 1 mythic rare.

Because the 33% has 4 kinds and the 67% has 3 kinds, I think it is causing a bug that I'm not sure how to fix. Any help?

Trevor

I'll test it out once you fix your updatelist.txt URL and I can install it.