LackeyCCG

LackeyCCG Forum => Plugins & Plugin Creation Forum => Topic started by: Crionos on November 19, 2014, 08:15:05 AM

Title: Script Help
Post by: Crionos on November 19, 2014, 08:15:05 AM
Hey guys, I'm trying to write a script that will create a button below the main play window called "attack." When this button is clicked it should rotate the selected card 45 degrees to the right. I have tried coding it at follows, but a button does not appear on the window.

<cardfunction><label>Attack</label><kind>MAKERIGHT45DEGREES</kind><includeasbutton>yes</includeasbutton></cardfunction>

Finally,

I've tried to add entries into my carddata.txt file for Type: Token.  This does not seem to give me an option for spawning token cards in the game and just gives a standard card entry in the deck editor.  Can you please advise what needs to happen inorder to spawn tokens into the game?
Title: Re: Script Help
Post by: Drigz on December 10, 2014, 06:42:07 PM
As far as I can tell, you can only make 90 degree rotations.