Right Clicking "Move To" doesn't work - Dragging does???

Started by bowiz2, July 10, 2012, 09:35:13 PM

Previous topic - Next topic

bowiz2

Hey,
I have a gamezone to which I want to move cards to.
<gamezone>
<label>Discard</label>
<visibletoowner>yes</visibletoowner>
<visibletoothers>yes</visibletoothers>
</gamezone>

For some reason, if I right-click a card and select the "Move To TOP of" or "...BOTTOM of" the card will disappear and not be moved to the zone. But if I click and drag the card into the zone, it will work. This only happens to cards which are put from the deck to the table directly using TRANSFERCARD.
<generalfunction>
<label>Draw To Table</label>
<kind>TRANSFERCARD</kind>
<sourceowner>shared</sourceowner>
<sourcegamezone>Main Deck</sourcegamezone>
<sourceposition>top</sourceposition>
<destinationowner>table</destinationowner>
<includeasbutton>yes</includeasbutton>
</generalfunction>

And yes, Main Deck is supposed to be shared.

kriss

i don't reaaly understand what you want :
i make a test so i have :

<deckzone>
   <label>Main Deck</label>
   <shuffle>yes</shuffle>
</deckzone>

<gamezone>
   <label>Main Deck</label>
   <isshared>yes</isshared>
</gamezone>
<gamezone>
   <label>Discard</label>
   <visibletoowner>yes</visibletoowner>
   <visibletoothers>yes</visibletoothers>
</gamezone>

<generalfunction>
   <label>Draw To Table</label>
   <kind>TRANSFERCARD</kind>
   <sourceowner>shared</sourceowner>
   <sourcegamezone>Main Deck</sourcegamezone>
   <sourceposition>top</sourceposition>
   <destinationowner>table</destinationowner>
   <includeasbutton>yes</includeasbutton>
</generalfunction>

So if a right click on the board, i select "Draw To Table" : i put the top card of main deck directly into table.
If i select "send to top of discard", the card move to this gamezone

That's what you want to do ?

bowiz2

@kriss
Yes. I figured that it should work automatically like with things drawn to my hand and then to the table (not from a shared deck), but for some reason it just disappears. The only thing that's different from your code and mine is that I didn't make a deckzone called Main Deck, and when I added it, it didn't solve the problem. Again, this ONLY happens from cards drawn directly from the shared Main Deck to the table, not with cards drawn from a normal non-shared deck to my hand, and then played. And clicking and dragging the cards into the zone works. So I'm confused  :-\

kriss

"I didn't make a deckzone called Main Deck"

Maybe it's the problem because without deckzone, where are stored the cards?

try to copy all my deckzone/gamezone and try again.

you could post your pluginginfo in your next post with the "attachment and other option"

bowiz2

I did try the deckzone, and it didn't work. Heres my plugininfo, hopefully that can help.

<plugin>

<globalstat>
<label>Points</label>
<initialvalue>60</initialvalue>
</globalstat>

<playerstat>
<label>Honor</label>
</playerstat>

<playerstat>
<label>Magic</label>
</playerstat>

<playerstat>
<label>Strength</label>
</playerstat>

<gamezone>
<label>Hand</label>
<visibletoowner>yes</visibletoowner>
</gamezone>

<gamezone>
<label>Main Deck</label>
<isshared>yes</isshared>
</gamezone>

<gamezone>
      <label>Deck</label>
</gamezone>

<gamezone>
      <label>Removed</label>
        <visibletoowner>yes</visibletoowner>
<visibletoothers>yes</visibletoothers>
<isshared>yes</isshared>
</gamezone>

<gamezone>
      <label>Arts</label>
        <visibletoowner>yes</visibletoowner>
<visibletoothers>yes</visibletoothers>
</gamezone>

<deckzone>
<label>Deck</label>
<shuffle>yes</shuffle>
</deckzone>

<phase><label>Start</label></phase>
<phase><label>Play</label></phase>
<phase><label>End</label></phase>

<generalfunction>
<label>Draw</label>
<kind>TRANSFERCARD</kind>
<sourcegamezone>Deck</sourcegamezone>
<destinationgamezone>Hand</destinationgamezone>
<includeasbutton>yes</includeasbutton>
</generalfunction>

<generalfunction>
<label>Draw To Table</label>
<kind>TRANSFERCARD</kind>
<destinationowner>table</destinationowner>
<sourcegamezone>Main Deck</sourcegamezone>
<includeasbutton>yes</includeasbutton>
</generalfunction>

</plugin>


Hopefully that helps...