LackeyCCG

LackeyCCG Forum => Plugins & Plugin Creation Forum => Topic started by: BLOODWOLF on December 06, 2019, 07:42:28 PM

Title: TRANSFERCARD from a zone other than the main deck to table?
Post by: BLOODWOLF on December 06, 2019, 07:42:28 PM
Tinkering with the Magic plugin and made a button to play the top card of the player's command zone (scheme deck for Arch Enemy) to the table face-up.  Either I am blind and missing something or the program is not doing what I am telling it to after following through the plugin creation tutorial.


...
<deckzone>
<label>Deck</label>
<shuffle>yes</shuffle>
<gamezonetoloadto>Library</gamezonetoloadto>
</deckzone>
<deckzone>
<label>Command</label>
<shuffle>yes</shuffle>
<gamezonetoloadto>Command</gamezonetoloadto>
</deckzone>
...
<gamezone>
<label>Library</label>
<visibletoowner>no</visibletoowner>
<visibletoothers>no</visibletoothers>
</gamezone>
...
<gamezone>
<label>Command</label>
<visibletoowner>no</visibletoowner>
<visibletoothers>no</visibletoothers>
</gamezone>
...
<generalfunction>
<label>Play command</label>
<kind>TRANSFERCARD</kind>
<includeasbutton>yes</includeasbutton>
<sourceowner>performer</sourceowner>
<sourcezone>Command</sourcezone>
<sourceposition>top</sourceposition>
<destinationowner>table</destinationowner>
<destinationposition>faceup</destinationposition>
</generalfunction>
...


In-game after loading a deck to your library and a scheme deck to your command zone and pressing the "Play command" button it just plays the top card of your library to the table instead of from the command gamezone.....why?
Title: Re: TRANSFERCARD from a zone other than the main deck to table?
Post by: amcsi on December 08, 2019, 12:39:27 PM
It's probably sourcegamezone, not sourcezone

http://www.lackeyccg.com/tutorialplugininfo.html#plugininfogeneralfunctions
Title: Re: TRANSFERCARD from a zone other than the main deck to table?
Post by: BLOODWOLF on December 08, 2019, 04:53:09 PM
Ah crap, yep that was the issue thanks amcsi.