News:

A forum for users of LackeyCCG

Main Menu

Draw / Transfer Card from Shared Deck

Started by Ahmisaran, July 08, 2012, 11:29:57 AM

Previous topic - Next topic

Ahmisaran

Looking for some assistance in drawing (or transferring card) from a shared deck to the tabletop. Essentially I am trying to make a gamezone and deckzone that is listed as 'Events' that players draw from at the beginning of each of their turns. The 'Events' deck is shared.

I am using the following general function:

<generalfunction>
   <label>Play an Event</label>
   <kind>TRANSFERCARD</kind>
   <sourceowner>performer</sourceowner>
   <sourcegamezone>Event</sourcegamezone>
   <sourceposition>random</sourceposition>
   <destinationowner>table</destinationowner>
   <includeasbutton>yes</includeasbutton>
</generalfunction>

I've tried this a few ways but I cannot get the button to show up and cannot get the ability to activate this effect with a right click menu from the tabletop. It should be noted that this gamezone is the 3rd gamezone in the plugin behind 'Hand' and 'Godhand' (player deck). The gamezone is listed as:

<gamezone>
        <label>Event</label>
        <visibletoowner>no</visibletoowner>
        <visibletoothers>no</visibletoothers>
   <isshared>yes</isshared>
</gamezone>

Any assistance would be greatly appreciated. Thanks in advance.

kriss

in your plugginginfo.txt you need to have

<deckzone>
     <label>Event</label>
     <gamezonetoloadto>Event</gamezonetoloadto>
     <shuffle>yes</shuffle>
</deckzone>

<gamezone>
     <label>Event</label>
     <visibletoowner>no</visibletoowner>
     <visibletoothers>no</visibletoothers>
</gamezone>

I'm thinking you don't need to have a "random" draw, like normal deck you can take the top card
<generalfunction>
   <label>Play an Event</label>
   <kind>TRANSFERCARD</kind>
   <sourceowner>performer</sourceowner>
   <sourcegamezone>Event</sourcegamezone>
   <sourceposition>top</sourceposition>
   <destinationowner>table</destinationowner>
   <destinationposition>faceup</destinationposition>
   <includeasbutton>yes</includeasbutton>
</generalfunction>

Be carreful to use ALWAYS same name for deckzone, gamezone and functions : here it's "Event"
I just copy what i'm using in my own plugging and it works :)

Ahmisaran

Yeah, tracking that. I have both the deckzone and the gamezone for the 'Event' deck. All spelling is consistent. I've also tried it with Top draw, bottom draw, and random draw and yet none work. I think what you left out is what is causing the problem on my end. The gamezone for 'Event' is shared.

<isshared>yes</isshared>

is part of the gamezone. So I suppose if I remove this part it will work. However, the point of this deck being shared is that all players draw from the same deck that isn't customized. Are you able to get it to work in your plugin if it is shared?


kriss

#3
In the lotr plugging, you have an encounter deck

So if your deck is "share", i'm thinking you should modify the sourceowner because it's a deck for all, not only the "performer"
<sourceowner>shared</sourceowner>

this how it's coded in the lotr plugging
<deckzone>
     <label>Encounter Deck</label>
     <gamezonetoloadto>Encounter Deck</gamezonetoloadto>
     <shuffle>yes</shuffle>
</deckzone>

<gamezone>
     <label>Encounter Discard</label>
     <visibletoowner>yes</visibletoowner>
     <visibletoothers>yes</visibletoothers>
     <isshared>yes</isshared>
</gamezone>

<generalfunction>
   <label>Draw Encounter</label>
   <kind>TRANSFERCARD</kind>
   <sourceowner>shared</sourceowner>
   <sourcegamezone>Encounter Deck</sourcegamezone>
   <sourceposition>top</sourceposition>
   <destinationowner>table</destinationowner>
   <destinationposition>faceup</destinationposition>
   <includeasbutton>yes</includeasbutton>
</generalfunction>

Ahmisaran

Kriss, you beast! That was the trick. Thank you so much for your help. I really appreciate it.